-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
75 lines (75 loc) · 1.94 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
mosk: [
'mosk',
'-apple-system',
'BlinkMacSystemFont',
'Helvetica Neue',
'Segoe UI',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
],
firaCode: [
'Fira Code',
'Menlo',
'Monaco',
'Lucida Console',
'Liberation Mono',
'DejaVu Sans Mono',
'Bitstream Vera Sans Mono',
'Courier New',
'monospace',
],
cascadiaCode: [
'Cascadia Code',
'Menlo',
'Monaco',
'Lucida Console',
'Liberation Mono',
'DejaVu Sans Mono',
'Bitstream Vera Sans Mono',
'Courier New',
'monospace',
],
gilroy: [
'gilroy',
'-apple-system',
'BlinkMacSystemFont',
'Helvetica Neue',
'Segoe UI',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
],
},
colors: {
'primary-gray': '#3e3e3e',
'background-gray': '#f7f7f7',
'code-editor': '#24292e',
},
},
},
plugins: [
require('@tailwindcss/typography'),
function ({addVariant}) {
addVariant('lines', '& code > span')
addVariant('markedlines', "& span.highlight")
addVariant('hasfilename', "& pre.filename")
addVariant('textBlock', "& pre.textBlock")
addVariant('oversizedWrapper', '& .oversizedWrapper')
addVariant('hiddenpre', '& .hiddenPre'),
addVariant('inlineCode', '& .inlineCode')
addVariant('figureImage', '& figure img')
addVariant('copyCode', '& .copyCode')
},
],
}