-
Notifications
You must be signed in to change notification settings - Fork 75
/
tailwind.config.js
120 lines (119 loc) · 4.19 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
109
110
111
112
113
114
115
116
117
118
119
120
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./resources/docs/**/*.md',
'./app/Markdown/**/*.php',
],
darkMode: 'class',
theme: {
extend: {
colors: {
gray: {
900: '#232323',
800: '#222222',
700: '#565454',
600: '#777777',
500: '#93939e',
400: '#b5b5bd',
300: '#d7d7dc',
200: '#e7e8f2',
100: '#f5f5fa',
50: '#fbfbfd',
},
dark: {
900: '#0C0D12',
800: '#12141C',
700: '#171923',
600: '#252A37',
500: '#394056',
},
red: {
900: '#981d15',
800: '#ca473f',
700: '#ec0e00',
600: '#eb4432',
500: '#f9322c',
},
},
fontFamily: {
sans: ['scandia-web', ...defaultTheme.fontFamily.sans],
mono: ['source-code-pro', ...defaultTheme.fontFamily.mono],
},
maxWidth: {
'8xl': '88rem',
},
keyframes: {
cube: {
'50%': { transform: 'translateY(1rem)' },
},
},
animation: {
cube: 'cube 12s ease-in-out infinite',
},
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-links': theme('colors.red[600]'),
'--tw-prose-code': theme('colors.red[800]'),
'--tw-prose-pre-bg': 'none',
h1: {
fontSize: '2.5rem',
fontWeight: '500',
},
h2: {
fontSize: '1.75rem',
fontWeight: '400',
},
h3: {
fontSize: '1.25rem',
fontWeight: '500',
},
a: {
fontWeight: theme('fontWeight.normal'),
},
code: {
background: theme('colors.gray[50]'),
fontWeight: theme('fontWeight.normal'),
borderRadius: '.125rem',
padding: '0 .125em',
},
'code::before': {
content: '',
},
'code::after': {
content: '',
},
kbd: {
background: theme('colors.gray[50]'),
padding: '0 .25em',
},
pre: {
paddingBottom: 0,
paddingLeft: 0,
paddingRight: 0,
paddingTop: 0,
},
},
},
invert: {
css: {
'--tw-prose-links': theme('colors.red[600]'),
'--tw-prose-code': theme('colors.red[600]'),
'--tw-prose-pre-bg': 'none',
code: {
background: theme('colors.dark[600]'),
},
kbd: {
background: theme('colors.gray[800]'),
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
}