access-nyc-patterns
Version:
User Interface Patterns for Benefits Access
91 lines (87 loc) • 2.47 kB
JavaScript
/**
* Dependencies
*/
// const defaultConfig = require('tailwindcss/defaultConfig');
const variables = require('./variables.js');
/**
* Config
*/
module.exports = {
important: true,
theme: {
colors: variables.colors,
textColor: variables.colors,
backgroundColor: variables.colors,
borderColor: global.Object.assign({ default: '' }, variables.colors),
fontFamily: variables.fonts,
fontSize: variables['font-sizes'],
fontWeight: variables['font-weights'],
lineHeight: variables.leading,
borderWidth: variables['border-Widths'],
margin: variables.margin,
padding: variables.padding,
maxWidth: {
'1/2': '50%',
'full': '100%'
},
height: {
'auto': 'auto',
'full': '100%',
'90vh': '90vh',
'100vh': '100vh'
},
boxShadow: variables.shadows,
screens: {
'screen-desktop': {
'raw': `screen and (min-width: ${variables.screens['screen-desktop']}px)`
},
'screen-tablet': {
'raw': `screen and (min-width: ${variables.screens['screen-tablet']}px)`
},
'screen-mobile': {
'raw': `screen and (min-width: ${variables.screens['screen-mobile']}px)`
},
'screen-sm-mobile': {
'raw': `screen and (min-width: ${variables.screens['screen-sm-mobile']}px)`
},
'print': {'raw': 'print'}
},
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus'],
borderColor: ['hover', 'focus'],
borderStyle: ['hover', 'focus'],
borderWidth: ['responsive', 'hover', 'focus'],
display: ['responsive'],
flexDirection: ['responsive'],
flexWrap: ['responsive'],
alignItems: ['responsive'],
alignSelf: ['responsive'],
justifyContent: ['responsive'],
alignContent: ['responsive'],
flex: ['responsive'],
flexGrow: ['responsive'],
flexShrink: ['responsive'],
fontFamily: [],
fontWeight: [],
fontSize: ['responsive'],
lineHeight: [],
textColor: ['responsive', 'hover'],
margin: ['responsive'],
maxWidth: ['responsive'],
overflow: ['responsive'],
padding: ['responsive'],
boxShadow: ['responsive', 'hover', 'focus'],
fontStyle: ['responsive'],
fontSmoothing: [],
textDecoration: ['responsive'],
textTransform: ['responsive'],
whitespace: ['responsive'],
wordBreak: ['responsive'],
width: ['responsive'],
height: ['responsive']
},
corePlugins: {
container: false
}
};