SatcherInstitute / health-equity-tracker

Health Equity Tracker is a free-to-use data visualization platform that is enabling new insights into the impact of COVID-19 and other social and political determinants of health on historically underrepresented groups in the United States.
https://healthequitytracker.org/
MIT License
17 stars 24 forks source link

Refactor `defaultClasses` #3634

Closed benhammondmusic closed 1 month ago

benhammondmusic commented 1 month ago

We should consider refactoring the defaultClasses string; since it's repeated in each card and we want consistency we should at the very least declare that string globally and import it into each card rather than redeclaring it in every card component. However, I want to investigate more because there is probably a more tailwind-y way to do it, like making a new class in the tailwind config that defines the shadow and bg white and then we just apply that class everywhere instead of templating in the defaultClasses string.