diff --git a/apps/web/src/app/embed/css-vars.ts b/apps/web/src/app/embed/css-vars.ts index 711a3e51f..65bb3174b 100644 --- a/apps/web/src/app/embed/css-vars.ts +++ b/apps/web/src/app/embed/css-vars.ts @@ -1,5 +1,5 @@ import { colord } from 'colord'; -import { toSnakeCase } from 'remeda'; +import { toKebabCase } from 'remeda'; import { z } from 'zod'; export const ZCssVarsSchema = z @@ -47,7 +47,7 @@ export const toNativeCssVars = (vars: TCssVarsSchema) => { const color = colord(value); const { h, s, l } = color.toHsl(); - cssVars[`--${toSnakeCase(key)}`] = `${h} ${s} ${l}`; + cssVars[`--${toKebabCase(key)}`] = `${h} ${s} ${l}`; } }