@@ -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 >
0 commit comments