Skip to content

Commit 842ee59

Browse files
committed
Update colors
1 parent 7d2b6a3 commit 842ee59

File tree

3 files changed

+38
-25
lines changed

3 files changed

+38
-25
lines changed

src/layouts/BlogPost.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { headings } = await post.render();
2828
<article class='flex-grow break-words' data-pagefind-body>
2929
<div id='blog-hero'><BlogHero content={post} /></div>
3030
<div
31-
class='prose prose-base prose-slate mt-12 max-w-[50rem] font-sans text-base leading-6 dark:prose-invert dark:prose-dark prose-headings:font-bold prose-headings:text-foreground prose-headings:before:absolute prose-headings:before:-ms-4 prose-th:before:content-none prose-inline-code:font-mono prose-inline-code:text-sm prose-inline-code:font-normal'
31+
class='prose prose-base prose-neutral mt-12 max-w-[50rem] font-sans text-base leading-6 dark:prose-invert dark:prose-dark prose-headings:font-bold prose-headings:text-foreground prose-headings:before:absolute prose-headings:before:-ms-4 prose-th:before:content-none prose-inline-code:font-mono prose-inline-code:text-sm prose-inline-code:font-normal'
3232
>
3333
<slot />
3434
</div>

src/styles/app.css

+21-21
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,45 @@
44

55
@layer base {
66
:root {
7-
--background: 210 33% 99%;
8-
--foreground: 240 10% 3.9%;
9-
--card: 0 0% 100%;
7+
--background: 0 0% 100%;
8+
--foreground: 0 0% 0%;
9+
--card: 0 0% 0%;
1010
--card-foreground: 240 10% 3.9%;
1111
--popover: 0 0% 100%;
1212
--popover-foreground: 240 10% 3.9%;
13-
--primary: 240 5.9% 10%;
14-
--primary-foreground: 0 0% 98%;
15-
--secondary: 240 4.8% 95.9%;
16-
--secondary-foreground: 240 5.9% 10%;
17-
--muted: 240 4.8% 95.9%;
18-
--muted-foreground: 240 3.8% 46.1%;
19-
--accent: 240 4.8% 95.9%;
20-
--accent-foreground: 240 5.9% 10%;
13+
--primary: 0 0% 100%;
14+
--primary-foreground: 0 0% 100%;
15+
--secondary: 0 0% 100%;
16+
--secondary-foreground: 0 0% 0%;
17+
--muted: 0 0% 100%;
18+
--muted-foreground: 0 0% 50%;
19+
--accent: 0 0% 95%;
20+
--accent-foreground: 0 0% 0%;
2121
--destructive: 0 72.22% 50.59%;
2222
--destructive-foreground: 0 0% 98%;
23-
--border: 240 5.9% 90%;
23+
--border: 0 0% 90%;
2424
--input: 240 5.9% 90%;
2525
--ring: 240 5.9% 10%;
2626
--radius: 0.5rem;
2727
}
2828
.dark {
29-
--background: 240 10% 25%;
29+
--background: 0 0% 20%;
3030
--foreground: 0 0% 90%;
31-
--card: 240 10% 3.9%;
31+
--card: 0 0% 20%;
3232
--card-foreground: 0 0% 90%;
3333
--popover: 240 10% 3.9%;
3434
--popover-foreground: 0 0% 98%;
3535
--primary: 0 0% 90%;
36-
--primary-foreground: 240 10% 30%;
37-
--secondary: 240 3.7% 15.9%;
36+
--primary-foreground: 0 0% 19%;
37+
--secondary: 0 0% 20%;
3838
--secondary-foreground: 0 0% 98%;
39-
--muted: 240 3.7% 15.9%;
40-
--muted-foreground: 240 5% 64.9%;
41-
--accent: 240 3.7% 15.9%;
42-
--accent-foreground: 0 0% 98%;
39+
--muted: 0 0% 20%;
40+
--muted-foreground: 0 0% 70%;
41+
--accent: 0 0% 15%;
42+
--accent-foreground: 0 0% 100%;
4343
--destructive: 0 62.8% 30.6%;
4444
--destructive-foreground: 0 0% 98%;
45-
--border: 240 3.7% 22%;
45+
--border: 0 0% 30%;
4646
--input: 240 3.7% 22%;
4747
--ring: 240 4.9% 83.9%;
4848
}

tailwind.config.js

+16-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ const config = {
9191
},
9292
code: {
9393
backgroundColor: "hsl(var(--accent))",
94+
color: "hsl(var(--accent-foreground))",
9495
borderRadius: theme("borderRadius.DEFAULT"),
95-
paddingLeft: theme("spacing[0.5]"),
96-
paddingRight: theme("spacing[0.5]"),
96+
paddingLeft: theme("spacing[1]"),
97+
paddingRight: theme("spacing[1]"),
9798
paddingTop: theme("spacing[0.5]"),
9899
paddingBottom: theme("spacing[0.5]"),
99100
},
@@ -105,16 +106,28 @@ const config = {
105106
textDecoration: "underline",
106107
},
107108
},
109+
"li::marker": {
110+
color: theme("colors.neutral.950"),
111+
},
108112
},
109113
},
110114
dark: {
111115
css: {
112116
code: {
113-
backgroundColor: "hsl(var(--background) / <alpha-value>)",
117+
backgroundColor: "hsl(var(--accent))",
118+
color: "hsl(var(--accent-foreground))",
119+
borderRadius: theme("borderRadius.DEFAULT"),
120+
paddingLeft: theme("spacing[1]"),
121+
paddingRight: theme("spacing[1]"),
122+
paddingTop: theme("spacing[0.5]"),
123+
paddingBottom: theme("spacing[0.5]"),
114124
},
115125
a: {
116126
color: theme("colors.blue.300"),
117127
},
128+
"li::marker": {
129+
color: theme("colors.neutral.300"),
130+
},
118131
},
119132
},
120133
}),

0 commit comments

Comments
 (0)