generated from gatsbyjs/gatsby-starter-default
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
108 lines (108 loc) · 3.36 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
// See https://tailwindcss.com/docs/configuration for details
module.exports = {
purge: ['./gatsby-ssr.js', './src/**/*.{js,jsx,ts,tsx}'],
theme: {
// A nice default centered .container with a little padding
container: {
center: true,
padding: {
default: '1rem',
sm: '1.5rem',
lg: '2rem',
xl: '3rem',
},
},
// You'll probably use a font family for titles, and another for body text
fontFamily: {
display: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'sans-serif',
],
body: ['Georgia', 'serif'],
},
// Add `top-100` and similar classes for absolute-positioned elements
inset: {
'0': 0,
auto: 'auto',
'100': '100%',
},
extend: {
// Prettier box shadows: https://box-shadows.co/
boxShadow: {
'bs-1': '0px 1px 0px rgba(17,17,26,0.1)',
'bs-2':
'0px 1px 0px rgba(17,17,26,0.05), 0px 0px 8px rgba(17,17,26,0.1);',
'bs-3': '0px 0px 16px rgba(17,17,26,0.1)',
'bs-4':
'0px 4px 16px rgba(17,17,26,0.05), 0px 8px 32px rgba(17,17,26,0.05)',
'bs-5':
'0px 4px 16px rgba(17,17,26,0.1), 0px 8px 32px rgba(17,17,26,0.05)',
'bs-6':
'0px 1px 0px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 48px rgba(17,17,26,0.1)',
'bs-7':
'0px 4px 16px rgba(17,17,26,0.1), 0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1)',
'bs-8':
'0px 8px 24px rgba(17,17,26,0.1), 0px 16px 56px rgba(17,17,26,0.1), 0px 24px 80px rgba(17,17,26,0.1)',
},
// You'll probably have a primary and secondary color
colors: {
primary: 'rebeccapurple',
secondary: '#FFAD00',
// Overwrite default grays with a neutral shade (defaults are blue-ish)
gray: {
'100': '#f5f5f5',
'200': '#eeeeee',
'300': '#e0e0e0',
'400': '#bdbdbd',
'500': '#9e9e9e',
'600': '#757575',
'700': '#616161',
'800': '#424242',
'900': '#212121',
},
},
// We all need that container that is almost-but-not-quite full height
height: {
'almost-screen': '80vh',
},
minHeight: {
'almost-screen': '80vh',
},
// Utilities to lock an image or video to a fixed aspect ratio
// (https://github.com/tailwindcss/designing-with-tailwindcss/tree/master/02-designing-an-image-card/06-locking-images-to-a-fixed-aspect-ratio)
spacing: {
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'2/4': '50%',
'3/4': '75%',
'1/5': '20%',
'2/5': '40%',
'3/5': '60%',
'4/5': '80%',
'9/16': '56.25%',
'10/16': '62.5%',
},
// https://twitter.com/mjsarfatti/status/1263432797039067136
transitionTimingFunction: {
'ease-spring': 'cubic-bezier(0.25,0.02,0,1)',
},
},
},
variants: {
// In case you need to reset the margin on the last element "mr-2 last:mr-0"
margin: ['responsive', 'last'],
},
// https://github.com/tailwindcss/custom-forms
plugins: [require('@tailwindcss/custom-forms')],
};