Skip to content

Commit

Permalink
feat (frontend): 이제 고양이별 스킨이 등록됩니다
Browse files Browse the repository at this point in the history
등록되는 파일을 방금 찾았다는 게 개그
  • Loading branch information
HotoRas committed Nov 19, 2024
1 parent e66d2e9 commit ac45775
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/frontend/src/scripts/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -42,6 +43,7 @@ export const getBuiltinThemes = () => Promise.all(
'l-sushi',
'l-u0',

'd-nekoplanet-dark',
'd-dark',
'd-persimmon',
'd-astro',
Expand Down Expand Up @@ -116,8 +118,8 @@ function compile(theme: Theme): Record<string, string> {
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) {
Expand Down

0 comments on commit ac45775

Please sign in to comment.