File tree Expand file tree Collapse file tree
apps/ui-generator/src/modules/store/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const generateLightColorValues = (
1818 const cTokenName = `--c-${ tokenName } ` ;
1919 const hTokenName = `--h-${ tokenName } ` ;
2020 const baseColorName = `--color-${ tokenName } -base-${ themeSuffix } ` ;
21- const contrastToken = colorDef . l < contrastCutOff ? 'var(--lightness-min)' : 'var(--lightness-max)' ;
21+ const contrastToken = colorDef . l > contrastCutOff ? 'var(--lightness-min)' : 'var(--lightness-max)' ;
2222
2323 return {
2424 [ lTokenName ] : `${ colorDef . l / 100 } ` ,
@@ -43,7 +43,7 @@ const generateDarkColorValues = (
4343 const cTokenName = `--c-${ tokenName } ` ;
4444 const hTokenName = `--h-${ tokenName } ` ;
4545 const baseColorName = `--color-${ tokenName } -base-${ themeSuffix } ` ;
46- const contrastToken = colorDef . l < contrastCutOff ? 'var(--lightness-min)' : 'var(--lightness-max)' ;
46+ const contrastToken = colorDef . l > contrastCutOff ? 'var(--lightness-min)' : 'var(--lightness-max)' ;
4747
4848 return {
4949 [ lTokenName ] : `${ colorDef . lDark / 100 } ` ,
You can’t perform that action at this time.
0 commit comments