Skip to content

Commit

Permalink
타입문제 해결했다
Browse files Browse the repository at this point in the history
  • Loading branch information
healtheloper committed Dec 15, 2023
1 parent c329ee4 commit e0ca8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/co-design-styles/src/theme/utils/getColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const getColor = (theme: CoTheme, color: CoColor, colorScale?: number): s
return theme.palettes[color][colorScale ? colorScale : 5];
}
}
if (window !== undefined && !CSS.supports('color', color)) {
if (typeof window !== 'undefined' && !CSS.supports('color', color)) {
console.warn(`[@co-design/styles] Color ${color} is not supported by the browser. Please use a valid CSS color. [${color}]`);
return 'inherit';
}
Expand Down

0 comments on commit e0ca8bb

Please sign in to comment.