diff --git a/src/preprocessors/themeOverrides.ts b/src/preprocessors/themeOverrides.ts index 897fbef0a..80019741e 100644 --- a/src/preprocessors/themeOverrides.ts +++ b/src/preprocessors/themeOverrides.ts @@ -21,6 +21,7 @@ export const themeOverrides: Preprocessor = { // get override const override = token.$extensions?.[extensionProp][currentTheme] || token.$extensions?.[extensionProp][fallbackTheme] + // token an theme value exist return { ...token, diff --git a/src/transformers/colorToHex.ts b/src/transformers/colorToHex.ts index bd39c5c61..74a651b2b 100644 --- a/src/transformers/colorToHex.ts +++ b/src/transformers/colorToHex.ts @@ -16,7 +16,7 @@ export const colorToHex: Transform = { filter: isColor, transform: (token: TransformedToken, config: PlatformConfig) => { const alphaValue = token.alpha - if (alphaValue === null || alphaValue === undefined) { + if (alphaValue === null || alphaValue === undefined || alphaValue === 1) { return toHex(getTokenValue(token)) } return toHex(alpha(getTokenValue(token), alphaValue, token, config))