Files
resharespace-static/tailwind.config.js
T
2020-10-24 22:45:03 +08:00

138 lines
3.7 KiB
JavaScript

module.exports = {
future: {
// removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true,
},
purge: [],
theme: {
extend: {
fontFamily: {
body: ['Poppins', 'sans-serif'],
sans: ['Open Sans', 'sans-serif'],
},
colors: {
gray: {
'100': '#F7FAFC',
'200': '#EDF2F7',
'300': '#E2E8F0',
'400': '#CBD5E0',
'500': '#A0AEC0',
'600': '#718096',
'700': '#4A5568',
'800': '#2D3748',
'900': '#1A202C',
},
green: {
'300': '#32ffa8',
},
indigo: {
'700': '#7643ea',
'800': '#271d3e',
'900': '#150c2b',
},
},
},
spacing: {
px: '1px',
'0': '0',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'5': '1.25rem',
'6': '1.5rem',
'7': '1.8rem',
'8': '2rem',
'9': '2.3rem',
'10': '2.5rem',
'12': '3rem',
'14': '3.5rem',
'16': '4rem',
'18': '4.4rem',
'20': '5rem',
'22': '5.3rem',
'24': '6rem',
'32': '8rem',
'40': '10rem',
'48': '12rem',
'56': '14rem',
'58': '14.5rem',
'60': '15rem',
'64': '16rem',
'66': '17rem',
'68': '18.5rem',
'69': '19.4rem',
'70': '22rem',
'71': '23rem',
'71.1': '22rem',
'72': '24rem',
'74': '26rem',
'80': '28.5rem',
'82': '31rem',
'90': '37rem',
'91': '38rem',
'92': '39rem',
'97': '44rem',
},
width: theme => ({
auto: 'auto',
...theme('spacing'),
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
'1/6': '16.666667%',
'2/6': '33.333333%',
'3/6': '50%',
'4/6': '66.666667%',
'5/6': '83.333333%',
'1/12': '8.333333%',
'2/12': '16.666667%',
'3/12': '25%',
'4/12': '33.333333%',
'5/12': '41.666667%',
'6/12': '50%',
'7/12': '58.333333%',
'8/12': '66.666667%',
'9/12': '75%',
'10/12': '83.333333%',
'11/12': '91.666667%',
full: '100%',
screen: '100vw',
}),
borderWidth: {
default: '1px',
'0': '0',
'2': '2px',
'3': '3px',
'4': '4px',
'6': '6px',
'8': '8px',
},
maxWidth: (theme, { breakpoints }) => ({
none: 'none',
xs: '20rem',
sm: '24rem',
md: '28rem',
lg: '31.8rem',
xl: '36rem',
'2xl': '42rem',
'3xl': '48rem',
'4xl': '56rem',
'5xl': '64rem',
'6xl': '72rem',
full: '100%',
...breakpoints(theme('screens')),
}),
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'checked'],
},
plugins: [],
}
}