4 ms·
`color--green:hover` is not a giant (or perhaps any) improvement over `hover:text-green-400`
by llamaimperative 3y ago
`color--green:hover` is not a giant (or perhaps any) improvement over `hover:text-green-400`
- meerita 3y agowhat is the 400 for?
- crucialfelix 3y agohttps://tailwindcss.com/docs/text-color https://tailwindcss.com/docs/text-color Any tailwind class can have named colors ("green"), semantic colors "danger" and then you can chose the number of the gradient of that color. There are thousands of them. Only the ones you use get compiled into the css file.
- llamaimperative 3y agoTo have more than one type of green. You can use Tailwind with only one green if you want, too, but it doesn't make any sense (either in Tailwind or in FCSS)
- meerita 3y agoWe solve that with color--green, color--light-green, color--lighter-green, color--lightest-green, etc.