Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Dec 19, 2024
1 parent c5895e9 commit d7e220f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/preprocessors/themeOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/colorToHex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d7e220f

Please sign in to comment.