tailwindcss/defaultTheme.js

334 lines
7.5 KiB
JavaScript
Raw Normal View History

2019-02-01 11:24:49 -05:00
module.exports = function() {
2019-02-05 20:42:14 -05:00
return {
colors: {
transparent: 'transparent',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
black: '#22292f',
'grey-darkest': '#3d4852',
'grey-darker': '#606f7b',
'grey-dark': '#8795a1',
grey: '#b8c2cc',
'grey-light': '#dae1e7',
'grey-lighter': '#f1f5f8',
'grey-lightest': '#f8fafc',
white: '#ffffff',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'red-darkest': '#3b0d0c',
'red-darker': '#621b18',
'red-dark': '#cc1f1a',
red: '#e3342f',
'red-light': '#ef5753',
'red-lighter': '#f9acaa',
'red-lightest': '#fcebea',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'orange-darkest': '#462a16',
'orange-darker': '#613b1f',
'orange-dark': '#de751f',
orange: '#f6993f',
'orange-light': '#faad63',
'orange-lighter': '#fcd9b6',
'orange-lightest': '#fff5eb',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'yellow-darkest': '#453411',
'yellow-darker': '#684f1d',
'yellow-dark': '#f2d024',
yellow: '#ffed4a',
'yellow-light': '#fff382',
'yellow-lighter': '#fff9c2',
'yellow-lightest': '#fcfbeb',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'green-darkest': '#0f2f21',
'green-darker': '#1a4731',
'green-dark': '#1f9d55',
green: '#38c172',
'green-light': '#51d88a',
'green-lighter': '#a2f5bf',
'green-lightest': '#e3fcec',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'teal-darkest': '#0d3331',
'teal-darker': '#20504f',
'teal-dark': '#38a89d',
teal: '#4dc0b5',
'teal-light': '#64d5ca',
'teal-lighter': '#a0f0ed',
'teal-lightest': '#e8fffe',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'blue-darkest': '#12283a',
'blue-darker': '#1c3d5a',
'blue-dark': '#2779bd',
blue: '#3490dc',
'blue-light': '#6cb2eb',
'blue-lighter': '#bcdefa',
'blue-lightest': '#eff8ff',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'indigo-darkest': '#191e38',
'indigo-darker': '#2f365f',
'indigo-dark': '#5661b3',
indigo: '#6574cd',
'indigo-light': '#7886d7',
'indigo-lighter': '#b2b7ff',
'indigo-lightest': '#e6e8ff',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'purple-darkest': '#21183c',
'purple-darker': '#382b5f',
'purple-dark': '#794acf',
purple: '#9561e2',
'purple-light': '#a779e9',
'purple-lighter': '#d6bbfc',
'purple-lightest': '#f3ebff',
2019-02-01 11:07:55 -05:00
2019-02-05 20:42:14 -05:00
'pink-darkest': '#451225',
'pink-darker': '#6f213f',
'pink-dark': '#eb5286',
pink: '#f66d9b',
'pink-light': '#fa7ea8',
'pink-lighter': '#ffbbca',
'pink-lightest': '#ffebef',
},
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',
'32': '8rem',
'40': '10rem',
'48': '12rem',
'56': '14rem',
'64': '16rem',
},
2019-02-01 11:07:55 -05:00
screens: {
2019-02-22 21:20:22 -05:00
sm: '568px',
2019-02-01 11:24:49 -05:00
md: '768px',
2019-02-22 21:20:22 -05:00
lg: '1024px',
xl: '1280px',
2019-02-01 11:07:55 -05:00
},
2019-02-12 15:14:35 -05:00
fontFamily: {
2019-02-01 11:07:55 -05:00
sans: [
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
2019-02-01 11:07:55 -05:00
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
2019-02-01 11:07:55 -05:00
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
2019-02-01 11:07:55 -05:00
],
2019-03-12 20:45:51 -04:00
serif: ['Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
mono: [
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'"Liberation Mono"',
'"Courier New"',
'monospace',
],
2019-02-01 11:07:55 -05:00
},
2019-02-15 15:21:27 -05:00
fontSize: {
xs: '.75rem',
sm: '.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
2019-03-13 08:20:25 -04:00
'6xl': '4rem',
2019-02-01 11:07:55 -05:00
},
2019-02-14 15:25:35 -05:00
fontWeight: {
2019-02-01 11:07:55 -05:00
hairline: 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
black: 900,
},
2019-02-19 15:49:33 -05:00
lineHeight: {
2019-02-01 11:07:55 -05:00
none: 1,
tight: 1.25,
2019-02-20 19:41:55 -05:00
snug: 1.375,
2019-02-01 11:07:55 -05:00
normal: 1.5,
2019-02-20 19:41:55 -05:00
relaxed: 1.625,
2019-02-01 11:07:55 -05:00
loose: 2,
},
letterSpacing: {
2019-02-20 14:44:19 -05:00
tighter: '-.05em',
tight: '-.025em',
2019-02-01 11:07:55 -05:00
normal: '0',
2019-02-20 14:50:02 -05:00
wide: '.025em',
wider: '.05em',
widest: '.1em',
2019-02-01 11:07:55 -05:00
},
2019-02-15 15:31:06 -05:00
textColor: theme => theme.colors,
backgroundColor: theme => theme.colors,
2019-02-07 13:58:47 -05:00
backgroundPosition: {
bottom: 'bottom',
center: 'center',
left: 'left',
'left-bottom': 'left bottom',
'left-top': 'left top',
right: 'right',
'right-bottom': 'right bottom',
'right-top': 'right top',
top: 'top',
},
2019-02-01 11:07:55 -05:00
backgroundSize: {
auto: 'auto',
cover: 'cover',
contain: 'contain',
},
2019-02-14 15:24:15 -05:00
borderWidth: {
2019-02-01 11:07:55 -05:00
default: '1px',
'0': '0',
'2': '2px',
'4': '4px',
'8': '8px',
},
2019-02-14 15:23:22 -05:00
borderColor: theme => {
2019-02-05 20:42:14 -05:00
return global.Object.assign({ default: theme.colors['grey-light'] }, theme.colors)
},
2019-02-01 11:07:55 -05:00
borderRadius: {
none: '0',
sm: '.125rem',
default: '.25rem',
lg: '.5rem',
full: '9999px',
},
2019-02-22 16:47:58 +01:00
cursor: {
2019-02-22 12:47:23 -05:00
auto: 'auto',
default: 'default',
pointer: 'pointer',
wait: 'wait',
move: 'move',
2019-02-22 16:47:58 +01:00
'not-allowed': 'not-allowed',
},
width: theme => ({
2019-02-01 11:07:55 -05:00
auto: 'auto',
...theme.spacing,
2019-02-01 11:07:55 -05:00
'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: theme => ({
2019-02-01 11:07:55 -05:00
auto: 'auto',
...theme.spacing,
2019-02-01 11:07:55 -05:00
full: '100%',
screen: '100vh',
}),
2019-02-01 11:07:55 -05:00
minWidth: {
'0': '0',
full: '100%',
},
minHeight: {
'0': '0',
full: '100%',
screen: '100vh',
},
maxWidth: {
xs: '20rem',
2019-03-01 14:13:39 -05:00
sm: '24rem',
md: '28rem',
lg: '32rem',
xl: '36rem',
'2xl': '42rem',
'3xl': '48rem',
'4xl': '56rem',
'5xl': '64rem',
'6xl': '72rem',
2019-02-01 11:07:55 -05:00
full: '100%',
},
maxHeight: {
full: '100%',
screen: '100vh',
},
padding: theme => theme.spacing,
margin: theme => ({ auto: 'auto', ...theme.spacing }),
negativeMargin: theme => theme.spacing,
objectPosition: {
bottom: 'bottom',
center: 'center',
left: 'left',
'left-bottom': 'left bottom',
'left-top': 'left top',
right: 'right',
'right-bottom': 'right bottom',
'right-top': 'right top',
top: 'top',
},
2019-02-14 15:32:38 -05:00
boxShadow: {
2019-02-26 18:32:48 -05:00
default: '0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06)',
md: '0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06)',
lg: '0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05)',
xl: '0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04)',
'2xl': '0 25px 50px -12px rgba(0, 0, 0, .25)',
2019-02-01 11:07:55 -05:00
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
outline: '0 0 0 3px rgba(52,144,220,0.5)',
none: 'none',
},
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',
},
2019-02-14 15:33:51 -05:00
fill: {
2019-02-01 11:07:55 -05:00
current: 'currentColor',
},
2019-02-15 15:20:05 -05:00
stroke: {
2019-02-01 11:07:55 -05:00
current: 'currentColor',
},
2019-03-01 13:46:53 -05:00
flex: {
'1': '1 1 0%',
auto: '1 1 auto',
initial: '0 1 auto',
none: 'none',
},
2019-02-26 09:49:52 -05:00
flexGrow: {
'0': 0,
default: 1,
},
flexShrink: {
'0': 0,
default: 1,
},
2019-02-01 11:07:55 -05:00
}
}