Skip to content

Commit

Permalink
fix: always export utility colors (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaponov authored Aug 8, 2024
1 parent 36b4e47 commit 868e7ca
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/Themes/lib/themeCreatorExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
createUtilityColorCssVariable,
isPrivateColorToken,
} from './themeCreatorUtils';
import type {ColorOption, ThemeCreatorState, ThemeVariant} from './types';
import type {ThemeCreatorState, ThemeVariant} from './types';

const COMMON_VARIABLES_TEMPLATE_NAME = '%COMMON_VARIABLES%';
const LIGHT_THEME_VARIABLES_TEMPLATE_NAME = '%LIGHT_THEME_VARIABLES%';
Expand Down Expand Up @@ -115,14 +115,6 @@ export function exportTheme({

Object.entries(themeState.colors[themeVariant]).forEach(
([colorName, colorOrPrivateToken]) => {
if (
ignoreDefaultValues &&
DEFAULT_THEME.colors[themeVariant][colorName as ColorOption] ===
colorOrPrivateToken
) {
return;
}

const color = isPrivateColorToken(colorOrPrivateToken)
? `var(${createPrivateColorCssVariableFromToken(colorOrPrivateToken)})`
: colorOrPrivateToken;
Expand Down

0 comments on commit 868e7ca

Please sign in to comment.