Individual border properties should reference theme values
See original GitHub issueI’d be happy to create a PR for this, if it makes sense. For example, this works just fine:
borderWidth: 'thin',
borderStyle: 'solid',
borderColor: 'primary',
however, this will result in the literal values winding up in the CSS:
borderBottomWidth: 'thin',
borderBottomStyle: 'solid',
borderBottomColor: 'primary',
I think it would make sense for the API to support all possible values:
X = Top, Bottom, Left, Right
borderXWidth
borderXColor
borderXStyle
X = Top, Bottom
borderXLeftRadius
borderXRightRadius
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (7 by maintainers)
Top Results From Across the Web
border - CSS: Cascading Style Sheets - MDN Web Docs
The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color.
Read more >Gtk – 3.0: CSS Properties
The opacity property specifies the opacity that is used to composite the widget onto its parent widget. Font properties. Name, Value, Initial, Inh....
Read more >Use report themes in Power BI Desktop - Microsoft Learn
Learn how to use report themes to create a custom color palette and apply it to an entire report in Power BI Desktop....
Read more >CSS Shorthand Border Property - W3Schools
To shorten the code, it is also possible to specify all the individual border properties in one property. The border property is a...
Read more >Border Color - Tailwind CSS
. Quick reference ; border-slate-50, border-color: rgb(248 250 252); ; border-slate-100, border-color: rgb(241 245 249); ; border-slate-200, border-color: rgb(226 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kutyel see also #81
@kutyel think about how the values are resolved,
borderBottom
referencesborders
.borderBottomColor
referencescolor
,borderBottomWidth
referencesborderWidths
. Passing in a string containing values that need to be resolved across different parts of the global theme object won’t work. That’s why for shorthand you need to provide a function to reference the theme: