Skip to content

Commit

Permalink
fix: use same color section detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Feb 14, 2022
1 parent 43d6107 commit 8dfd105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-dingos-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'twind': patch
---

fix: use same color section detection
2 changes: 1 addition & 1 deletion packages/twind/src/internal/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function makeThemeFunction<Theme extends BaseTheme = BaseTheme>({
value = value(resolveContext)
}

if (value && /color/i.test(section)) {
if (value && /color|fill|stroke/i.test(section)) {
return flattenColorPalette(value)
}

Expand Down

0 comments on commit 8dfd105

Please sign in to comment.