forked from FilecoinFoundationWeb/filecoin-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
102 lines (94 loc) · 2.78 KB
/
tailwind.config.js
File metadata and controls
102 lines (94 loc) · 2.78 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
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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
colors: {
brand: {
100: '#eff6fc',
200: '#d8ebfb',
300: '#73b4ed',
400: '#0090ff',
500: '#154ed9',
600: '#0621a4',
700: '#06094e',
800: '#08072e',
},
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.brand.100'),
'--tw-prose-headings': theme('colors.brand.100'),
'--tw-prose-bold': theme('colors.brand.100'),
'--tw-prose-links': theme('colors.brand.300'),
'--tw-prose-quotes': theme('colors.brand.100'),
'--tw-prose-quote-borders': theme('colors.brand.300'),
'--tw-prose-counters': theme('colors.brand.100'),
'--tw-prose-bullets': theme('colors.brand.100'),
'--tw-prose-code': theme('colors.brand.100'),
'--tw-prose-pre-bg': theme('colors.brand.700'),
'--tw-prose-pre-code': theme('colors.brand.100'),
'--tw-prose-captions': theme('colors.neutral.400'),
a: {
textDecoration: 'none',
'&:hover': {
textDecoration: 'underline',
},
'&:focus, &:focus-visible': {
outlineWidth: 2,
outlineStyle: 'solid',
outlineColor: theme('colors.brand.100'),
},
},
code: {
'&::before, &::after': {
content: 'none !important',
},
},
pre: {
borderWidth: '1px',
borderStyle: 'solid',
borderColor: theme('colors.brand.600'),
},
iframe: {
width: '100%',
},
'iframe[src*="youtube.com"]': {
width: '100%',
height: 'auto',
aspectRatio: '16/9',
},
figure: {
textAlign: 'center',
},
figcaption: {
textAlign: 'left',
fontSize: '10px',
},
},
},
}),
maxWidth: {
readable: '60ch',
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('@headlessui/tailwindcss'),
require('@tailwindcss/forms'),
plugin(function addBrandOutline({ addComponents, theme }) {
addComponents({
'.brand-outline': {
outlineStyle: 'solid',
outlineColor: theme('colors.brand.100'),
outlineWidth: 2,
outlineOffset: 0,
borderColor: 'transparent',
},
})
}),
],
}