Using dot (.
) in custom border radius for Tailwind v4 globals.css
config
#15981
Answered
by
gmaggio
qiaoandrew
asked this question in
Help
-
Hi there! I'm hoping to define classes like I would like to have something like the following, but CSS doesn't allow it: ...
@theme {
--radius-1.5: 0.375rem;
}
... Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
gmaggio
Jan 30, 2025
Replies: 1 comment 1 reply
-
I noticed that if you use underline in place of the dot like so: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
qiaoandrew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that if you use underline in place of the dot like so:
--radius-1_5: 0.375rem;
, it will be generated asrounded-1.5
.