-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
111 lines (109 loc) · 3.49 KB
/
tailwind.config.cjs
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
const plugin = require('tailwindcss/plugin');
const { parseColorMatrix } = require('./tailwind/colors.cjs');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,ts,tsx}', './custom/instance/**/*.html', './src/index.ejs'],
darkMode: 'class',
theme: {
screens: {
sm: '581px',
md: '768px',
lg: '976px',
xl: '1280px',
},
extend: {
boxShadow: ({ theme }) => ({
'3xl': '0 25px 75px -15px rgba(0, 0, 0, 0.25)',
'inset-ring': `inset 0 0 0 2px ${theme('colors.accent-blue')}`,
}),
fontSize: {
base: '0.9375rem',
},
fontFamily: {
'sans': [
'Nunito Sans',
'ui-sans-serif',
'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': [
'Roboto Mono',
'ui-monospace',
'mono',
],
},
spacing: {
'4.5': '1.125rem',
},
colors: parseColorMatrix({
// Define color matrix (of available colors)
// Colors are configured at runtime with CSS variables in soapbox.json
gray: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
primary: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
secondary: [100, 200, 300, 400, 500, 600],
success: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
danger: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
accent: [300, 500],
'accent-blue': true,
'gradient-start': true,
'gradient-end': true,
'greentext': true,
}),
animation: {
'sonar-scale-4': 'sonar-scale-4 3s linear infinite',
'sonar-scale-3': 'sonar-scale-3 3s 0.5s linear infinite',
'sonar-scale-2': 'sonar-scale-2 3s 1s linear infinite',
'sonar-scale-1': 'sonar-scale-1 3s 1.5s linear infinite',
'enter': 'enter 200ms ease-out',
'leave': 'leave 150ms ease-in forwards',
'spinner': '1.2s cubic-bezier(0.32, 0.65, 0.71, 0.4) 0s infinite normal none running spin',
},
keyframes: {
'sonar-scale-4': {
from: { opacity: '0.4', transform: 'scale(1)' },
to: { opacity: '0', transform: 'scale(4)' },
},
'sonar-scale-3': {
from: { opacity: '0.4', transform: 'scale(1)' },
to: { opacity: '0', transform: 'scale(3.5)' },
},
'sonar-scale-2': {
from: { opacity: '0.4', transform: 'scale(1)' },
to: { opacity: '0', transform: 'scale(3)' },
},
'sonar-scale-1': {
from: { opacity: '0.4', transform: 'scale(1)' },
to: { opacity: '0', transform: 'scale(2.5)' },
},
enter: {
from: { transform: 'scale(0.9)', opacity: '0' },
to: { transform: 'scale(1)', opacity: '1' },
},
leave: {
from: { transform: 'scale(1)', opacity: '1' },
to: { transform: 'scale(0.9)', opacity: '0' },
},
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
plugin(({ addVariant }) => {
addVariant('not-first', '&:not(:first-child)');
addVariant('not-last', '&:not(:last-child)');
}),
],
};