@@ -249,22 +277,24 @@ export function ColorPicker() {
{/* Right Column: Tailwind Colors */}
-
- {
- // Always set the hex color for the color picker
- if (selectedColor.startsWith('oklch')) {
- const oklch = parseOklch(selectedColor)
- if (oklch) {
- const rgb = oklchToRgb(oklch.l, oklch.c, oklch.h)
- setColor(rgbToHex(rgb.r, rgb.g, rgb.b))
+
+
+ {
+ // Always set the hex color for the color picker
+ if (selectedColor.startsWith('oklch')) {
+ const oklch = parseOklch(selectedColor)
+ if (oklch) {
+ const rgb = oklchToRgb(oklch.l, oklch.c, oklch.h)
+ setColor(rgbToHex(rgb.r, rgb.g, rgb.b))
+ }
+ } else {
+ setColor(selectedColor)
}
- } else {
- setColor(selectedColor)
- }
- }}
- selectedColor={color}
- />
+ }}
+ selectedColor={color}
+ />
+