Skip to content

Commit

Permalink
fix: name conflict with theme neutral in tailwind preset
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Nov 14, 2022
1 parent babe70b commit 65c6873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/liquid/global/styles/tailwindPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ Object.entries(designTokens.colors).forEach(([key, value]) => {
Object.entries(designTokens.themes).forEach(
([themeName, theme], themeIndex) => {
const isFirstTheme = themeIndex === 0
colors[themeName] = {}
const themeNameFinal = themeName === 'neutral' ? 'thm-neutral' : themeName
colors[themeNameFinal] = {}

Object.entries(theme).forEach(([key, value]) => {
if (typeof value !== 'boolean') {
createNestedThemeColorFromFlat(key, colors[themeName], value)
createNestedThemeColorFromFlat(key, colors[themeNameFinal], value)

if (isFirstTheme) {
// Creates dynamic colors based on custom properties
Expand Down

1 comment on commit 65c6873

@vercel
Copy link

@vercel vercel bot commented on 65c6873 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-oxygen.vercel.app
liquid-git-main-uxsd.vercel.app
liquid-uxsd.vercel.app

Please sign in to comment.