-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.preset.projectname.js
116 lines (114 loc) · 2.74 KB
/
tailwind.preset.projectname.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
// const round = (num) =>
// num
// .toFixed(7)
// .replace(/(\.[0-9]+?)0+$/, '$1')
// .replace(/\.0$/, '')
// const rem = (px) => `${round(px / 16)}rem`
// const em = (px, base) => `${round(px / base)}em`
// MHFAE Preset
module.exports = {
theme: {
// Typography
fontFamily: {
'sans': ['Lato', ...defaultTheme.fontFamily.sans],
'mono': [...defaultTheme.fontFamily.mono]
},
// Layout
container: {
center: true,
screens: {
'xs': '100%',
'sm': '100%',
'md': '100%',
'lg': '100%',
'xl': '1280px',
'2xl': '1360px' // 1328 plus padding
},
padding: {
DEFAULT: '1rem'
}
},
extend: {
colors: {
'selection': '#fd0',
'focus': '#FFD642',
'social': {
'facebook':'#4A6597',
'linked-in': '#367BA1',
'instagram': '#E1306C',
'twitter': '#47AFE5'
},
'primary': colors.gray[900],
'secondary': colors.white,
'blood': colors.red[600],
'banana': colors.amber[400],
'violet': colors.purple[600],
'green': colors.emerald[500]
},
aspectRatio: {
'4/3': '4 / 3', // class name: aspect-4/3
'5/4': '5 / 4', // class name: aspect-5/4
'4/5': '4 / 5', // class name: aspect-4/5
'16/9': '16 / 9', // class name: aspect-16/9
'3/2': '3 / 2', // class name: aspect-3/2
'5/2': '5 / 2', // class name: aspect-5/2
'2/1': '2 / 1', // class name: aspect-2/1
'1/1': '1 / 1' // class name: aspect-1/1
},
keyframes: {
fadein: {
'0%': {
opacity: '0'
},
'50%': {
opacity: '1'
}
},
fadeinup: {
'0%': {
opacity: '0',
transform: 'translate3d(0, 50px, 0)',
visibility: 'visible'
},
'100%': {
transform: 'translate3d(0, 0, 0)',
opacity: '1'
}
}
},
animation: {
fadein: 'fadein 3000ms',
fadeinfast: 'fadein 1000ms',
fadeinup: 'fadeinup 300ms'
},
zIndex: {
60: '60',
70: '70',
80: '80',
90: '90',
100: '100'
}
//typography: ({ theme }) => ({
// Default values can be found here: https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js
//base: {
// css: [{
// '--tw-prose-body': theme('colors.bottle-green'),
// fontSize: rem(18),
// lineHeight: round(30 / 20),
// maxWidth: '100%',
// }],
//}
//})
}
},
plugins: [
require('@tailwindcss/typography')({
className: 'wysiwyg' // overide the container class to be .wysiwyg see docs: https://tailwindcss.com/docs/typography-plugin
}),
require('@tailwindcss/forms')({
strategy: 'base' // only generate global styles, see docs: https://github.com/tailwindlabs/tailwindcss-forms
})
]
}