-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
65 lines (65 loc) · 1.78 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
const forms = require("@tailwindcss/forms");
const typography = require("@tailwindcss/typography");
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
],
plugins: [forms, typography],
theme: {
extend: {
colors: {
white: "#fff",
// lightgray used to be called ms_on_surface (a mui holdover)
lightgray: "#CAC4D0",
neutralgray: "#AAA",
darkgray: "#79747e",
smokegray: "#343434",
almostblack: "#1e1e1e",
black: "#000",
salmonpink: "#ff9c77",
frenchviolet: "#7e1cc4",
lightbisque: "#ffe5c4",
},
spacing: {},
fontFamily: {
// sans is the default font applied by tailwind, so alias
// it to our custom font
sans: "Nunito",
// reset serif and mono fonts
serif: "serif",
mono: "mono",
// apply font-fredoka to all h* elements
fredoka: "Fredoka",
},
borderRadius: {
"81xl": "100px",
},
},
fontSize: {
sm: "0.8rem",
base: "1rem",
xl: "1.25rem",
"2xl": "1.563rem",
"3xl": "1.953rem",
"4xl": "2.441rem",
"5xl": "3.052rem",
"6xl": "5rem",
inherit: "inherit",
"2xl-rfs": "clamp(1.125rem, 0.8vw + 0.5rem, 1.5rem)",
"xl-rfs": "clamp(0.875rem, 0.8vw + 0.3rem, 1.125rem)",
"3xl-rfs": "clamp(1.5rem, 1vw + 0.8rem, 2rem)",
"base-rfs": "clamp(0.75rem, 0.9vw + 0.1rem, 1rem)",
"1.5xl-rfs": "clamp(1.125rem, 1vw + 0.2rem, 1.25rem)",
},
letterSpacing: {
rls: "clamp(0.5rem, 0.001vw + 0.5rem, 0.75rem)",
},
corePlugins: {
preflight: false,
},
important: "#__next",
},
};