twind
twind copied to clipboard
Error with text colours when retrieved via theme helper
I'm using Twind v0.16.16
Say I have the following setup in my theme:
colors: {
...
brand: {
darker: 'rgba(7, 87, 0, 1)',
DEFAULT: 'rgba(11, 138, 0, 1)',
'tint-25': 'rgba(194, 226, 191, 1)',
},
...
},
and I reference this colour palette for my text colors using the Theme helper:
textColor: theme => ({
...
brand: {
darker: theme('colors.brand.darker'),
DEFAULT: theme('colors.brand'),
},
...
}),
Now when trying to apply the class text-brand-darker
I get the error Unknown theme value "textColor[brand-darker]"
.
If I use bg-brand-darker
this works as expected.
Thanks you the report and the reproduction. I'll take a look.
Hey folks. This issue hasn't received any traction for 90 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
Hey folks. This issue hasn't received any traction for 90 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ