Last active
November 4, 2020 17:57
-
-
Save timkelty/83f15d88557d49f6694e1833aaf255c8 to your computer and use it in GitHub Desktop.
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 defaultTheme = require('tailwindcss/defaultTheme') | |
const prefixedColors = Object.fromEntries(Object.entries(defaultTheme.colors).map(([k, v]) => [`tw-${k}`, v])); | |
module.exports = { | |
theme: { | |
extend: { | |
colors: { | |
...prefixedColors, | |
red: '#ff0000', | |
// your colors here… | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment