Search results
Results from the WOW.Com Content Network
Naming your colors. Tailwind uses literal color names (like red, green, etc.) and a numeric scale (where 50 is light and 900 is dark) by default. We think this is the best choice for most projects, and have found it easier to maintain than using abstract names like primary or danger.. That said, you can name your colors in Tailwind whatever you like, and if you’re working on a project that ...
Alternatively, you could leave the color palette untouched and rely on tree-shaking unused styles to remove the colors you’re not using. Naming your colors. Tailwind uses literal color names (like red, green, etc.) and a numeric scale (where 50 is light and 900 is dark) by default. This ends up being fairly practical for most projects, but ...
Preview the next Tailwind CSS. Customization. Theme Configuration. Customizing the default theme for your project. The theme section of your tailwind.config.js file is where you define your project’s color palette, type scale, fonts, breakpoints, border radius values, and more.
By default, Tailwind makes the entire default color palette available as background colors. You can customize your color palette by editing theme.colors or theme.extend.colors in your tailwind.config.js file. tailwind.config.js. module. exports = {theme: ... From the creators of Tailwind CSS.
By default, Tailwind makes the entire default color palette available as text colors. You can customize your color palette by editing theme.colors or theme.extend.colors in your tailwind.config.js file. tailwind.config.js. module. exports = {theme: ... From the creators of Tailwind CSS.
This will disable Tailwind's default color palette and generate classes like bg-indigo, text-blue, and border-red instead. Extending the default palette. As described in the theme documentation, if you'd like to extend the default color palette, you can do so using the theme.extend.colors section of your tailwind.config.js file:
Tailwind will automatically wrap your custom dark mode selector with the :where() pseudo-class to make sure the specificity is the same as it would be when using the media strategy:.dark \:underline:where ([data-mode = "dark"], [data-mode = "dark"] *) {text-decoration-line: underline } Supporting system preference and manual selection The selector strategy can be used to support both the user ...
The theme section of your tailwind.config.js file is where you define your project's color palette, type scale, font stacks, breakpoints, border radius values, and more. ... Beautiful UI components by the creators of Tailwind CSS. Beautiful UI components, crafted by the creators of Tailwind CSS. ...
Tailwind CSS v3.3 is here — bringing a bunch of new features people have been asking for forever, and a bunch of new stuff you didn’t even know you wanted. Extended color palette for darker darks: New darker 950 shades for every color. ESM and TypeScript support: Write your config file using ESM or TypeScript.
Tailwind CSS is a utility-first CSS framework for rapidly building modern websites without ever leaving your HTML. ... Even with the same color palette and sizing scale, it's easy to build the same component with a completely different look in the next project. Get started, installation. Simple; Playful;