Hacker News new | ask | show | jobs
by awb 1224 days ago
Dev 1 might make a card component with grey text as #999 and Dev 2 might make a footer component with grey text as #888.

Components are locally consistent but not globally consistent.

Or, let’s say you want to change all your grey text to #777, then you have to go back through all your individual components and hope you didn’t miss anything.

2 comments

No buddy, text-gray-600 is globally consistent.

So are your own custom defined colors like text-armatav-500.

Use the thing before you dismiss it.

You ain’t hardcoding colors inline, you refer to them via “variables” basically, so this situation doesn’t exist: https://tailwindcss.com/docs/customizing-colors