Skip to content

Commit fe97217

Browse files
committed
Claude's first pass...isn't great
1 parent 0332c17 commit fe97217

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

src/components/long-form/long-form.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
bottom: 0;
3838
width: var(--spacing-lg);
3939
height: var(--spacing-xs);
40-
background-color: rgba(0, 0, 0, 0.125);
40+
background-color: var(--semi-transparent-black);
4141
}
4242

4343
.long-form p {
@@ -58,8 +58,8 @@
5858
}
5959

6060
.long-form :not(pre) > code {
61-
color: black;
62-
background-color: rgba(0, 0, 0, 0.05);
61+
color: var(--outer-space);
62+
background-color: var(--sea-shell);
6363
padding: 0.125rem 0.25rem;
6464
border-radius: 3px;
6565
font-size: 0.85rem;
@@ -81,7 +81,7 @@
8181
display: block;
8282
border-radius: var(--border-radius);
8383
padding: var(--spacing-md);
84-
box-shadow: 0 1rem 1rem -1rem rgba(0, 0, 0, 0.33);
84+
box-shadow: 0 1rem 1rem -1rem var(--shadow-color);
8585
overflow-x: auto;
8686
}
8787

src/styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ h6 {
8484

8585
pre,
8686
code {
87-
color: #fff;
87+
color: var(--white);
8888
}
8989

9090
iframe {

src/styles/variables.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
--outer-space: #293038;
1010
--sea-shell: #f1f1f1;
1111
--semi-transparent-black: rgba(0, 0, 0, 0.125);
12+
--shadow-color: rgba(0, 0, 0, 0.33);
1213
--boulder: #575757;
1314
--white: #fff;
1415

@@ -41,3 +42,15 @@
4142
--header-height: 3rem;
4243
--border-radius: 6px;
4344
}
45+
46+
@media (prefers-color-scheme: dark) {
47+
:root {
48+
/* Remap colors for dark mode */
49+
--outer-space: #e8e8e8;
50+
--sea-shell: #1a1a1a;
51+
--white: #0d0d0d;
52+
--boulder: #a8a8a8;
53+
--semi-transparent-black: rgba(255, 255, 255, 0.125);
54+
--shadow-color: rgba(0, 0, 0, 0.66);
55+
}
56+
}

0 commit comments

Comments
 (0)