forked from flybywiresim/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
69 lines (67 loc) · 2.26 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
'use strict';
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
const reactComponentsSafeList = require('@flybywiresim/react-components/build/usedCSSClasses.json');
module.exports = {
mode: 'jit',
purge: {
options: { safelist: [...reactComponentsSafeList] },
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@flybywiresim/react-components/build/usedCSSClasses.json',
],
},
theme: {
container: {
center: true,
padding: '2rem',
},
fontFamily: { sans: ['Nunito Sans', ...defaultTheme.fontFamily.sans] },
extend: {
height: { 200: '50rem', ...defaultTheme.height },
screens: {
'3xl': '1792px',
'4xl': '2048px',
},
spacing: {
128: '32rem',
160: '40rem',
192: '48rem',
224: '56rem',
256: '64rem',
288: '72rem',
320: '80rem',
352: '88rem',
384: '96rem',
},
colors: {
colors,
blue: { 'dark-contrast': 'hsl(216,32%,17%)' },
midnight: { DEFAULT: 'hsl(218, 42%, 10%)' },
discord: {
DEFAULT: 'hsl(235,86%,65%)',
dark: 'hsl(235,60%,54%)',
},
},
zIndex: { '-10': '-10' },
typography: {
'2xl': {
css: {
'maxWidth': '73ch',
'h1, h2, h3, h4, h5, h6': { fontWeight: 'bold', color: 'hsl(0,0%,9%)', marginBottom: '1.2rem' },
'h1': { fontSize: '4rem' },
'h2': { fontSize: '3rem' },
'h3': { fontSize: '2rem' },
'p': { color: 'hsl(0,0%,20%)' },
'a': { color: 'hsl(192,80%,40%)' },
'iframe': { width: '100%', height: '60vh' },
},
},
},
},
},
plugins: [
require('@flybywiresim/tailwind-config'),
require('@tailwindcss/typography'),
],
};