Skip to content

Commit ec7befc

Browse files
committed
fix(settings): update color themes
1 parent 6e79fa2 commit ec7befc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/assets/global.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
--base-dimmed: #30363d;
1212
--accent: #2f81f7;
1313
}
14-
&[data-theme="beige"] {
15-
--background: #191919;
16-
--base-dimmed: #2c2c2c;
17-
--accent: #b9b384;
18-
}
19-
&[data-theme="blue"] {
14+
&[data-theme="aqua"] {
2015
--background: #1d1d24;
2116
--base-dimmed: #31313b;
2217
--accent: #77babc;
2318
}
24-
&[data-theme="green"] {
25-
--background: #19191a;
26-
--base-dimmed: #2f2f31;
19+
&[data-theme="cream"] {
20+
--background: #1b1a17;
21+
--base-dimmed: #2c2b26;
22+
--accent: #b9b384;
23+
}
24+
&[data-theme="mint"] {
25+
--background: #1b1b1c;
26+
--base-dimmed: #313131;
2727
--accent: #63b97f;
2828
}
29-
&[data-theme="red"] {
30-
--background: #262a2e;
31-
--base-dimmed: #33393e;
29+
&[data-theme="rose"] {
30+
--background: #1f1a18;
31+
--base-dimmed: #322b28;
3232
--accent: #ff7b5d;
3333
}
3434
&[data-theme="departure"] {

src/store/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createGlobalState, useLocalStorage } from "@vueuse/core";
22
import { useRegisterSW } from "virtual:pwa-register/vue";
33

4-
type Theme = "github" | "blue" | "beige" | "green" | "red" | "departure";
4+
type Theme = "github" | "aqua" | "cream" | "mint" | "rose" | "departure";
55
export interface SettingsStore {
66
authToken: string
77
username: string
@@ -28,7 +28,7 @@ export const useSettingsStore = createGlobalState(() => {
2828
}
2929

3030
function nextTheme(): void {
31-
const themes: readonly Theme[] = ["github", "blue", "beige", "green", "red", "departure"];
31+
const themes = ["github", "aqua", "cream", "mint", "rose", "departure"] as const satisfies readonly Theme[];
3232
const index = themes.indexOf(settings.value.theme);
3333
const nextIndex = (index + 1) % themes.length;
3434
settings.value.theme = themes[nextIndex];

0 commit comments

Comments
 (0)