-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
87 lines (83 loc) · 2.97 KB
/
tailwind.config.cjs
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
const plugin = require('tailwindcss/plugin');
const typography = require('@tailwindcss/typography');
const forms = require('@tailwindcss/forms');
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
backdropBlur: {
shield: '8px'
},
colors: {
oath: {
50: '#d8d5cf',
200: '#c0bab2',
500: '#655e53',
700: '#373c3e',
900: '#181a1b',
950: '#131516'
}
},
typography: ({ theme }) => ({
oath: {
css: {
'--tw-prose-body': theme('colors.gray[800]'),
'--tw-prose-headings': theme('colors.oath[900]'),
'--tw-prose-lead': theme('colors.oath[700]'),
'--tw-prose-links': theme('colors.oath[900]'),
'--tw-prose-bold': theme('colors.oath[900]'),
'--tw-prose-counters': theme('colors.gray[600]'),
'--tw-prose-bullets': theme('colors.gray[400]'),
'--tw-prose-hr': theme('colors.gray[300]'),
'--tw-prose-quotes': theme('colors.oath[900]'),
'--tw-prose-quote-borders': theme('colors.gray[300]'),
'--tw-prose-captions': theme('colors.oath[700]'),
'--tw-prose-code': theme('colors.oath[900]'),
'--tw-prose-pre-code': theme('colors.gray[100]'),
'--tw-prose-pre-bg': theme('colors.oath[900]'),
'--tw-prose-th-borders': theme('colors.gray[300]'),
'--tw-prose-td-borders': theme('colors.oath[200]'),
'--tw-prose-invert-body': theme('colors.oath[200]'),
'--tw-prose-invert-headings': theme('colors.oath[50]'),
'--tw-prose-invert-lead': theme('colors.gray[300]'),
'--tw-prose-invert-links': theme('colors.oath[50]'),
'--tw-prose-invert-bold': theme('colors.oath[50]'),
'--tw-prose-invert-counters': theme('colors.gray[400]'),
'--tw-prose-invert-bullets': theme('colors.gray[600]'),
'--tw-prose-invert-hr': theme('colors.oath[700]'),
'--tw-prose-invert-quotes': theme('colors.gray[100]'),
'--tw-prose-invert-quote-borders': theme('colors.oath[700]'),
'--tw-prose-invert-captions': theme('colors.gray[400]'),
'--tw-prose-invert-code': theme('colors.oath[50]'),
'--tw-prose-invert-pre-code': theme('colors.gray[300]'),
'--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-invert-th-borders': theme('colors.gray[600]'),
'--tw-prose-invert-td-borders': theme('colors.oath[700]')
}
}
})
}
},
plugins: [
forms,
typography,
/**
* Firefox plugin for Tailwind CSS. Add styles that target Firefox browser only.
* https://gist.github.com/samselikoff/b3c5126ee4f4e69e60b0af0aa5bfb2e7
*/
plugin(function ({ addVariant, e, postcss }) {
addVariant('firefox', ({ container, separator }) => {
const isFirefoxRule = postcss.atRule({
name: '-moz-document',
params: 'url-prefix()'
});
isFirefoxRule.append(container.nodes);
container.append(isFirefoxRule);
isFirefoxRule.walkRules((rule) => {
rule.selector = `.${e(`firefox${separator}${rule.selector.slice(1)}`)}`;
});
});
})
]
};
module.exports = config;