Skip to content

Commit 3c3a8a7

Browse files
committed
Update to use zinc and alpha
1 parent f73acc9 commit 3c3a8a7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

react-hooks.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@ Import snippets into your MDX files to create reusable interactive components. S
8686
}
8787

8888
return (
89-
<div className="p-4 border dark:border-zinc-800 rounded-xl bg-white dark:bg-gray-800 shadow-sm">
90-
<span className="text-xl mb-4 font-semibold text-gray-800 dark:text-white">HSL Color Generator</span>
89+
<div className="p-4 border dark:border-zinc-950/80 rounded-xl bg-white dark:bg-zinc-950/80 shadow-sm">
90+
<span className="text-xl mb-4 font-semibold text-zinc-950/80 dark:text-white/80">HSL Color Generator</span>
9191

9292
<div className="space-y-4">
9393
<div className="space-y-2">
94-
<label className="block text-sm text-gray-700 dark:text-gray-300">
94+
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
9595
Hue: {hue}°
9696
<input
9797
type="range"
9898
min="0"
9999
max="360"
100100
value={hue}
101101
onChange={(e) => setHue(Number.parseInt(e.target.value))}
102-
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
102+
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
103103
style={{
104104
background: `linear-gradient(to right,
105105
hsl(0, ${saturation}%, ${lightness}%),
@@ -113,15 +113,15 @@ Import snippets into your MDX files to create reusable interactive components. S
113113
/>
114114
</label>
115115

116-
<label className="block text-sm text-gray-700 dark:text-gray-300">
116+
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
117117
Saturation: {saturation}%
118118
<input
119119
type="range"
120120
min="0"
121121
max="100"
122122
value={saturation}
123123
onChange={(e) => setSaturation(Number.parseInt(e.target.value))}
124-
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
124+
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
125125
style={{
126126
background: `linear-gradient(to right,
127127
hsl(${hue}, 0%, ${lightness}%),
@@ -131,15 +131,15 @@ Import snippets into your MDX files to create reusable interactive components. S
131131
/>
132132
</label>
133133

134-
<label className="block text-sm text-gray-700 dark:text-gray-300">
134+
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
135135
Lightness: {lightness}%
136136
<input
137137
type="range"
138138
min="0"
139139
max="100"
140140
value={lightness}
141141
onChange={(e) => setLightness(Number.parseInt(e.target.value))}
142-
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
142+
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
143143
style={{
144144
background: `linear-gradient(to right,
145145
hsl(${hue}, ${saturation}%, 0%),
@@ -162,7 +162,7 @@ Import snippets into your MDX files to create reusable interactive components. S
162162
))}
163163
</div>
164164

165-
<div className="text-sm font-mono text-gray-700 dark:text-gray-300">
165+
<div className="text-sm font-mono text-zinc-950/70 dark:text-white/70">
166166
<p>
167167
Base color: hsl({hue}, {saturation}%, {lightness}%)
168168
</p>

0 commit comments

Comments
 (0)