Skip to content

Instantly share code, notes, and snippets.

@y-temp4
Created August 9, 2019 02:23
Show Gist options
  • Save y-temp4/242ecea20ab3125fd1b7f1bbaecb119b to your computer and use it in GitHub Desktop.
Save y-temp4/242ecea20ab3125fd1b7f1bbaecb119b to your computer and use it in GitHub Desktop.
Use open-color for Tailwind CSS
const openColors = require('open-color/open-color.json')
const colors = {}
Object.entries(openColors).forEach(([color, values]) => {
if (['white', 'black'].includes(color)) return
colors[color] = { ...values }
})
module.exports = {
theme: {
extend: { colors }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment