Skip to content

Instantly share code, notes, and snippets.

@BlakeCampbells
Created March 30, 2022 19:30
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 BlakeCampbells/e96c6731e82619824343fd113a2cf6f0 to your computer and use it in GitHub Desktop.
Save BlakeCampbells/e96c6731e82619824343fd113a2cf6f0 to your computer and use it in GitHub Desktop.
Tailwind Config on a Private Project.
// * 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