🌐
Tailwind CSS
tailwindcss.com › docs › customizing-colors
Colors - Core concepts
Use @theme to add custom colors to your project under the --color-* theme namespace: ... @import "tailwindcss";@theme { --color-midnight: #121063; --color-tahiti: #3ab7bf; --color-bermuda: #78dcca;}
🌐
Tailwind CSS
tailwindcss.com › docs › color
color - Typography - Tailwind CSS
Use the text-[<value>] syntax to set the text color based on a completely custom value: <p class="text-[#50d71e] ..."> Lorem ipsum dolor sit amet...</p> For CSS variables, you can also use the text-(<custom-property>) syntax:
Discussions

Tailwind 4 confusion about colours
You can still define your own color variables https://tailwindcss.com/docs/colors#customizing-your-colors Also check out how shadcn has implemented light / dark theming and naming More on reddit.com
🌐 r/tailwindcss
27
0
April 19, 2025
Why is my Tailwind CSS not interpreting colors? - Stack Overflow
I'm taking my first steps in Tailwind CSS and as such this question that I'm going to ask may seem quite basic, but I'm not really getting over a problem that apparently should be quite simple to s... More on stackoverflow.com
🌐 stackoverflow.com
Color Theory in Tailwind/CSS Question
Not sure if this answers your question, but in the shadcn/ui (i think in the svelte version mostly) they apply css variables for different stylings (text-background, text-button-primary, text-button-accent, … ) which could then easily be overwritten by applying different styles with some basic javascript. The good thing about it is that instead of using text-background dark:text-background/dark you just use text-background and the config does the rest for you. Once set up it‘s pretty straightforward to use. Otherwise there is of course color-mix (both css and tailwind) you can look into, which might help you get some desired effects. You could only apply them to the dark mode without it affecting the light mode. More on reddit.com
🌐 r/tailwindcss
1
4
July 15, 2024
Tailwind CSS Colors Not Applying Dynamically
Hey everyone, I’m new to Tailwind CSS and was trying to dynamically apply text colors using a variable. Here’s the code I wrote: export default function Home() { const color = "blue"; ret... More on github.com
🌐 github.com
2
2
December 22, 2024
🌐
Tailscan
tailscan.com › colors
Tailwind CSS Colors
This cheatsheet contains all the default Tailwind CSS colors, including all hex, hsl, rgb and new Tailwind v4 oklch color values. Never forget any Tailwind CSS color again!
🌐
UI Colors
uicolors.app › generate
Tailwind CSS Colors - All colors + Custom color generator
Generate, edit, save and share Tailwind CSS color shades based on a given hexcode or HSL color.
🌐
Tailwind Colors
tailwindcolor.com
Tailwind Colors v4 | OKLCH Color Palette
Tailwind CSS Colors v4 now uses OKLCH for a more vivid, modern color palette. Upgraded from RGB, it uses the wider P3 gamut for richer hues and better contrast. Elevate your designs with enhanced accessibility and future-proof colors.
🌐
Coolors
coolors.co › tailwind
Tailwind Colors - Coolors
Get useful info about any color like meaning, variations and accessibility. ... Create and preview your tailwind palettes on real UI designs.
🌐
Reddit
reddit.com › r/tailwindcss › tailwind 4 confusion about colours
r/tailwindcss on Reddit: Tailwind 4 confusion about colours
April 19, 2025 -

Hi so I'm trying out tailwind in a new react project I'm working on. After a lot of wrangling with ChatGPT I realised that it doesn't seem to know much about tailwind 4 other than it exists and I had to revert to stack overflow to figure out how to get it to work by using @themes in my config.

The thing I'm confused about though is in the tailwind 3 examples I was being given you could set things like bg-primary and bg-primaryDark in one place which makes sense and is useful as I can use it all over and update it quickly to try out different colour schemes.

Whereas in Tailwind 4 the examples seem to suggest I should be using things like bg-cyan-500 everywhere which obviously means I have to change them all if I want to update it. Seems like an anti pattern so I just wanted to check whether I've misunderstood how I should be approaching this?

Find elsewhere
🌐
Tailwind CSS
tailwindcss.com › docs › background-color
background-color - Backgrounds - Tailwind CSS
@theme { --color-regal-blue: #243c5a; } Now the bg-regal-blue utility can be used in your markup: <div class="bg-regal-blue"> <!-- ... --></div> Learn more about customizing your theme in the theme documentation. Quick reference · Examples · Basic example · Changing the opacity · Using a custom value · Applying on hover · Responsive design · Customizing your theme · Copyright © 2026 Tailwind Labs Inc.·Trademark Policy
🌐
Flowbite
flowbite.com › docs › customize › colors
Tailwind CSS Colors - Flowbite
If you’d like to customize the current colors or introduce new ones you can do so by creating new color variables --color-{name} and this color will be available for all text, background and border colors: ... /* input.css file */ @import ...
🌐
Figma
figma.com › community › file › 1017861946296446622 › tailwind-css-colors
Tailwind CSS Colors | Figma
The complete Tailwind CSS color palette. Add the color styles to your library in order to access them across all files.
🌐
ReadymadeUI
readymadeui.com › blog › tailwind-colors
Mastering Colors with Tailwind CSS | ReadymadeUI
You can easily customize it to match your brand design requirements. Extending the default palette: In your tailwind.config.js file, you can define new colors using the extend property.
🌐
Medium
medium.com › @dvasquez.422 › custom-colours-in-tailwind-css-v4-acc3322cd2da
Custom Colours in Tailwind CSS v4 | by David Vasquez | Medium
August 7, 2025 - Tailwind CSS comes with a large range of colours that you can use with their built-in classes, but it gives you the ability to create your own custom colours that you can call.
🌐
shadcn/ui
ui.shadcn.com › colors
Tailwind Colors in Every Format - shadcn/ui
The complete Tailwind color palette in HEX, RGB, HSL, CSS variables, and classes. Ready to copy and paste into your project.
🌐
Kombai
kombai.com › tailwind › how-tailwind-colors-work-overview-and-customization
How do colors work in Tailwind CSS and how to customize them? - Kombai Blog
Guide to mastering Tailwind CSS colors. Learn about default palettes, customization, and more to create eye-catching designs.
🌐
Reddit
reddit.com › r/tailwindcss › color theory in tailwind/css question
r/tailwindcss on Reddit: Color Theory in Tailwind/CSS Question
July 15, 2024 -

I am making multiple app variants as tailwind configs and then I export an environment variable APP_VARIANT and use different tailwind config colors accordingly.

I noticed something pretty simple that I feel like people who have done a lot of styling before have more insight into:

When I change my background from a dark color to a light color, I now have to change my default text color from a light color (which would be visible on a dark background) to a dark color (which will be visible on a light background). However, when I use this default color with active buttons that are pretty much always some type of light color, it doesn't look right because you need a light text color with a dark active button (think white text in a red button) and probably something darker with a light background (like black text in a yellow button).

I read you can handle this by calculating luminance and deciding whether the text color should be light or dark based off the background color, but is there some way this is generally handled in style sheets and tailwind? Thanks!

🌐
YouTube
youtube.com › watch
How to Customize Colors in Tailwind CSS V4 - YouTube
Learn how to create and use custom colors in Tailwind CSS V4 for your React projects.custom colors V3: https://youtu.be/7Os-Bt41yp8🛠️ Tools & Packages Used:...
Published   April 28, 2025
🌐
Tailwind CSS
v2.tailwindcss.com › docs › text-color
Text Color - Tailwind CSS
<input class="text-green-900 ... md:text-gray-900 md:focus:text-red-600 ..."> By default, Tailwind makes the entire default color palette available as text colors....
🌐
UI Colors
uicolors.app › tailwind-colors
Tailwind CSS Colors - Click-to-Copy OKLCH, HEX code & HSL
Explore all Tailwind CSS v4 and v3 colors. Click-to-copy OKLCH, hex code and HSL values.