Skip to content

Commit 7c26e7e

Browse files
Update dark mode text (#182)
1 parent dc77afe commit 7c26e7e

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

fern/changelog/overview.mdx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
slug: changelog
33
---
44
<Card
5-
title={<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer' }} onClick={() => document.querySelector('input[type="email"]').focus()}>Get the (almost) daily changelog</div>}
5+
title={<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', color: 'inherit' }} onClick={() => document.querySelector('input[type="email"]').focus()}>Get the (almost) daily changelog</div>}
66
icon="envelope"
77
iconType="solid"
88
>
@@ -37,14 +37,18 @@ slug: changelog
3737
fontSize: '0.875rem',
3838
outline: 'none',
3939
transition: 'border-color 0.2s ease-in-out',
40+
color: '#1f2937',
4041
':focus': {
4142
borderColor: '#4f46e5',
4243
boxShadow: '0 0 0 1px #4f46e5'
4344
},
4445
'@media (prefers-color-scheme: dark)': {
45-
backgroundColor: '#1f2937',
46-
borderColor: '#374151',
46+
backgroundColor: '#374151',
47+
borderColor: '#4b5563',
4748
color: '#f3f4f6',
49+
'::placeholder': {
50+
color: '#9ca3af'
51+
},
4852
':focus': {
4953
borderColor: '#6366f1',
5054
boxShadow: '0 0 0 1px #6366f1'
@@ -55,7 +59,7 @@ slug: changelog
5559
<button
5660
type="submit"
5761
style={{
58-
backgroundColor: '#37aa9d', // Match the theme color
62+
backgroundColor: '#37aa9d',
5963
color: 'white',
6064
fontWeight: 500,
6165
padding: '0.5rem 1rem',
@@ -64,16 +68,17 @@ slug: changelog
6468
cursor: 'pointer',
6569
transition: 'all 0.2s ease-in-out',
6670
':hover': {
67-
backgroundColor: '#2e8b7d', // Slightly darker shade for hover
71+
backgroundColor: '#2e8b7d',
6872
transform: 'translateY(-1px)'
6973
},
7074
':active': {
7175
transform: 'translateY(0)'
7276
},
7377
'@media (prefers-color-scheme: dark)': {
74-
backgroundColor: '#94ffd2', // Match the dark theme color
78+
backgroundColor: '#94ffd2',
79+
color: '#1f2937',
7580
':hover': {
76-
backgroundColor: '#7cd9b0' // Slightly darker shade for hover in dark mode
81+
backgroundColor: '#7cd9b0'
7782
}
7883
}
7984
}}

0 commit comments

Comments
 (0)