-
Hello, i try to define my own color with this content in tailwind.config.js module.exports = { If a run the Compilation with this Command "tailwindcss-windows-x64.exe -i input.css -o output.css" the Color "myblue" is not in the output.css. After countless attempts and tests, I have the feeling that tailwind.config.js is generally not used. Hopefully this is a mistake and someone has a solution before I go crazy... 😒 With friendly cries for help W. Liedl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Assuming you're using v4, @import "tailwindcss";
@theme {
--color-myblue: #3AB0FF;
} See the documentation for details. |
Beta Was this translation helpful? Give feedback.
There wouldn't be a class named
myblue
. It is a color value and would be a suffix so would only appear attached to class names liketext-myblue
orbg-myblue
if you've used them anywhere.