Skip to content

Instantly share code, notes, and snippets.

@scottwater
Created September 13, 2019 17:06
Show Gist options
  • Save scottwater/df7348ad23078b5e1a519111ede2bdbb to your computer and use it in GitHub Desktop.
Save scottwater/df7348ad23078b5e1a519111ede2bdbb to your computer and use it in GitHub Desktop.
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: []
};
@innocenzi
Copy link

innocenzi 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