Skip to content

Commit 1cb9da9

Browse files
committed
Revert colors
1 parent 071bf05 commit 1cb9da9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

snippets/color-generator.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ export const ColorGenerator = () => {
2525
}
2626

2727
return (
28-
<div className="p-4 border dark:border-zinc-950/80 rounded-xl bg-white dark:bg-zinc-950/80 shadow-sm not-prose">
29-
<p className="text-xl mb-4 font-semibold text-zinc-950/80 dark:text-white">HSL Color Generator</p>
28+
<div className="p-4 border dark:border-zinc-800 rounded-xl bg-white dark:bg-gray-900/50 shadow-sm not-prose">
29+
<p className="text-xl mb-4 font-semibold text-gray-800 dark:text-white">HSL Color Generator</p>
3030

3131
<div className="space-y-4">
3232
<div className="space-y-2">
33-
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
33+
<label className="block text-sm text-gray-700 dark:text-gray-300">
3434
Hue: {hue}°
3535
<input
3636
type="range"
3737
min="0"
3838
max="360"
3939
value={hue}
4040
onChange={(e) => setHue(Number.parseInt(e.target.value))}
41-
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
41+
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
4242
style={{
4343
background: `linear-gradient(to right,
4444
hsl(0, ${saturation}%, ${lightness}%),
@@ -52,15 +52,15 @@ export const ColorGenerator = () => {
5252
/>
5353
</label>
5454

55-
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
55+
<label className="block text-sm text-gray-700 dark:text-gray-300">
5656
Saturation: {saturation}%
5757
<input
5858
type="range"
5959
min="0"
6060
max="100"
6161
value={saturation}
6262
onChange={(e) => setSaturation(Number.parseInt(e.target.value))}
63-
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
63+
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
6464
style={{
6565
background: `linear-gradient(to right,
6666
hsl(${hue}, 0%, ${lightness}%),
@@ -70,15 +70,15 @@ export const ColorGenerator = () => {
7070
/>
7171
</label>
7272

73-
<label className="block text-sm text-zinc-950/70 dark:text-white/70">
73+
<label className="block text-sm text-gray-700 dark:text-gray-300">
7474
Lightness: {lightness}%
7575
<input
7676
type="range"
7777
min="0"
7878
max="100"
7979
value={lightness}
8080
onChange={(e) => setLightness(Number.parseInt(e.target.value))}
81-
className="w-full h-2 bg-zinc-950/20 rounded-lg appearance-none cursor-pointer dark:bg-white/20 mt-1"
81+
className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 mt-1"
8282
style={{
8383
background: `linear-gradient(to right,
8484
hsl(${hue}, ${saturation}%, 0%),
@@ -101,7 +101,7 @@ export const ColorGenerator = () => {
101101
))}
102102
</div>
103103

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

snippets/counter.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ export const Counter = () => {
66

77
return (
88
<div className="flex items-center justify-center">
9-
<div className="flex items-center rounded-lg overflow-hidden border border-zinc-950/20 dark:border-zinc-950/80 shadow-sm">
9+
<div className="flex items-center rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 shadow-sm">
1010
<button
1111
onClick={decrement}
12-
className="flex items-center justify-center h-8 w-8 bg-white hover:bg-zinc-950/10 text-zinc-950 dark:bg-zinc-950/80 dark:hover:bg-zinc-950/70 dark:text-zinc-100 border-r border-zinc-950/20 dark:border-zinc-950/80"
12+
className="flex items-center justify-center h-8 w-8 bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-900 dark:hover:bg-gray-800 dark:text-gray-200 border-r border-gray-200 dark:border-gray-700"
1313
aria-label="Decrease"
1414
>
1515
-
1616
</button>
1717

18-
<div className="flex text-sm items-center justify-center h-8 px-6 bg-white dark:bg-zinc-950/80 text-zinc-950 dark:text-zinc-100 font-medium min-w-[4rem] text-center">
18+
<div className="flex text-sm items-center justify-center h-8 px-6 bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 font-medium min-w-[4rem] text-center">
1919
{count}
2020
</div>
2121

2222
<button
2323
onClick={increment}
24-
className="flex items-center justify-center h-8 w-8 bg-white hover:bg-zinc-950/10 text-zinc-950 dark:bg-zinc-950/80 dark:hover:bg-zinc-950/70 dark:text-zinc-100 border-l border-zinc-950/20 dark:border-zinc-950/80"
24+
className="flex items-center justify-center h-8 w-8 bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-900 dark:hover:bg-gray-800 dark:text-gray-200 border-l border-gray-200 dark:border-gray-700"
2525
aria-label="Increase"
2626
>
2727
+

0 commit comments

Comments
 (0)