-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
74 lines (72 loc) · 1.92 KB
/
tailwind.config.cjs
File metadata and controls
74 lines (72 loc) · 1.92 KB
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
/** @type {import('tailwindcss').Config} */
function parentSiblingHoverPlugin({ addVariant, e }) {
addVariant('parent-sibling-hover', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.parent-sibling:hover ~ .parent .${e(
`parent-sibling-hover${separator}${className}`
)}`;
});
});
}
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
fontFamily: {
sans: [
'Söhne',
'Roboto',
'ui-sans-serif',
'system-ui',
'-apple-system',
'Ubuntu',
'Cantarell',
'Noto Sans',
'sans-serif',
'Helvetica Neue',
'Arial',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
mono: [
'Söhne Mono',
'Monaco',
'Andale Mono',
'Ubuntu Mono',
'Consolas',
'monospace',
],
},
extend: {
typography: {
DEFAULT: {
css: {
pre: { padding: 0, margin: 0 },
ul: {
'list-style-type': 'none',
},
},
},
},
colors: {
gray: {
100: 'rgb(245, 245, 245)', // lightest gray
200: 'rgb(229, 229, 229)',
300: 'rgb(214, 214, 214)',
400: 'rgb(168, 168, 168)',
500: 'rgb(121, 121, 121)', // medium gray
600: 'rgb(110, 110, 110)',
700: 'rgb(80, 80, 80)',
750: 'rgb(65, 65, 65)', // elevated from 800
800: 'rgb(50, 50, 50)', // elevated from 850
850: 'rgb(40, 40, 40)', // elevated from 900
900: 'rgb(35, 35, 35)', // elevated darkest - lighter than before
950: 'rgb(28, 28, 28)', // new ultra dark for deepest elements
},
},
},
},
plugins: [require('@tailwindcss/typography'), parentSiblingHoverPlugin],
darkMode: 'class',
};