Skip to content

Commit

Permalink
feat(ui): add a new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
skjsjhb committed Mar 1, 2025
1 parent ef4b9bc commit d8c71e3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/i18n/en/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ settings:
overworld: Overworld (Colorized)
twikie: Friendship Is Magic (Alicorn Souvenir)
amazing-grace: Yune (Alicorn 2.x Impression)
hoshi: Hoshi (Factory)
language:
title: Language
sub: Select the language for UI.
Expand Down
1 change: 1 addition & 0 deletions public/i18n/zh-CN/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ settings:
overworld: 世界(改色)
twikie: 友谊与魔法之歌(Alicorn 纪念)
amazing-grace: 悠音(Alicorn 2.x 印象)
hoshi: 星(原厂)
language:
title: 语言
sub: 设置 Alicorn 使用的语言。
Expand Down
2 changes: 2 additions & 0 deletions themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import type { ConfigThemes } from "@heroui/react";
import amazingGrace from "./themes/amazing-grace";
import hoshi from "./themes/hoshi";
import overworld from "./themes/overworld";
import sakuraDark from "./themes/sakura-dark";
import sakuraLight from "./themes/sakura-light";
Expand All @@ -12,6 +13,7 @@ export default {
"sakura-light": sakuraLight,
"sakura-dark": sakuraDark,
"overworld": overworld,
"hoshi": hoshi,
"twikie": twikie,
"amazing-grace": amazingGrace
} satisfies ConfigThemes;
44 changes: 44 additions & 0 deletions themes/hoshi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import type { ConfigTheme } from "@heroui/react";

const color = {
"50": "#ffffff",
"100": "#ffffff",
"200": "#ffffff",
"300": "#ffffff",
"400": "#f0f0f0",
"500": "#e0e0e0",
"600": "#d2d2d2",
"700": "#a6a6a6",
"800": "#797979",
"900": "#4d4d4d",
foreground: "#000",
DEFAULT: "#f0f0f0"
};

export default {
extend: "dark",
colors: {
primary: color,
secondary: color,
background: "#000000",
foreground: "#ffffff",
content1: {
DEFAULT: "#18181b",
foreground: "#fff"
},
content2: {
DEFAULT: "#2b2b2b",
foreground: "#fff"
},
content3: {
DEFAULT: "#464646",
foreground: "#fff"
},
content4: {
DEFAULT: "#616161",
foreground: "#fff"
},
focus: "#ffffff",
overlay: "#ffffff"
}
} satisfies ConfigTheme;

0 comments on commit d8c71e3

Please sign in to comment.