From f2149719e3e0e04c6359bde68ed549f41a20f5b6 Mon Sep 17 00:00:00 2001 From: Mythie Date: Thu, 12 Dec 2024 10:14:23 +1100 Subject: [PATCH] fix: resolve issue with embed css injection --- apps/web/src/app/embed/css-vars.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}`; } }