-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.cjs
50 lines (49 loc) · 1.42 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
const defaultConfig = require("tailwindcss/defaultConfig");
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./layouts/**/*.{js,ts,jsx,tsx}",
"./content/**/*.{md,mdx}",
"./node_modules/@portaljs/core/dist/*.js",
"./node_modules/@portaljs/core/*.js",
],
darkMode: "class",
theme: {
extend: {
// support wider width for large screens >1440px eg. in hero
maxWidth: {
"8xl": "88rem",
},
fontFamily: {
sans: ["Roboto", ...defaultTheme.fontFamily.sans],
serif: ["EB Garamond", ...defaultTheme.fontFamily.serif],
mono: ["ui-monospace", ...defaultTheme.fontFamily.mono],
headings: ["Roboto", ...defaultTheme.fontFamily.sans],
},
fontSize: {
...defaultConfig.theme.fontSize,
homepagelarge: ["4rem", "1"],
homepagemedium: ["2.5rem", "1"],
},
colors: {
background: {
DEFAULT: colors.white,
dark: colors.slate[900],
},
primary: {
DEFAULT: colors.gray[700],
dark: colors.gray[300],
},
secondary: {
DEFAULT: colors.sky[400],
dark: colors.sky[400],
},
},
},
},
/* eslint global-require: off */
plugins: [require("@tailwindcss/typography")],
};