-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
108 lines (107 loc) · 3.14 KB
/
tailwind.config.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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
/**
* See ./styles/tailwind.css for info about measurements in rem units and the default font-size.
*/
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'./templates/**/*.ts',
'./templates/**/*.tsx',
'./templates/**/*.js',
'./templates/**/*.jsx',
'./components/**/*.ts',
'./components/**/*.tsx',
'./components/**/*.js',
'./components/**/*.jsx',
'./styles/**/*.css',
'./styles/**/*.scss',
'./styles/**/*.sass',
'./styles/**/*.less'
]
},
/**
* Toggle dark/light scheme depending on contrast.
* https://docs.flyyer.io/docs/advanced/contrast
*/
darkMode: 'class',
theme: {
extend: {
colors,
spacing: {
/**
* Instagram stories have a recommended safe-area for content.
* https://docs.flyyer.io/docs/advanced/safe-area
*/
storysafe: '250px'
},
/**
* Enable 12x12 grid layout, by default tailwindcss starts with 12 columns and 6 rows.
*/
gridTemplateRows: {
8: 'repeat(8, minmax(0, 1fr))',
9: 'repeat(9, minmax(0, 1fr))',
10: 'repeat(10, minmax(0, 1fr))',
11: 'repeat(11, minmax(0, 1fr))',
12: 'repeat(12, minmax(0, 1fr))',
13: 'repeat(13, minmax(0, 1fr))'
},
gridRow: {
'span-7': 'span 7 / span 7',
'span-8': 'span 8 / span 8',
'span-9': 'span 9 / span 9',
'span-10': 'span 10 / span 10',
'span-11': 'span 11 / span 11',
'span-12': 'span 12 / span 12'
},
gridRowStart: {
8: '8',
9: '9',
10: '10',
11: '11',
12: '12',
13: '13'
},
gridRowEnd: {
8: '8',
9: '9',
10: '10',
11: '11',
12: '12',
13: '13'
}
},
/**
* We recommend breakpoints based on height rather than width.
* This is not optimal yet and we are still trying to get a better setup.
* Help us defining the best config at https://github.com/useflyyer/create-flyyer-app/issues/3
*/
screens: {
/* For apps where images are always small squares such as WhatsApp (400x400px) */
thumb: {raw: '(min-height: 400px)'},
/* Recommended horizontal image for sites like Facebook, Twitter, etc. (og:image) (1200x630px) */
banner: {raw: '(min-height: 630px)'},
/* The size of an Instagram post. */
sq: {raw: '(min-height: 1080px)'},
/* The size of a full-screen story for Instagram and others. */
story: {raw: '(min-height: 1920px)'},
/* Keep default Tailwind sizes (https://tailwindcss.com/docs/breakpoints#extending-the-default-breakpoints) */
...defaultTheme.screens
}
},
variants: {
/* Enable dark-mode for v2.1 filters. */
extend: {
filter: ['dark'],
brightness: ['dark'],
invert: ['dark']
}
},
plugins: [
/* Some useful plugins: */
require('@tailwindcss/line-clamp'),
require('@tailwindcss/aspect-ratio')
// Require('tailwindcss-textshadow'),
]
};