Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nord color palette in Tailwind
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: []
};
@scottwater

This comment has been minimized.

Copy link
Owner Author

commented Sep 13, 2019

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.

@hawezo

This comment has been minimized.

Copy link

commented Oct 19, 2019

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
You can’t perform that action at this time.