tailwind.config.js
const colors = require('tailwindcss/colors');
module.exports = {
mode: 'jit',
preserveHtmlElements: true,
content: [
'./resources/**/*.vue',
'./resources/**/*.blade.php',
'./safelist.txt',
],
safelist: [
'space-y-2',
'fill-current', // Icons
'opacity-0', // Tooltip disappear
'lg:max-w-4/6', // Images in documentation
'grid-cols-1',
'md:grid-cols-2',
'lg:grid-cols-3',
'xl:grid-cols-4',
'h-4',
'h-5',
'h-6',
'h-7',
'h-8',
'h-9',
'h-10',
'h-11',
'h-12',
'h-14',
'h-16',
'h-20',
'h-24',
'h-28',
'h-32',
'h-36',
'h-40',
'w-4',
'w-5',
'w-6',
'w-7',
'w-8',
'w-9',
'w-10',
'w-11',
'w-12',
'w-14',
'w-16',
'w-20',
'w-24',
'w-28',
'w-32',
'w-64',
'w-96',
'pl-4',
'bg-gray-50',
'bg-gray-100',
'bg-gray-150',
'bg-gray-200',
'bg-gray-250',
'bg-gray-300',
'bg-gray-350',
'bg-gray-400',
'bg-gray-450',
'bg-gray-500',
'bg-gray-550',
'bg-gray-600',
'bg-gray-650',
'bg-gray-700',
'bg-gray-750',
'bg-gray-800',
'bg-gray-850',
'bg-gray-900',
'bg-gray-950',
],
darkMode: 'class',
theme: {
extend: {
colors: {
gray: {
50: '#FBFDFE',
100: '#F1F5F9',
150: '#EAEFF5',
200: '#E2E8F0',
250: '#D9E0EA',
300: '#CFD8E3',
350: '#B3BFCF',
400: '#97A6BA',
450: '#7E8DA3',
500: '#64748B',
550: '#56657A',
600: '#475569',
650: '#3F4B5E',
700: '#364152',
750: '#2F3949',
800: '#27303F',
850: '#212837',
900: '#1A202E',
950: '#0D1017',
},
orange: colors.orange,
teal: colors.teal,
},
spacing: {
'0.5': '0.125rem',
'1.5': '0.375rem',
'2.5': '0.625rem',
'3.5': '0.875rem',
'72': '18rem',
'80': '20rem',
},
maxHeight: {
'3/4': '75%',
'full': '100%',
'128': '16rem',
'256': '24rem',
},
minHeight: {
'64': '8rem',
},
maxWidth: {
'4/6': '66.666667%'
},
animation: {
'spin-reverse': 'spin-reverse 1s linear infinite',
'scale-x': 'scale-x linear 1s forwards',
},
keyframes: {
'spin-reverse': {
'from': { transform: 'rotate(360deg)' },
'to': { transform: 'rotate(0deg)' },
},
'scale-x': {
'0%': { transform: 'scaleX(1)' },
'100%': { transform: 'scaleX(0)' },
}
},
transitionDuration: {
'50': '50ms',
},
transitionProperty: {
'width': 'width',
},
width: {
'72': '18rem',
'80': '20rem',
'88': '22rem',
'96': '24rem',
}
},
}
}