impr: use the actual css variable names instead of weird aliases that make the css 5x bigger?????

This commit is contained in:
Xylight committed 2025-10-22 20:43:39 -07:00
1 parent b820b81dbe
commit ca48d31c98
2 files changed
+12 -35

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
import { browser } from "$app/environment"
import { env } from "$env/dynamic/public"
import { getDefaultTheme, presets } from "./presets"
import { browser } from '$app/environment'
import { env } from '$env/dynamic/public'
import { getDefaultTheme, presets } from './presets'
type ColorScheme = 'system' | 'light' | 'dark'
@@ -159,7 +159,7 @@ export function calculateVars(theme: Theme) {
for (const [scheme, colors] of Object.entries(theme.colors)) {
for (const [key, value] of Object.entries(colors)) {
cssVariables += `--c-${scheme[0]}-${key}:${hexToRgb(value)}; `
cssVariables += `--color-${scheme}-${key}:rgb(${hexToRgb(value)}); `
}
}