Change Default Values
In the configuration file, the theme object has keys that are the names of each core plugin and values that are the configuration options for that plugin. The three special configuration options, screen, color, and spacing, arenât core plugins themselves but are the basis for the configuration of many other core plugins.
Itâs worth mentioning here that Tailwindâs use of the word âthemeâ is different than the way you might see it used in other places, where âthemeâ refers to a set of colors, as in âdark themeâ versus âlight theme.â For Tailwind, the theme is the entire set of defaults, and thereâs only one. If you want to change color schemes, you need to either use CSS variables or use the dark:
Get Modern CSS with Tailwind, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.