Skip to content

Commit 83d81ce

Browse files
committed
organize code
1 parent 8fed924 commit 83d81ce

4 files changed

Lines changed: 48 additions & 55 deletions

File tree

‎styles/components/dashboard.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const dashboard = css`
108108
background: #0000;
109109
&:hover {
110110
background: ${themeVars.github.control.transparent.bgColor.hover};
111-
color: ${themeVars.color.text.self}
111+
color: ${themeVars.color.text.self};
112112
}
113113
}
114114
.ui.circular.label {

‎themes/catppuccin.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,3 @@ export const catppuccinLatteTheme = defineCatppuccinTheme(flavors.latte);
3636
export const catppuccinFrappeTheme = defineCatppuccinTheme(flavors.frappe);
3737
export const catppuccinMacchiatoTheme = defineCatppuccinTheme(flavors.macchiato);
3838
export const catppuccinMochaTheme = defineCatppuccinTheme(flavors.mocha);
39-
40-
export default {
41-
catppuccinLatteTheme,
42-
catppuccinFrappeTheme,
43-
catppuccinMacchiatoTheme,
44-
catppuccinMochaTheme,
45-
};

‎themes/github.ts‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,3 @@ export const githubLightTritanopiaHighContrastTheme = defineGitHubTheme(githubLi
7979
export const githubPinkDarkTheme = defineGitHubTheme(githubPinkDarkColor);
8080
export const githubPinkSoftDarkTheme = defineGitHubTheme(githubPinkSoftDarkColor);
8181
export const githubPinkLightTheme = defineGitHubTheme(githubPinkLightColor);
82-
83-
export default {
84-
// 普通主题
85-
githubDarkTheme,
86-
githubSoftDarkTheme,
87-
githubColorblindDarkTheme,
88-
githubTritanopiaDarkTheme,
89-
githubLightTheme,
90-
githubColorblindLightTheme,
91-
githubTritanopiaLightTheme,
92-
// 高对比度主题
93-
githubDarkHighContrastTheme,
94-
githubDarkColorblindHighContrastTheme,
95-
githubDarkTritanopiaHighContrastTheme,
96-
githubSoftDarkHighContrastTheme,
97-
githubLightHighContrastTheme,
98-
githubLightColorblindHighContrastTheme,
99-
githubLightTritanopiaHighContrastTheme,
100-
// 自定义主题
101-
githubPinkDarkTheme,
102-
githubPinkSoftDarkTheme,
103-
githubPinkLightTheme,
104-
};

‎themes/index.ts‎

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright (c) https://github.com/lutinglt
2+
* Copyright (c) https://com/lutinglt
33
*
44
* See the NOTICE file distributed with this work for additional
55
* information regarding copyright ownership.
@@ -17,40 +17,63 @@
1717
* limitations under the License.
1818
*/
1919

20-
import catppuccin from "./catppuccin";
20+
import {
21+
catppuccinFrappeTheme,
22+
catppuccinLatteTheme,
23+
catppuccinMacchiatoTheme,
24+
catppuccinMochaTheme,
25+
} from "./catppuccin";
2126
import { giteaDarkTheme } from "./giteaDark";
2227
import { giteaLightTheme } from "./giteaLight";
23-
import github from "./github";
28+
import {
29+
githubColorblindDarkTheme,
30+
githubColorblindLightTheme,
31+
githubDarkColorblindHighContrastTheme,
32+
githubDarkHighContrastTheme,
33+
githubDarkTheme,
34+
githubDarkTritanopiaHighContrastTheme,
35+
githubLightColorblindHighContrastTheme,
36+
githubLightHighContrastTheme,
37+
githubLightTheme,
38+
githubLightTritanopiaHighContrastTheme,
39+
githubPinkDarkTheme,
40+
githubPinkLightTheme,
41+
githubPinkSoftDarkTheme,
42+
githubSoftDarkHighContrastTheme,
43+
githubSoftDarkTheme,
44+
githubTritanopiaDarkTheme,
45+
githubTritanopiaLightTheme,
46+
} from "./github";
2447

2548
export default {
2649
github: {
27-
dark: github.githubDarkTheme,
28-
light: github.githubLightTheme,
29-
softDark: github.githubSoftDarkTheme,
50+
dark: githubDarkTheme,
51+
light: githubLightTheme,
52+
softDark: githubSoftDarkTheme,
3053
colorblind: {
31-
dark: github.githubColorblindDarkTheme,
32-
light: github.githubColorblindLightTheme,
54+
dark: githubColorblindDarkTheme,
55+
light: githubColorblindLightTheme,
3356
},
3457
tritanopia: {
35-
dark: github.githubTritanopiaDarkTheme,
36-
light: github.githubTritanopiaLightTheme,
58+
dark: githubTritanopiaDarkTheme,
59+
light: githubTritanopiaLightTheme,
3760
},
3861
pink: {
39-
dark: github.githubPinkDarkTheme,
40-
light: github.githubPinkLightTheme,
41-
softDark: github.githubPinkSoftDarkTheme,
62+
dark: githubPinkDarkTheme,
63+
light: githubPinkLightTheme,
64+
softDark: githubPinkSoftDarkTheme,
4265
},
4366
highContrast: {
44-
dark: github.githubDarkHighContrastTheme,
45-
light: github.githubLightHighContrastTheme,
46-
softDark: github.githubSoftDarkHighContrastTheme,
67+
dark: githubDarkHighContrastTheme,
68+
light: githubLightHighContrastTheme,
69+
softDark: githubSoftDarkHighContrastTheme,
4770
colorblind: {
48-
dark: github.githubDarkColorblindHighContrastTheme,
49-
light: github.githubLightColorblindHighContrastTheme,
71+
dark: githubDarkColorblindHighContrastTheme,
72+
light: githubLightColorblindHighContrastTheme,
5073
},
5174
tritanopia: {
52-
dark: github.githubDarkTritanopiaHighContrastTheme,
53-
light: github.githubLightTritanopiaHighContrastTheme,
75+
dark: githubDarkTritanopiaHighContrastTheme,
76+
light: githubLightTritanopiaHighContrastTheme,
5477
},
5578
},
5679
},
@@ -59,9 +82,9 @@ export default {
5982
light: giteaLightTheme,
6083
},
6184
catppuccin: {
62-
latte: catppuccin.catppuccinLatteTheme,
63-
frappe: catppuccin.catppuccinFrappeTheme,
64-
macchiato: catppuccin.catppuccinMacchiatoTheme,
65-
mocha: catppuccin.catppuccinMochaTheme,
85+
latte: catppuccinLatteTheme,
86+
frappe: catppuccinFrappeTheme,
87+
macchiato: catppuccinMacchiatoTheme,
88+
mocha: catppuccinMochaTheme,
6689
},
6790
};

0 commit comments

Comments
 (0)