-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
67 lines (62 loc) · 1.79 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/** @type {import("tailwindcss").Config} */
const decanter = require("decanter")
const path = require("path")
const dir = path.resolve(__dirname, "src/styles")
let twoColumn = {},
threeColumn = {},
i
for (i = 1; i <= 4; i++) {
twoColumn[`1-${i}`] = `minmax(0, 1fr) minmax(0, ${i}fr)`
twoColumn[`${i}-1`] = `minmax(0, ${i}fr) minmax(0, 1fr)`
}
for (i = 1; i <= 4; i++) {
threeColumn[`${i}-1-1`] = `minmax(0, ${i}fr) minmax(0, 1fr) minmax(0, 1fr)`
threeColumn[`1-${i}-1`] = `minmax(0, 1fr) minmax(0, ${i}fr) minmax(0, 1fr)`
threeColumn[`1-1-${i}`] = `minmax(0, 1fr) minmax(0, 1fr) minmax(0, ${i}fr)`
}
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
fontFamily: decanter.theme.fontFamily,
decanter: decanter.theme.decanter,
screens: decanter.theme.screens,
extend: {
...decanter.theme.extend,
aria: {
current: "current='true'",
"current-page": "current='page'"
},
data: {
intrail: "intrail='true'",
},
screens: {
"3xl": "1600px",
},
gridTemplateColumns: {...twoColumn, ...threeColumn},
containers: {
"8xl": "80rem",
"9xl": "90rem",
"10xl": "100rem",
"11xl": "110rem",
"12xl": "120rem",
"13xl": "130rem",
"14xl": "140rem",
"15xl": "150rem",
},
scale: {
"-100": "-1",
},
fontFamily: {
stanford: ["var(--font-stanford)", "sans-serif"],
},
},
},
plugins: [
...decanter.plugins,
require("@tailwindcss/container-queries"),
require(`${dir}/typography/local-footer.tsx`)(),
require(`${dir}/typography/global-message.tsx`)(),
require(`${dir}/typography/wysiwyg.tsx`)(),
require(`${dir}/centered-container.tsx`)(),
],
}