-
Notifications
You must be signed in to change notification settings - Fork 675
Individual border properties should reference theme values #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In my case, when I do the following: |
Yeah, that's right it won't resolve anything inside the shorthand string. You can either do something like:
(which kinda sucks) or, a mix (which I think still has a bug if you order them incorrectly) such as:
or you can apply them individually:
but it won't support |
Awesome, that did the trick in the meantime, thanks! 🙌🏼 |
This isn’t a bug, this is due to the cascade and how CSS is designed to work FWIW |
@jxnblk Cool thanks for clarifying, couldn't remember the exact details around it! |
This is now supported in the latest version of |
Now, this works: borderBottomWidth: '2px',
borderBottomStyle: 'solid',
borderBottomColor: 'muted', but this still does not 😟 |
@kutyel think about how the values are resolved, borderBottom: theme => `${theme.borderWidths.thin}px ${theme.borderStyles.thick} ${theme.colors.muted}` |
Uh oh!
There was an error while loading. Please reload this page.
I'd be happy to create a PR for this, if it makes sense. For example, this works just fine:
however, this will result in the literal values winding up in the CSS:
I think it would make sense for the API to support all possible values:
The text was updated successfully, but these errors were encountered: