From ac4577571f7042bbce0baa864fee1b7a72921f9e Mon Sep 17 00:00:00 2001 From: HotoRas Date: Tue, 19 Nov 2024 18:48:54 +0900 Subject: [PATCH] =?UTF-8?q?feat=20(frontend):=20=EC=9D=B4=EC=A0=9C=20?= =?UTF-8?q?=EA=B3=A0=EC=96=91=EC=9D=B4=EB=B3=84=20=EC=8A=A4=ED=82=A8?= =?UTF-8?q?=EC=9D=B4=20=EB=93=B1=EB=A1=9D=EB=90=A9=EB=8B=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 등록되는 파일을 방금 찾았다는 게 개그 --- packages/frontend/src/scripts/theme.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/theme.ts b/packages/frontend/src/scripts/theme.ts index 1a3909c132fa..f0ed195486c6 100644 --- a/packages/frontend/src/scripts/theme.ts +++ b/packages/frontend/src/scripts/theme.ts @@ -32,6 +32,7 @@ export const themeProps = Object.keys(lightTheme.props).filter(key => !key.start export const getBuiltinThemes = () => Promise.all( [ + 'l-nekoplanet-light', 'l-light', 'l-coffee', 'l-apricot', @@ -42,6 +43,7 @@ export const getBuiltinThemes = () => Promise.all( 'l-sushi', 'l-u0', + 'd-nekoplanet-dark', 'd-dark', 'd-persimmon', 'd-astro', @@ -116,8 +118,8 @@ function compile(theme: Theme): Record { return getColor(theme.props[val]); } else if (val[0] === ':') { // func const parts = val.split('<'); - const func = parts.shift().substring(1); - const arg = parseFloat(parts.shift()); + const func = parts.shift()!.substring(1); + const arg = parseFloat(parts.shift()!); const color = getColor(parts.join('<')); switch (func) {