-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtailwind.config.ts
83 lines (82 loc) · 1.93 KB
/
tailwind.config.ts
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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/
import {
borderRadiusTokens,
colorUtilities,
elevationUtilities,
textUtilities,
} from '@oxide/design-system/styles/dist/tailwind-tokens.ts'
import { type Config } from 'tailwindcss'
import plugin from 'tailwindcss/plugin'
module.exports = {
corePlugins: {
fontFamily: false,
fontSize: true,
},
content: [
'./libs/**/*.{ts,tsx,mdx}',
'./app/**/*.{ts,tsx}',
'node_modules/@oxide/design-system/components/**/*.{ts,tsx,jsx,js}',
],
safelist: ['bg-scrim'],
theme: {
extend: {
screens: {
400: '400px',
500: '500px',
'-600': { max: '600px' },
600: '600px',
800: '800px',
900: '900px',
1000: '1000px',
1100: '1100px',
1200: '1200px',
1400: '1400px',
1600: '1600px',
print: { raw: 'print' },
},
maxWidth: {
500: '500px',
600: '600px',
620: '620px',
720: '720px',
800: '800px',
900: '900px',
1000: '1000px',
1060: '1060px',
1200: '1200px',
1400: '1400px',
1600: '1600px',
1800: '1800px',
},
},
borderRadius: {
...borderRadiusTokens,
},
colors: {
transparent: 'transparent',
current: 'currentColor',
},
backgroundImage: {
'header-grid-mask': 'radial-gradient(rgba(8,15,17,0) 0%, rgba(8,15,17,1) 100%)',
},
},
plugins: [
plugin(({ addUtilities, addVariant }) => {
addUtilities(textUtilities)
addUtilities(colorUtilities)
addUtilities(elevationUtilities)
addVariant('children', '& > *')
}),
],
variants: {
extend: {
translate: ['group-hover'],
},
},
} satisfies Config