Professional Documents
Culture Documents
Customiz)tion
Customizing Colors
Customizing the def0ult color p0lette
for your project.
Sl)te
Gr)y
Zinc
Neutr)l
Stone
Red
Or)nge
Amber
Yellow
Lime
Green
Emer)ld
Te)l
Cy)n
Sky
Blue
Indigo
Violet
Purple
Fuchsi)
Pink
Rose
t"ilwind.config.js
module.exports = {
theme: {
colors: {
// Configure your color palette he
}
}
}
configur"tion file:
t"ilwind.config.js
module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
'white': '#ffffff',
'purple': '#3f3cbb',
'midnight': '#121063',
'metal': '#565584',
'tahiti': '#3ab7bf',
'silver': '#ecebff',
'bubble-gum': '#ff77e9',
'bermuda': '#78dcca',
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
'white': '#ffffff',
'tahiti': {
100: '#cffafe',
200: '#a5f3fc',
300: '#67e8f9',
400: '#22d3ee',
500: '#06b6d4',
600: '#0891b2',
700: '#0e7490',
800: '#155e75',
900: '#164e63',
},
// ...
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
// ...
'tahiti': {
light: '#67e8f9',
DEFAULT: '#06b6d4',
dark: '#0e7490',
},
// ...
},
},
}
Arbitr.ry v.lues
If you need " one-off custom color in your
project, consider using T"ilwind’s "rbitr"ry
v"lue not"tion to gener"te " cl"ss for th"t
color on-dem"nd inste"d of "dding it to your
theme:
Sh#re on Twitter
Gener.ting colors
If you’re wondering how to "utom"tic"lly
gener"te the 50HI00 sh"des of your own
custom colors, b"d news — color is
complic"ted "nd despite trying dozens of
different tools, we’ve yet to find one th"t
does " good job gener"ting color p"lettes
like this "utom"tic"lly.
t"ilwind.config.js
module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.gray,
emerald: colors.emerald,
indigo: colors.indigo,
yellow: colors.yellow,
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.slate,
green: colors.emerald,
purple: colors.violet,
yellow: colors.amber,
pink: colors.fuchsia,
},
},
}
ex"mple.
configur"tion file:
t"ilwind.config.js
module.exports = {
theme: {
extend: {
colors: {
brown: {
50: '#fdf8f6',
100: '#f2e8e5',
200: '#eaddd7',
300: '#e0cec7',
400: '#d2bab0',
500: '#bfa094',
600: '#a18072',
700: '#977669',
800: '#846358',
900: '#43302b',
},
}
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
extend: {
colors: {
blue: {
950: '#17275c',
},
}
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.gray,
emerald: colors.emerald,
indigo: colors.indigo,
yellow: colors.yellow,
},
},
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
primary: '#5c6ac4',
secondary: '#ecc94b',
// ...
}
}
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
primary: colors.indigo,
secondary: colors.yellow,
neutral: colors.gray,
}
}
}
m"in.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--color-primary: 255 115 179;
--color-secondary: 111 114 185;
/* ... */
}
}
m"in.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--color-primary: rgb(255 115 179);
--color-secondary: rgb(111 114 185);
/* ... */
}
}
t"ilwind.config.js
module.exports = {
theme: {
colors: {
// Using modern `rgb`
primary: 'rgb(var(--color-primary)
secondary: 'rgb(var(--color-second
m"in.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* For rgb(255 115 179 / <alpha-valu
--color-primary: 255 115 179;
Screens Sp)cing