-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
106 lines (105 loc) · 3.73 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
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'
import aspectRatio from '@tailwindcss/aspect-ratio'
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
important: true,
content: [
'resources/views/**/*.blade.php',
'resources/**/*.{js,md,blade.php}',
],
theme: {
extend: {
colors: {
gray: colors.zinc,
primary: colors.blue,
success: colors.green,
warning: colors.amber,
danger: colors.red,
},
fontFamily: {
sans: ['Geist', ...defaultTheme.fontFamily.sans],
mono: ['JetBrains Mono', 'monospace', ...defaultTheme.fontFamily.mono],
system: defaultTheme.fontFamily.sans,
},
maxWidth: {
'8xl': '92rem',
},
boxShadow: {
'white': "2px 2px 0 theme('colors.white', 'currentColor')",
'white-lg': "4px 4px 0 theme('colors.white', 'currentColor')",
'stack-black': "3px 3px 0 -1px #fff, 3px 3px 0 theme('colors.black'), 4px 4px 4px theme('colors.gray.900')",
'stack-primary-sm': "3px 3px 0 -1px #fff, 3px 3px 0 theme('colors.primary.600'), 4px 4px 4px theme('colors.primary.300')",
'stack-danger-sm': "3px 3px 0 -1px #fff, 3px 3px 0 theme('colors.danger.600'), 4px 4px 4px theme('colors.danger.300')",
'stack-warning-sm': "3px 3px 0 -1px #fff, 3px 3px 0 theme('colors.warning.600'), 4px 4px 4px theme('colors.warning.300')",
'stack-sm': "3px 3px 0 -1px #fff, 3px 3px 0 theme('colors.primary.300')",
'stack': "5px 5px 0 -1px #fff, 5px 5px 0 theme('colors.primary.300')",
'stack-md': "10px 10px 0 -1px #fff, 10px 10px 0 theme('colors.primary.300')",
'stack-lg': "20px 20px 0 -1px #fff, 20px 20px 0 theme('colors.primary.300'), 40px 40px 0 -1px #fff, 40px 40px 0 theme('colors.black')",
'bleed-warning': "0 3px 1px theme('colors.warning.300')",
'outline': '0 0 0 3px rgba(66, 153, 225, 0.5)',
},
spacing: {
68: '17rem',
74: '18.5rem',
76: '19rem'
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme('colors.primary.500'),
'&:hover': {
color: theme('colors.primary.600'),
},
'&:focus': {
color: theme('colors.primary.600'),
},
},
blockquote: {
fontStyle: 'normal',
},
h1: {
fontWeight: theme('fontWeight.extraBold'),
fontSize: theme('fontSize.5xl')
},
'blockquote p:first-of-type::before': {
content: 'none',
},
'blockquote p:first-of-type::after': {
content: 'none',
},
'pre, code, p > code': {
fontWeight: theme('fontWeight.medium'),
color: theme('colors.primary.800'),
backgroundColor: theme('colors.primary.100'),
borderRadius: theme('borderRadius.sm'),
padding: '.125rem .375rem',
},
},
},
invert: {
css: {
a: {
color: theme('colors.primary.600'),
'&:hover': {
color: theme('colors.primary.500'),
},
'&:focus': {
color: theme('colors.primary.500'),
},
},
'pre, code, p > code': {
color: theme('colors.primary.100'),
backgroundColor: theme('colors.primary.900'),
},
},
},
}),
},
},
plugins: [aspectRatio, forms, typography],
}