Skip to content

Instantly share code, notes, and snippets.

@timkelty
Last active November 4, 2020 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timkelty/83f15d88557d49f6694e1833aaf255c8 to your computer and use it in GitHub Desktop.
Save timkelty/83f15d88557d49f6694e1833aaf255c8 to your computer and use it in GitHub Desktop.
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