ui icon indicating copy to clipboard operation
ui copied to clipboard

Theme Variables: Muted, Secondary, and Accent all have the same CSS value?

Open uncvrd opened this issue 2 years ago • 0 comments

I thought this was odd and wanted to bring this up for discussion, but I was looking in to the registry at the default values for zinc/neutral etc and I realized that the css values for muted, secondary, and accent are the exact same

For example in Zinc: https://github.com/shadcn/ui/blob/aea12e97623699e7c7b2d75fc671ea21b0cf8887/apps/www/public/registry/colors/zinc.json

This is also reflected in the docs here: https://ui.shadcn.com/docs/theming

I thought this was weird as I would imagine having duplicate values for different variables is repetitive and we could either

  1. remove 2 of the 3 (less preferred)
  2. update these to have different css values (preferred).

...am I right to assume this is a bug? If so, how should these colors be generated?

uncvrd avatar Jun 24 '23 04:06 uncvrd