What would be the order of component CSS properties definition? #2781
Valdes-Tresanco-MS
announced in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I reported the headers responsive problem (#2719).
I notice that the CSS properties are defined as follows priority:
font_size="60px"
)size="9"
)class_name="text-4xl"
)For example:
In this case,
font_size
has priority oversize
, which defines the default or base font size. But,text-4xl
doesn't modify the header font size unless it is defined as important (!text-4xl
). Even ifsize
is not defined explicitly, it takes a default value taking precedence over theclass_name
definition. The same happens withweight
andalign
.I expected the order as follows:
IMHO, this modification can improve the tailwind portability and complementarity with the Radix theme.
Data to reproduce:
Beta Was this translation helpful? Give feedback.
All reactions