-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Labels
Description
Without Tailwindcss
✔ Client
Compiled successfully in 2.12m
✔ Server
Compiled successfully in 1.72m
Hash: 36fc5cf6354758073391
Version: webpack 4.44.1
Time: 127192ms
With Tailwindcss
✔ Client
Compiled successfully in 26.23s
✔ Server
Compiled successfully in 7.20s
Hash: 2a16c82743dd11e56513
Version: webpack 4.44.1
Time: 26232ms
tailwindcss css
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
tailwindcss config js
const extend = {
spacing: [-10, 200],
inset: [0, 100],
colors: {
red: {
default: '#FF3C3C',
FFEEEE: '#FFEEEE',
},
blue: {
default: '#5572FD',
E8ECFF: '#E8ECFF',
},
green: '#50B349',
yellow: {
default: '#FF9807',
FDC31F: '#FDC31F',
FEF3E5: '#FEF3E5',
FFE9D6: '#FFE9D6',
FFEACC: '#FFEACC',
},
gray: {
default: '#989898',
656565: '#656565',
F2F2F2: '#F2F2F2',
E5E5E5: '#E5E5E5',
},
},
}
function expandThemeByPx (array) {
const expand = {}
const [start, end] = array
let current = start
while (current <= end) {
expand[current] = `${current}px`
current++
}
return expand
}
module.exports = {
// important: true,
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
defaultLineHeights: true,
standardFontWeights: true,
},
theme: {
extend: {
spacing: expandThemeByPx(extend.spacing),
inset: expandThemeByPx(extend.inset),
colors: extend.colors,
},
fill: extend.colors,
},
variants: {},
plugins: [],
purge: {
// Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
enabled: process.env.NODE_ENV === 'production',
content: [
'src/components/**/*.vue',
'src/layouts/**/*.vue',
'src/pages/**/*.vue',
'src/utils/common.js',
]
}
}
nuxt config js
{
tailwindcss: {
configPath: '~~/tailwind.config.js',
},
}
HELP HELP
willans, apithy-isidro-martinez, mistevs, bennyadam and nakorndev