-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The color palette in the docs does not match the default one #3570
Comments
This can be a bit confusing for sure but the docs are correct. The default colors that are enabled in Tailwind by default are aliased to simpler names, which is something we generally recommend folks do in their own apps. Here are the colors that are included in Tailwind by default (in the default config file): https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js#L15-L29 const colors = require('tailwindcss/colors')
module.exports = {
// ...
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.coolGray,
red: colors.red,
yellow: colors.amber,
green: colors.emerald,
blue: colors.blue,
indigo: colors.indigo,
purple: colors.violet,
pink: colors.pink,
},
},
// ...
} You'll notice that we alias "amber" to "yellow", "coolGray" to "gray", "emerald" to "green", and "violet" to "purple". The If you chose to use "blueGray" in your app, you probably still want the classes to be So yeah, You can see the default color palette at the top of the "customizing colors" docs, where we mention what the source color is for each color, like "amber" for "yellow" here: The complete color palette at the bottom of the page is a reference for the entire "tailwindcss/colors" file which is the pool of colors that the default palette is built from, it's not the default palette in and of itself. Hope that helps! |
Got it, thank you. Amazon work! (and next time I will read the docs to the end 😳) |
Describe the problem:
The docs state here:
But for example
yellow
andamber
are different and I was quite confused today when I realized that the colors shown in the docs do not match the default ones.Minimal reproduction:
The text was updated successfully, but these errors were encountered: