[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enum❓
Context:
- You persist a user setting in your db, e.g. “primaryColor”
- The CSS styles for this are applied via tailwindcss
Problem:
- I don’t want to store stuff like “primaryColorDark” as well in the DB -- tailwind’s config is my source of truth for that
- However, adding a color now requires a whole db migration
- You persist a user setting in your db, e.g. “primaryColor”
- The CSS styles for this are applied via tailwindcss
Problem:
- I don’t want to store stuff like “primaryColorDark” as well in the DB -- tailwind’s config is my source of truth for that
- However, adding a color now requires a whole db migration
