-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
91 lines (89 loc) · 2.88 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
const process = require('process');
const defaultTheme = require('tailwindcss/defaultTheme');
/**
* See ./styles/tailwind.css for info about measurements in rem units and the default font-size.
*/
module.exports = {
mode: 'jit',
purge: [
'./.flyyer-processed/**/*.{html,js,jsx,ts,tsx,vue,vuex,css,scss,sass,less}',
'./templates/**/*.{html,js,jsx,ts,tsx,vue,vuex,css,scss,sass,less}',
'./components/**/*.{html,js,jsx,ts,tsx,vue,vuex,css,scss,sass,less}',
'./styles/**/*.{html,js,jsx,ts,tsx,vue,vuex,css,scss,sass,less}',
],
/**
* Toggle dark/light scheme depending on contrast.
* https://docs.flyyer.io/docs/advanced/contrast
*/
darkMode: 'class',
theme: {
extend: {
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: {},
plugins: [
/* Some useful plugins: */
require('@tailwindcss/line-clamp'),
// Require('@tailwindcss/aspect-ratio'),
// require('tailwindcss-textshadow'),
],
};