Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit cefc241

Browse files
change the shadcn theme and as well shiki theme
1 parent 7ee44a7 commit cefc241

File tree

1 file changed

+51
-35
lines changed

1 file changed

+51
-35
lines changed

packages/section-blog-theme/styles/globals.css

Lines changed: 51 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,63 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
/* shadcn ui css */
56

67
@layer base {
78
:root {
89
--background: 0 0% 100%;
9-
--foreground: 0 0% 3.9%;
10+
--foreground: 240 10% 3.9%;
1011
--card: 0 0% 100%;
11-
--card-foreground: 0 0% 3.9%;
12+
--card-foreground: 240 10% 3.9%;
1213
--popover: 0 0% 100%;
13-
--popover-foreground: 0 0% 3.9%;
14-
--primary: 0 0% 9%;
14+
--popover-foreground: 240 10% 3.9%;
15+
--primary: 240 5.9% 10%;
1516
--primary-foreground: 0 0% 98%;
16-
--secondary: 0 0% 96.1%;
17-
--secondary-foreground: 0 0% 9%;
18-
--muted: 0 0% 96.1%;
19-
--muted-foreground: 0 0% 45.1%;
20-
--accent: 0 0% 96.1%;
21-
--accent-foreground: 0 0% 9%;
17+
--secondary: 240 4.8% 95.9%;
18+
--secondary-foreground: 240 5.9% 10%;
19+
--muted: 240 4.8% 95.9%;
20+
--muted-foreground: 240 3.8% 46.1%;
21+
--accent: 240 4.8% 95.9%;
22+
--accent-foreground: 240 5.9% 10%;
2223
--destructive: 0 84.2% 60.2%;
2324
--destructive-foreground: 0 0% 98%;
24-
--border: 0 0% 89.8%;
25-
--input: 0 0% 89.8%;
26-
--ring: 0 0% 3.9%;
27-
--radius: 0.5rem;
25+
--border: 240 5.9% 90%;
26+
--input: 240 5.9% 90%;
27+
--ring: 240 5.9% 10%;
28+
--radius: 0.3rem;
2829
}
2930

3031
.dark {
31-
--background: 0 0% 3.9%;
32+
--background: 240 10% 3.9%;
3233
--foreground: 0 0% 98%;
33-
--card: 0 0% 3.9%;
34+
--card: 240 10% 3.9%;
3435
--card-foreground: 0 0% 98%;
35-
--popover: 0 0% 3.9%;
36+
--popover: 240 10% 3.9%;
3637
--popover-foreground: 0 0% 98%;
3738
--primary: 0 0% 98%;
38-
--primary-foreground: 0 0% 9%;
39-
--secondary: 0 0% 14.9%;
39+
--primary-foreground: 240 5.9% 10%;
40+
--secondary: 240 3.7% 15.9%;
4041
--secondary-foreground: 0 0% 98%;
41-
--muted: 0 0% 14.9%;
42-
--muted-foreground: 0 0% 63.9%;
43-
--accent: 0 0% 14.9%;
42+
--muted: 240 3.7% 15.9%;
43+
--muted-foreground: 240 5% 64.9%;
44+
--accent: 240 3.7% 15.9%;
4445
--accent-foreground: 0 0% 98%;
4546
--destructive: 0 62.8% 30.6%;
4647
--destructive-foreground: 0 0% 98%;
47-
--border: 0 0% 14.9%;
48-
--input: 0 0% 14.9%;
49-
--ring: 0 0% 83.1%;
48+
--border: 240 3.7% 15.9%;
49+
--input: 240 3.7% 15.9%;
50+
--ring: 240 4.9% 83.9%;
5051
}
5152
}
5253

5354

54-
@layer base {
55-
* {
56-
@apply border-border;
57-
}
55+
/* shiki code */
5856

59-
body {
60-
@apply bg-background text-foreground;
61-
}
57+
@layer base {
6258

6359
:root {
64-
--shiki-color-text: #414141;
65-
--shiki-color-background: transparent;
60+
--shiki-color-text: rgb(5, 0, 0);
61+
--shiki-color-background: rgb(115, 115, 250);
6662
--shiki-token-constant: #1976d2;
6763
--shiki-token-string: #22863a;
6864
--shiki-token-comment: #aaa;
@@ -72,10 +68,12 @@
7268
--shiki-token-string-expression: #22863a;
7369
--shiki-token-punctuation: #212121;
7470
--shiki-token-link: #22863a;
71+
7572
}
7673

7774
.dark {
78-
--shiki-color-text: #d1d1d1;
75+
--shiki-color-background: rgba(0, 0, 255, 0.329);
76+
--shiki-color-text: rgb(255, 255, 255);
7977
--shiki-token-constant: #79b8ff;
8078
--shiki-token-string: #ffab70;
8179
--shiki-token-comment: #6b737c;
@@ -86,4 +84,22 @@
8684
--shiki-token-punctuation: #bbb;
8785
--shiki-token-link: #ffab70;
8886
}
87+
88+
}
89+
90+
@layer base {
91+
92+
* {
93+
@apply nx-border-border;
94+
}
95+
96+
html {
97+
@apply nx-m-0 nx-p-0;
98+
}
99+
100+
body {
101+
@apply nx-bg-background nx-text-foreground;
102+
font-feature-settings: "rlig" 1, "calt" 1;
103+
}
104+
89105
}

0 commit comments

Comments
 (0)