Support top, right, left, and bottom border variants
See original GitHub issueHi! First just wanted to thank you for this awesome package!
Would you be able to add support for the border-top
, border-right
, border-left
, and border-bottom
variants of border-style
, border-width
, border-color
, and border-radius
?
Currently only the borders
theme key supports border-top
, border-right
, border-left
, and border-bottom
. After this change:
- The
borderWidths
theme key would also apply toborder-top-width
,border-right-width
,border-bottom-width
, andborder-left-width
. - The
borderStyles
theme key would also applyborder-top-style
,border-right-style
,border-bottom-style
, andborder-left-style
. - The
colors
theme key would also apply toborder-top-color
,border-right-color
,border-bottom-color
, andborder-left-color
. - The
radii
theme key would also apply toborder-top-right-radius
,border-bottom-right-radius
,border-bottom-left-radius
, andborder-top-left-radius
.
I’d be happy to implement this change myself if you could give me some code pointers.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
border-style - CSS: Cascading Style Sheets - MDN Web Docs
When four values are specified, the styles apply to the top, right, bottom, and left in that order (clockwise). Each value is a...
Read more >CSS border-bottom-left-radius property - W3Schools
Property Values ; %, Defines the shape of the bottom-left corner in %, Demo ; initial, Sets this property to its default value....
Read more >[CSS-Level2-2009] Section 8.5.4, Border shorthand properties
The inherit value of the border-top, border-right, border-bottom, and border-left properties is not supported. V0048: The specification states:.
Read more >CSS: border-radius and -moz-border-radius - The Art of Web
border -top-left-radius, -moz-border-radius-topleft, -webkit-border-top-left-radius ... The latest versions of Safari now support -webkit-border-radius.
Read more >CSS border-style Property - W3docs
When three values are specified, the first style applies to the top, the second to the left and right, the third to the...
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 FreeTop 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
Top GitHub Comments
I think I must have mistyped
borderBottomWidth
asborderWidthBottom
and that’s why it didn’t work for me! I had myself convinced that the properties I mentioned must not be supported by the package because the page I linked does not list them in the table. But I’m glad to learn that they are supported!Maybe I’ll write pull requests for the Theme UI Theme Specification and Styled System Theme Specification pages so that the tables remain in sync with the supported properties!
Closing this because I think the original issue has been resolved