Trying to understand how to set default border CSS property at specific scope #17789
-
Hey folks, here's a minimal example of the issue. Uncomment only one of the default border properties at a time in the CSS tab: https://play.tailwindcss.com/CXhk9uFl2i?file=css My expectation is regardless of The goal here is to be able to control these defaults using a user-defined theme file which is imported from a external source. This would be much more streamlined using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
.border {
border-style: var(--tw-border-style);
border-width: 4px;
} Notice how the |
Beta Was this translation helpful? Give feedback.
border
compiles to:Notice how the
--default-border-width
isn't referenced anywhere, hence why thedata-theme
selector has no effect. You can workaround this by using your own CSS variable: https://play.tailwindcss.com/j4uS9YN53T?file=css