-
Notifications
You must be signed in to change notification settings - Fork 31
/
tailwind.config.js
100 lines (99 loc) · 3.17 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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors')
module.exports = {
darkMode: 'class',
content: [
'resources/views/**/*.blade.php',
'resources/js/**/*.js',
],
theme: {
extend: {
colors: {
...defaultTheme.color,
gray: colors.zinc,
discord: '#7289da',
twitter: '#1DA1F2',
},
height: {
'screen-24': 'calc(100vh - 4rem)'
},
fontFamily: {
sans: [
'Inter', ...defaultTheme.fontFamily.sans
],
system: [
`system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",
Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji",
"Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"`
],
mono: [
'monospace',
],
},
lineHeight: {
normal: '1.6',
loose: '1.75',
},
maxWidth: {
none: 'none',
'7xl': '80rem',
'8xl': '88rem'
},
spacing: {
'1.5': '0.375rem',
'7': '1.75rem',
'9': '2.25rem'
},
boxShadow: {
'lg': '0 -1px 27px 0 rgba(0, 0, 0, 0.04), 0 4px 15px 0 rgba(0, 0, 0, 0.08)',
'dome': '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)'
},
inset:{
'16': '4rem',
'nav': '4.1rem',
},
fontSize: {
'xs': '.8rem',
'sm': '.925rem',
'base': '1rem',
'lg': '1.125rem',
'xl': '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.125rem',
'5xl': '2.625rem',
'6xl': '4rem',
},
},
},
variants: {
borderRadius: ['responsive', 'focus'],
borderWidth: ['responsive', 'active', 'focus'],
width: ['responsive', 'focus'],
translate: ['dark'],
textDecoration: ['dark'],
display: ['responsive', 'motion-safe', 'motion-reduce', 'dark'],
},
plugins: [
require('@tailwindcss/typography'),
({ addUtilities }) => {
const newUtilities = {
'.transition-fast': {
transition: 'all .2s ease-out',
},
'.transition': {
transition: 'all .5s ease-out',
},
'.overflow-inherit': {
overflow: 'inherit'
}
}
addUtilities(newUtilities)
},
({ addVariant }) => {
addVariant('scrollbar', '&::-webkit-scrollbar');
addVariant('scrollbar-track', '&::-webkit-scrollbar-track');
addVariant('scrollbar-thumb', '&::-webkit-scrollbar-thumb');
},
],
};