diff --git a/typescript/utils/theme_utils.ts b/typescript/utils/theme_utils.ts index 51421d2c..743688bf 100644 --- a/typescript/utils/theme_utils.ts +++ b/typescript/utils/theme_utils.ts @@ -170,7 +170,7 @@ export function applyTheme(theme: Theme, options?: { for (const [key, palette] of Object.entries(theme.palettes)) { const paletteKey = key.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); for (const tone of tones) { - const token = `--md-ref-palette-${paletteKey}-${paletteKey}${tone}`; + const token = `--md-ref-palette-${paletteKey}${tone}`; const color = hexFromArgb(palette.tone(tone)); target.style.setProperty(token, color); } @@ -188,4 +188,4 @@ function setSchemeProperties( const color = hexFromArgb(value); target.style.setProperty(`--md-sys-color-${token}${suffix}`, color); } -} \ No newline at end of file +}