Colors
FlatifyCSS comes with a set of predefined colors and color setter helper classes. This page lists all the colors that are related to FlatifyCSS.
The swatches below are the full design palette, handy when you design a page around FlatifyCSS. The framework itself uses four shades of each color, you can find them in the palette variables table.
Palette variables
Every color has four shades and each one is a CSS variable with this pattern: --flatify__color-{name}-{shade}, for example --flatify__color-red-dark. The state colors like success and danger are just aliases, so if you change the green color, success changes too.
| Name | primary | light | dark | darker |
|---|---|---|---|---|
blue | #1cb0f6 | #77d0fa | #1896d1 | #0e587b |
green | #58cc02 | #9be067 | #4bad02 | #2c6601 |
yellow | #ffde00 | #ffeb66 | #d9bd00 | #a69000 |
orange | #ff9600 | #ffc066 | #d98000 | #804b00 |
red | #ff4b4b | #ff9393 | #d94040 | #802626 |
pink | #ff86d0 | #ffb6e3 | #d972b1 | #804368 |
purple | #c164ff | #daa2ff | #a455d9 | #613280 |
accent (blue) | #1cb0f6 | #77d0fa | #1896d1 | #0e587b |
success (green) | #58cc02 | #9be067 | #4bad02 | #2c6601 |
info (blue) | #1cb0f6 | #77d0fa | #1896d1 | #0e587b |
warning (orange) | #ff9600 | #ffc066 | #d98000 | #804b00 |
danger (red) | #ff4b4b | #ff9393 | #d94040 | #802626 |
light (background grays) | #f1f4f7 | #ffffff | #ced9e3 | #809cb6 |
dark (text colors) | #2e4051 | #77838e | #1e2a35 | #121a20 |
Base colors
Background and text colors are separate from the palette:
| CSS variable | Default | Used for |
|---|---|---|
--flatify__bg-color | #ffffff | Page background |
--flatify__bg-color-dark | #f1f4f7 | Default background of buttons, alerts, menus and form elements |
--flatify__bg-color-darker | #ced9e3 | Default border color of most components |
--flatify__bg-color-darkest | #809cb6 | The darkest gray, free for your own designs |
--flatify__txt-color | #2e4051 | Text |
--flatify__txt-color-light | #77838e | Muted text |
--flatify__txt-color-dark | #1e2a35 | Darker text, like highlighted text |
--flatify__txt-color-inverted | #ffffff | Text on colored backgrounds, like badges |
Changing colors
If you build FlatifyCSS with Sass, change the color variables in _config.scss (like $BLUE or $ACCENT_COLOR) and the light and dark shades are generated for you. With the compiled CSS, override the CSS variables instead:
:root {
--flatify__color-accent-primary: #8e44ad;
--flatify__color-accent-light: #c39bd3;
--flatify__color-accent-dark: #76369a;
--flatify__color-accent-darker: #4a235a;
}
Read more on the customization page.