Skip to content

Commit

Permalink
fix: neutral color theme
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Nov 14, 2022
1 parent ab1435c commit 6e54dbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/applyDesignTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ function getColorTokenValue(variant, styles) {
const variants = description.split(', ')
const [baseColorName, ...rest] = name.split('/')[1].split('-')
const referenceName =
baseColorName.replaceAll(/[a-z]/g, '').toLowerCase() +
(baseColorName === 'Neutral'
? baseColorName
: baseColorName.replaceAll(/[a-z]/g, '')
).toLowerCase() +
(variants.includes('Default')
? ''
: rest.length
Expand Down

1 comment on commit 6e54dbc

@vercel
Copy link

@vercel vercel bot commented on 6e54dbc Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

liquid – ./

liquid-git-main-uxsd.vercel.app
liquid-oxygen.vercel.app
liquid-uxsd.vercel.app

Please sign in to comment.