From e0ca8bbe6e3db4d8c5cb19cd24cab434ff4a3037 Mon Sep 17 00:00:00 2001 From: healtheloper Date: Fri, 15 Dec 2023 15:28:33 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=80=EC=9E=85=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0=ED=96=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/co-design-styles/src/theme/utils/getColor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/co-design-styles/src/theme/utils/getColor.ts b/packages/co-design-styles/src/theme/utils/getColor.ts index ee25ea5..b7564e4 100644 --- a/packages/co-design-styles/src/theme/utils/getColor.ts +++ b/packages/co-design-styles/src/theme/utils/getColor.ts @@ -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'; }