Created
September 13, 2019 17:06
-
-
Save scottwater/df7348ad23078b5e1a519111ede2bdbb to your computer and use it in GitHub Desktop.
Nord color palette in Tailwind
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
theme: { | |
extend: { | |
colors: { | |
nord: { | |
"0": "#2E3440", | |
"1": "#3B4252", | |
"2": "#434C5E", | |
"3": "#4C566A", | |
"4": "#D8DEE9", | |
"5": "#E5E9F0", | |
"6": "#ECEFF4", | |
"7": "#8FBCBB", | |
"8": "#88C0D0", | |
"9": "#81A1C1", | |
"10": "#5E81AC", | |
"11": "#BF616A", | |
"12": "#D08770", | |
"13": "#EBCB8B", | |
"14": "#A3BE8C", | |
"15": "#B48EAD" | |
}, | |
"polar-night": { | |
nord0: "#2E3440", | |
nord1: "#3B4252", | |
nord2: "#434C5E", | |
nord3: "#4C566A" | |
}, | |
"snow-storm": { | |
nord4: "#D8DEE9", | |
nord5: "#E5E9F0", | |
nord6: "#ECEFF4" | |
}, | |
frost: { | |
nord7: "#8FBCBB", | |
nord8: "#88C0D0", | |
nord9: "#81A1C1", | |
nord10: "#5E81AC" | |
}, | |
aurora: { | |
nord11: "#BF616A", | |
nord12: "#D08770", | |
nord13: "#EBCB8B", | |
nord14: "#A3BE8C", | |
nord15: "#B48EAD" | |
} | |
} | |
} | |
}, | |
variants: {}, | |
plugins: [] | |
}; |
I would go for arbitrary names, such as
"polar-night": {
"default": "#2E3440",
"lighter": "#3B4252",
"even-lighter": "#434C5E",
"lightest": "#4C566A"
},
Makes it easier to remember. For aurora
, I'd just name them by their color name (red
, orange
, yellow
) or contextually depending on how you use them (error
, warning
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure yet if I prefer the first (numbers) or second (named/numbers) more, but I am leaning towards the first.
Assuming you are using PurgeCSS it should not be an issue having both around, just pick one and stick with it.