-
Notifications
You must be signed in to change notification settings - Fork 197
/
tailwind.config.js
36 lines (35 loc) · 1.08 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
/** @type {import('tailwindcss').Config} */
const { Markdown } = require("@urbit/fdn-design-system");
const markdoc = require("@urbit/markdoc");
module.exports = {
presets: [require("@urbit/fdn-design-system/tailwind.config")],
content: {
files: [
"./node_modules/@urbit/fdn-design-system/build/**/*.{js,jsx}",
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./content/**/*.md",
],
transform: {
md: (content) => {
const parsed = Markdown.parse({ post: { content } });
return markdoc.renderers.html(parsed);
},
},
},
theme: {
extend: {
colors: {
surface: "var(--surface)",
primary: "var(--primary)",
secondary: "var(--secondary)",
tertiary: "var(--tertiary)",
container: "var(--container)",
"container-variant": "var(--container-variant)",
"on-container": "var(--on-container)",
"inverse-on-container": "var(--inverse-on-container)",
"on-container-variant": "var(--on-container-variant)",
},
},
},
};