Files
resharespace-static/tailwind.config.js
T
2020-09-28 09:42:18 +08:00

110 lines
2.8 KiB
JavaScript

module.exports = {
corePlugins: {
container: false,
},
future: {
// removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true,
},
purge: [],
theme: {
container: {
center: true,
},
extend: {
fontsFamily: {
body: ['PT Sans', 'san-serif'],
title: ['PT Sans Caption', 'serif'],
},
colors: {
gray: {
'100': '#fbfbfb',
'200': '#eff0f0',
'300': '#cccccc',
'500': '#cccccc',
'800': '#23262e',
'900': '#23262e',
},
green: {
'300': '#32ffa8',
},
indigo: {
'700': '#704dff',
},
},
},
spacing: {
px: '1px',
'0': '0',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'5': '1.25rem',
'6': '1.5rem',
'8': '2rem',
'10': '2.5rem',
'12': '3rem',
'16': '4rem',
'20': '5rem',
'24': '6rem',
'28': '7rem',
'32': '8rem',
'40': '10rem',
'48': '12rem',
'56': '13rem',
'64': '16rem',
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1920px',
xxl: '2560px',
},
maxWidth: {
none: 'none',
xxs: '10rem',
xs: '13rem',
sm: '24rem',
md: '28rem',
lg: '32rem',
xl: '36rem',
'2xl': '42rem',
'3xl': '48rem',
'4xl': '56rem',
'5xl': '64rem',
'6xl': '72rem',
full: '100%',
},
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'checked'],
},
plugins: [
require('@tailwindcss/ui'),
({ addComponents, theme }) => {
addComponents({
".container": {
marginInline: "auto",
paddingInline: "auto",
maxWidth: theme("screens.xl"),
// Breakpoints
"@screen sm": {
maxWidth: theme("screens.md"),
},
"@screen md": {
maxWidth: theme("screens.md"),
},
"@screen lg": {
maxWidth: '1366px',
},
"@screen xl": {
maxWidth: '1366px',
},
},
});
},
],
}