List style type in theme config #16264
-
Hi there, I'm trying to upgrade my tailwind V3 project to V4. I might have missed it, but didn't found documentation in v4 for Is this the right way to do ? Is it considered "bad practice" (I know transitions on height aren't "good") ? Thanks by advance // tailwind.config.ts
const config: Config = {
theme: {
extend: {
listStyleType: {
square: 'square',
},
transitionProperty: {
height: 'height',
},
},
},
}; /* tailwind.css */
@theme {
--list-style-type-square: square;
--transition-property-height: height;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah that stuff exists for backward compatibility. Personally unless you actually want those CSS variables to exist I think adding those as custom utilities is more idiomatic in v4: @utility list-square {
list-style-type: square;
} |
Beta Was this translation helpful? Give feedback.
Yeah that stuff exists for backward compatibility. Personally unless you actually want those CSS variables to exist I think adding those as custom utilities is more idiomatic in v4: