Created
March 30, 2022 19:30
-
-
Save BlakeCampbells/e96c6731e82619824343fd113a2cf6f0 to your computer and use it in GitHub Desktop.
Tailwind Config on a Private Project.
This file contains hidden or 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
// * TailwindCSS Configuration File | |
// * | |
// * Docs: https://tailwindcss.com/docs/configuration | |
// * Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js | |
const colors = require('tailwindcss/colors') | |
module.exports = { | |
future: { | |
removeDeprecatedGapUtilities: true | |
}, | |
theme: { | |
extend: { | |
colors: { | |
primary: '#75D3BD', | |
secondary: '#F9A354', | |
} | |
} | |
}, | |
plugins: [ | |
// ... | |
require('@tailwindcss/forms'), | |
require('@tailwindcss/aspect-ratio') | |
], | |
variants: { | |
extend: { | |
divideColor: ['group-hover'], | |
display: ['group-hover'], | |
cursor: ['disabled'], | |
opacity: ['disabled'] | |
} | |
}, | |
purge: { | |
// Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css | |
enabled: process.env.NODE_ENV === 'production', | |
content: [ | |
'components/**/*.vue', | |
'layouts/**/*.vue', | |
'pages/**/*.vue', | |
'plugins/**/*.js', | |
'nuxt.config.js' | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment