Compare commits

...

4 Commits

Author SHA1 Message Date
Ephraim Atta-Duncan 4f822414cf fix: use khebab case 2024-12-11 15:55:35 +00:00
Ephraim Atta-Duncan 50a7b59371 fix: all variables with camel case not working 2024-12-11 15:51:34 +00:00
Ephraim Atta-Duncan fd40873210 fix: add unit to hsl colors in css conversion 2024-12-11 14:02:26 +00:00
Mythie 3d7b28a92b chore: update tailwind config 2024-12-11 13:52:34 +11:00
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -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}`;
}
}
+7 -2
View File
@@ -6,7 +6,12 @@ module.exports = {
...baseConfig,
content: [
...baseConfig.content,
`${path.join(require.resolve('@documenso/ui'), '..')}/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/email'), '..')}/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/ui'), '..')}/components/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/ui'), '..')}/icons/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/ui'), '..')}/lib/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/ui'), '..')}/primitives/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/email'), '..')}/templates/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/email'), '..')}/template-components/**/*.{ts,tsx}`,
`${path.join(require.resolve('@documenso/email'), '..')}/providers/**/*.{ts,tsx}`,
],
};