--- extends: _layouts.markdown title: "Colors" --- # Colors Developing an organized, consistent and beautiful color palette is critical to the design success of a project. Tailwind provides a fantastic color system that makes this very easy to accomplish. ## Default color palette To get you started, we've provided a generous palette of great looking colors that are perfect for prototyping, or even as a starting point for your color palette. That said, don't hesitate to [customize](#customizing) them for your project.
Grey
Base {{ strtoupper($page->config['colors']['grey']) }}
White {{ strtoupper($page->config['colors']['white']) }}
Lightest {{ strtoupper($page->config['colors']['grey-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['grey-lighter']) }}
Light {{ strtoupper($page->config['colors']['grey-light']) }}
Base {{ strtoupper($page->config['colors']['grey']) }}
Dark {{ strtoupper($page->config['colors']['grey-dark']) }}
Darker {{ strtoupper($page->config['colors']['grey-darker']) }}
Darkest {{ strtoupper($page->config['colors']['grey-darkest']) }}
Black {{ strtoupper($page->config['colors']['black']) }}
Red
Base {{ strtoupper($page->config['colors']['red']) }}
Lightest {{ strtoupper($page->config['colors']['red-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['red-lighter']) }}
Light {{ strtoupper($page->config['colors']['red-light']) }}
Base {{ strtoupper($page->config['colors']['red']) }}
Dark {{ strtoupper($page->config['colors']['red-dark']) }}
Darker {{ strtoupper($page->config['colors']['red-darker']) }}
Darkest {{ strtoupper($page->config['colors']['red-darkest']) }}
Orange
Base {{ strtoupper($page->config['colors']['orange']) }}
Lightest {{ strtoupper($page->config['colors']['orange-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['orange-lighter']) }}
Light {{ strtoupper($page->config['colors']['orange-light']) }}
Base {{ strtoupper($page->config['colors']['orange']) }}
Dark {{ strtoupper($page->config['colors']['orange-dark']) }}
Darker {{ strtoupper($page->config['colors']['orange-darker']) }}
Darkest {{ strtoupper($page->config['colors']['orange-darkest']) }}
Yellow
Base {{ strtoupper($page->config['colors']['yellow']) }}
Lightest {{ strtoupper($page->config['colors']['yellow-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['yellow-lighter']) }}
Light {{ strtoupper($page->config['colors']['yellow-light']) }}
Base {{ strtoupper($page->config['colors']['yellow']) }}
Dark {{ strtoupper($page->config['colors']['yellow-dark']) }}
Darker {{ strtoupper($page->config['colors']['yellow-darker']) }}
Darkest {{ strtoupper($page->config['colors']['yellow-darkest']) }}
Green
Base {{ strtoupper($page->config['colors']['green']) }}
Lightest {{ strtoupper($page->config['colors']['green-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['green-lighter']) }}
Light {{ strtoupper($page->config['colors']['green-light']) }}
Base {{ strtoupper($page->config['colors']['green']) }}
Dark {{ strtoupper($page->config['colors']['green-dark']) }}
Darker {{ strtoupper($page->config['colors']['green-darker']) }}
Darkest {{ strtoupper($page->config['colors']['green-darkest']) }}
Teal
Base {{ strtoupper($page->config['colors']['teal']) }}
Lightest {{ strtoupper($page->config['colors']['teal-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['teal-lighter']) }}
Light {{ strtoupper($page->config['colors']['teal-light']) }}
Base {{ strtoupper($page->config['colors']['teal']) }}
Dark {{ strtoupper($page->config['colors']['teal-dark']) }}
Darker {{ strtoupper($page->config['colors']['teal-darker']) }}
Darkest {{ strtoupper($page->config['colors']['teal-darkest']) }}
Blue
Base {{ strtoupper($page->config['colors']['blue']) }}
Lightest {{ strtoupper($page->config['colors']['blue-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['blue-lighter']) }}
Light {{ strtoupper($page->config['colors']['blue-light']) }}
Base {{ strtoupper($page->config['colors']['blue']) }}
Dark {{ strtoupper($page->config['colors']['blue-dark']) }}
Darker {{ strtoupper($page->config['colors']['blue-darker']) }}
Darkest {{ strtoupper($page->config['colors']['blue-darkest']) }}
Indigo
Base {{ strtoupper($page->config['colors']['indigo']) }}
Lightest {{ strtoupper($page->config['colors']['indigo-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['indigo-lighter']) }}
Light {{ strtoupper($page->config['colors']['indigo-light']) }}
Base {{ strtoupper($page->config['colors']['indigo']) }}
Dark {{ strtoupper($page->config['colors']['indigo-dark']) }}
Darker {{ strtoupper($page->config['colors']['indigo-darker']) }}
Darkest {{ strtoupper($page->config['colors']['indigo-darkest']) }}
Purple
Base {{ strtoupper($page->config['colors']['purple']) }}
Lightest {{ strtoupper($page->config['colors']['purple-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['purple-lighter']) }}
Light {{ strtoupper($page->config['colors']['purple-light']) }}
Base {{ strtoupper($page->config['colors']['purple']) }}
Dark {{ strtoupper($page->config['colors']['purple-dark']) }}
Darker {{ strtoupper($page->config['colors']['purple-darker']) }}
Darkest {{ strtoupper($page->config['colors']['purple-darkest']) }}
Pink
Base {{ strtoupper($page->config['colors']['pink']) }}
Lightest {{ strtoupper($page->config['colors']['pink-lightest']) }}
Lighter {{ strtoupper($page->config['colors']['pink-lighter']) }}
Light {{ strtoupper($page->config['colors']['pink-light']) }}
Base {{ strtoupper($page->config['colors']['pink']) }}
Dark {{ strtoupper($page->config['colors']['pink-dark']) }}
Darker {{ strtoupper($page->config['colors']['pink-darker']) }}
Darkest {{ strtoupper($page->config['colors']['pink-darkest']) }}
## Customizing Tailwind makes it a breeze to modify the default color palette for you project. Remember, you own these colors and nothing will break if you change everything about them. By default Tailwind defines the entire color palette in a `colors` object at the top of your Tailwind config file. These colors are then assigned to `textColors`, `backgroundColors` and `borderColors`. This approach works well since it provides a consistent naming system across all the utilities. However, you're welcome to modify them independently of one-another as well. ```js var colors = { 'transparent': 'transparent', 'slate-darker': '#212b35', 'slate-dark': '#404e5c', 'slate': '#647382', 'slate-light': '#919eab', 'slate-lighter': '#c5ced6', // ... } module.exports = { colors: colors, textColors: colors, backgroundColors: colors, borderColors: Object.assign({ default: colors['slate-lighter'] }, colors), // ... } ``` You'll notice above that the color palette is also assigned to the `colors` key of your Tailwind config. This makes it easy to access them in your custom CSS using the `config()` function. For example: ```css .error { color: config('colors.slate-darker') } ``` ## Naming In the default color palette we've used literal color names, like `red`, `green` and `blue`. Another common approach to naming colors is choosing functional names based on how the colors are used, such as `primary`, `secondary`, and `brand`. You can also choose different approaches to how you name your color variants. In the default color palette we've again used literal variants, like `light`, `dark`, and `darker`. Another common approach here is to use a numeric scale, like `100`, `200` and `300`. You should feel free to choose whatever color naming approach makes the most sense to you.