Open FedericoBiccheddu opened 1 month ago
One thing the I like the most about radix ui colors is the ability to have enough flexibility using only the semantic meaning as stated in https://www.radix-ui.com/colors/docs/palette-composition/understanding-the-scale
It think a good addition is having an option to disable the access to the low level color/step.
declare interface TailwindCSSRadixColorsOptions { /** * Disable the semantics classes, such as `bg-red-solid`. * + * @deprecated Use `class: "step"` instead */ disableSemantics?: boolean; /** * Choose which class `bg-red-solid`. * * @default 'both' */ + class?: "semantic" | "step" | "both"; }
Without releasing a major, disableSemantics when used sets class to step, but having class precedence.
disableSemantics
class
step
If you are interested I can take a look and try to make a PR.
Sounds great.
And for the naming part, I think style would be more appropriate instead of class.
style
Feel free to make a PR!
One thing the I like the most about radix ui colors is the ability to have enough flexibility using only the semantic meaning as stated in https://www.radix-ui.com/colors/docs/palette-composition/understanding-the-scale
It think a good addition is having an option to disable the access to the low level color/step.
Without releasing a major,
disableSemantics
when used setsclass
tostep
, but havingclass
precedence.If you are interested I can take a look and try to make a PR.