forked from celo-org/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
47 lines (47 loc) · 1.31 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
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
corePlugins: {
preflight: false, // disable Tailwind's reset
},
content: ["./src/**/*.{js,jsx,ts,tsx}", "../docs/**/*.mdx"], // my markdown stuff is in ../docs, not /src
darkMode: ["class", '[data-theme="dark"]'], // hooks into docusaurus' dark mode settigns
theme: {
extend: {
colors: {
/** primary */
"prosperity": "#FCFF52",
"forest": "#476520",
/** base */
"gypsum": "#FCF6F1",
"sand": "#E7E3D4",
"wood": "#655947",
"fig": "#1E002B",
/** functional */
"snow": "#FFFFFF",
"onyx": "#CCCCCC",
"success": "#329F3B",
"error": "#E70532",
"disabled": "#9B9B9B",
/** accent */
"sky": "#7CC0FF",
"citrus": "#FF9A51",
"lotus": "#FFA3EB",
"lavender": "#B490FF"
},
},
},
plugins: [
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
]
};