Skip to content

Commit

Permalink
feat: tailwind tokens support opacity modifier syntax color (fixed #526
Browse files Browse the repository at this point in the history
…) (#525)

Co-authored-by: Guillaume Chau <[email protected]>
  • Loading branch information
serkodev and Akryum authored Jun 13, 2023
1 parent 8e6cf1e commit b007fa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/histoire/src/node/builtin-plugins/tailwind-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
}, ({ color}) => h('div', {
class: '__hst-shade',
style: {
backgroundColor: color,
backgroundColor: color.replace('<alpha-value>', 1),
},
})))),
onMountControls: (api) => mountApp(api, () => [
Expand All @@ -159,7 +159,7 @@ export default {
}, ({ color}) => h('div', {
class: '__hst-shade __hst-text',
style: {
color,
color: color.replace('<alpha-value>', 1),
},
}, 'Aa')))),
onMountControls: (api) => mountApp(api, () => [
Expand All @@ -182,7 +182,7 @@ export default {
}, ({ color}) => h('div', {
class: '__hst-shade __hst-border',
style: {
borderColor: color,
borderColor: color.replace('<alpha-value>', 1),
},
})))),
onMountControls: (api) => mountApp(api, () => [
Expand Down

0 comments on commit b007fa1

Please sign in to comment.