-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
108 lines (107 loc) · 2.63 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
107
108
const colors = require('tailwindcss/colors');
const { fontSize } = require('tailwindcss/defaultTheme');
module.exports = {
theme: {
extend: {
colors: {
// TODO: See if we can use hsl colours here
black: colors.stone[800],
gray: {
...colors.stone,
500: '#817974',
},
yellow: colors.yellow,
blue: colors.sky,
orange: {
50: 'hsl(24, 100%, 95%)',
100: 'hsl(24, 100%, 93%)',
200: '#FFD0B5',
300: '#FFB088',
400: '#FF9466',
500: '#F9703E',
600: '#F35627',
700: '#DE3A11',
800: '#C52707',
900: '#AD1D07',
1000: '#841003',
},
},
spacing: {
px: '1px',
0: '0',
1: '0.125rem',
2: '0.25rem',
3: '0.375rem',
4: '0.5rem',
5: '0.625rem',
6: '0.75rem',
8: '1rem',
10: '1.25rem',
12: '1.5rem',
16: '2rem',
20: '2.5rem',
24: '3rem',
32: '4rem',
40: '5rem',
48: '6rem',
56: '7rem',
64: '8rem',
},
inset: {
32: '4rem',
64: '8rem',
'-32': '-4rem',
'-64': '-8rem',
},
borderRadius: {
none: '0',
sm: '0.25rem',
DEFAULT: '0.5rem',
lg: '1rem',
full: '9999px',
},
boxShadow: {
'orange-default':
'0 1px 1px -1px hsl(6, 59%, 75%), 0 2px 4px -1px hsla(6, 59%, 75%, 0.5)',
'search-default': '2px 4px 3px hsla(8, 92.2%, 22%, 10%)',
},
fontFamily: {
// TODO: See if we can have a different set for ja vs en
sans: [
'Roboto',
'Noto Sans Japanese',
'Segoe UI',
'ヒラギノ角ゴ Pro W3',
'Hiragino Kaku Gothic Pro',
'メイリオ',
'Meiryo',
'Osaka',
'MS Pゴシック',
'MS PGothic',
'sans-serif',
],
},
fontSize: {
kanjixl: '6rem',
},
gridTemplateColumns: {
seealso: '3em minmax(50px, max-content) minmax(120px, max-content)',
},
margin: {
'-half-input-text-2xl-py-6': `calc(-1 * (1.5 * 0.5 * ${fontSize['2xl'][0]} + 12px))`,
},
},
},
plugins: [
function ({ addVariant, e }) {
addVariant('focus-invisible', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(
`focus-invisible${separator}${className}`
)}:focus:not(:focus-visible)`;
});
});
},
],
content: ['./src/**/*.{html,ts,tsx}'],
};