This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/tailwind.js

346 lines
6.2 KiB
JavaScript
Raw Normal View History

2017-11-09 22:44:30 +00:00
var colors = {
'transparent': 'transparent',
'black': '#222b2f',
'grey-darkest': '#364349',
'grey-darker': '#596a73',
'grey-dark': '#70818a',
'grey': '#9babb4',
'grey-light': '#dae4e9',
'grey-lighter': '#f2f2f2',
'grey-lightest': '#fafcfc',
'white': '#ffffff',
'blue-dark': '#2779bd',
'blue': '#0678be',
'blue-lighter': '#bcdefa',
2017-11-21 23:10:41 +00:00
'red-dark': '#cc1f1a',
'orange': '#f6993f',
'green-dark': '#1f9d55',
2017-11-09 22:44:30 +00:00
}
module.exports = {
colors: colors,
screens: {
'sm': '576px',
'md': '768px',
'lg': '992px',
'xl': '1200px',
},
fonts: {
'sans': [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'sans-serif',
],
'serif': [
'Constantia',
'Lucida Bright',
'Lucidabright',
'Lucida Serif',
'Lucida',
'DejaVu Serif',
'Bitstream Vera Serif',
'Liberation Serif',
'Georgia',
'serif',
],
'mono': [
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace',
]
},
textSizes: {
'xs': '.75rem', // 12px
'sm': '.875rem', // 14px
'base': '1rem', // 16px
'lg': '1.125rem', // 18px
'xl': '1.25rem', // 20px
'2xl': '1.5rem', // 24px
'3xl': '1.875rem', // 30px
'4xl': '2.25rem', // 36px
'5xl': '3rem', // 48px
},
fontWeights: {
'hairline': 100,
'thin': 200,
'light': 300,
'normal': 400,
'medium': 500,
'semibold': 600,
'bold': 700,
'extrabold': 800,
'black': 900,
},
leading: {
'none': 1,
'tight': 1.25,
'normal': 1.5,
'loose': 2,
},
tracking: {
'tight': '-0.05em',
'normal': '0',
'wide': '0.05em',
},
textColors: colors,
backgroundColors: colors,
borderWidths: {
default: '1px',
'0': '0',
'2': '2px',
2017-11-19 20:55:11 +00:00
'3': '3px',
2017-11-09 22:44:30 +00:00
'4': '4px',
'8': '8px',
},
borderColors: Object.assign({ default: colors['grey-light'] }, colors),
borderRadius: {
default: '.25rem',
'sm': '.125rem',
'lg': '.5rem',
'full': '9999px',
'none': '0',
},
width: {
'auto': 'auto',
'px': '1px',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'6': '1.5rem',
'8': '2rem',
'10': '2.5rem',
'12': '3rem',
'16': '4rem',
'24': '6rem',
'32': '8rem',
2018-06-15 11:17:45 +00:00
'40': '10rem',
2017-11-09 22:44:30 +00:00
'48': '12rem',
'64': '16rem',
'1/2': '50%',
'1/3': '33.33333%',
'2/3': '66.66667%',
'1/4': '25%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
'1/6': '16.66667%',
'5/6': '83.33333%',
'full': '100%',
'screen': '100vw'
},
height: {
'auto': 'auto',
'px': '1px',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'6': '1.5rem',
'8': '2rem',
'10': '2.5rem',
'12': '3rem',
'16': '4rem',
'24': '6rem',
'32': '8rem',
'48': '12rem',
'64': '16rem',
'full': '100%',
'screen': '100vh'
},
minWidth: {
'0': '0',
'full': '100%',
},
minHeight: {
'0': '0',
'full': '100%',
'screen': '100vh'
},
maxWidth: {
'xs': '20rem',
'sm': '30rem',
'md': '40rem',
'lg': '50rem',
'xl': '60rem',
'2xl': '70rem',
'3xl': '80rem',
'4xl': '90rem',
'5xl': '100rem',
'full': '100%',
},
maxHeight: {
'full': '100%',
'screen': '100vh',
},
padding: {
'px': '1px',
'0': '0',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
2017-12-28 16:37:56 +00:00
'5': '1.25rem',
2017-11-09 22:44:30 +00:00
'6': '1.5rem',
'8': '2rem',
'16': '4rem',
},
margin: {
2018-01-05 22:08:26 +00:00
'auto': 'auto',
2017-11-09 22:44:30 +00:00
'px': '1px',
'0': '0',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'6': '1.5rem',
'8': '2rem',
2018-10-03 23:15:54 +00:00
'10': '2.5rem',
2018-02-13 08:45:57 +00:00
'12': '3rem',
2017-11-09 22:44:30 +00:00
'16': '4rem',
},
negativeMargin: {
'px': '1px',
'0': '0',
'1': '0.25rem',
'2': '0.5rem',
'3': '0.75rem',
'4': '1rem',
'6': '1.5rem',
'8': '2rem',
'16': '4rem',
},
shadows: {
},
zIndex: {
'auto': 'auto',
'0': 0,
'10': 10,
'20': 20,
'30': 30,
'40': 40,
'50': 50,
},
opacity: {
'0': '0',
'25': '.25',
'50': '.5',
'75': '.75',
'100': '1',
},
2018-05-21 22:16:08 +00:00
svgFill: {
'current': 'currentColor',
2017-11-09 22:44:30 +00:00
},
2018-05-21 22:16:08 +00:00
svgStroke: {
'current': 'currentColor',
},
modules: {
appearance: ['responsive'],
backgroundAttachment: ['responsive'],
2018-12-19 21:34:19 +00:00
backgroundColors: ['responsive', 'hover', 'focus'],
2018-05-21 22:16:08 +00:00
backgroundPosition: ['responsive'],
backgroundRepeat: ['responsive'],
backgroundSize: ['responsive'],
2018-05-28 23:33:00 +00:00
borderColors: ['responsive', 'hover', 'focus'],
2018-05-21 22:16:08 +00:00
borderRadius: ['responsive'],
2018-05-28 23:33:00 +00:00
borderStyle: ['responsive', 'hover', 'focus'],
borderWidths: ['responsive', 'hover', 'focus'],
2018-05-21 22:16:08 +00:00
cursor: ['responsive'],
display: ['responsive'],
flexbox: ['responsive'],
float: ['responsive'],
fonts: ['responsive'],
fontWeights: ['responsive', 'hover'],
height: ['responsive'],
leading: ['responsive'],
lists: ['responsive'],
margin: ['responsive'],
maxHeight: ['responsive'],
maxWidth: ['responsive'],
minHeight: ['responsive'],
minWidth: ['responsive'],
negativeMargin: ['responsive'],
opacity: ['responsive'],
overflow: ['responsive'],
padding: ['responsive'],
pointerEvents: ['responsive'],
position: ['responsive'],
resize: ['responsive'],
shadows: ['responsive'],
svgFill: [],
svgStroke: [],
textAlign: ['responsive'],
textColors: ['responsive', 'hover', 'focus'],
textSizes: ['responsive'],
textStyle: ['responsive', 'hover', 'focus'],
tracking: ['responsive'],
userSelect: ['responsive'],
verticalAlign: ['responsive'],
visibility: ['responsive'],
whitespace: ['responsive'],
width: ['responsive'],
zIndex: ['responsive'],
},
2018-07-22 22:36:20 +00:00
plugins: [
require('tailwindcss/plugins/container')({
center: true,
padding: '1rem',
}),
2018-09-04 20:01:35 +00:00
require('tailwindcss-visuallyhidden')(),
2018-12-15 22:09:57 +00:00
require('tailwindcss-vuejs')(),
2018-07-22 22:36:20 +00:00
],
2018-05-21 22:16:08 +00:00
2018-05-14 15:02:33 +00:00
options: {
important: true,
separator: ':',
prefix: ''
}
2017-11-09 22:44:30 +00:00
}