Created
August 9, 2019 02:23
-
-
Save y-temp4/242ecea20ab3125fd1b7f1bbaecb119b to your computer and use it in GitHub Desktop.
Use open-color for Tailwind CSS
This file contains 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
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