Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
90 lines (89 loc) · 2.62 KB
/
Copy pathtailwind.config.js
File metadata and controls
90 lines (89 loc) · 2.62 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
const { hairlineWidth } = require("nativewind/theme");
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [
"./app/**/*.{js,jsx,ts,tsx}",
"./components/**/*.{js,jsx,ts,tsx}",
"./pages/**/*.{js,jsx,ts,tsx}",
],
safelist: ["bg-sent-foreground", "text-warning", "p-12"],
presets: [require("nativewind/preset")],
theme: {
extend: {
fontSize: {
xs: ["12px", { lineHeight: "16px" }],
sm: ["14px", { lineHeight: "20px" }],
base: ["16px", { lineHeight: "24px" }],
lg: ["18px", { lineHeight: "28px" }],
xl: ["20px", { lineHeight: "28px" }],
"2xl": ["24px", { lineHeight: "32px" }],
"3xl": ["30px", { lineHeight: "36px" }],
"4xl": ["36px", { lineHeight: "40px" }],
"5xl": ["48px", { lineHeight: "1" }],
"6xl": ["60px", { lineHeight: "1" }],
},
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
overlay: "var(--overlay)",
border: "var(--border)",
logo: {
primary: "var(--logo-primary)",
secondary: "var(--logo-secondary)",
},
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
receive: {
DEFAULT: "var(--receive)",
foreground: "var(--receive-foreground)",
},
sent: {
DEFAULT: "var(--sent)",
foreground: "var(--sent-foreground)",
},
destructive: {
DEFAULT: "var(--destructive)",
foreground: "var(--destructive-foreground)",
},
pending: {
DEFAULT: "var(--pending)",
foreground: "var(--pending-foreground)",
},
warning: {
DEFAULT: "var(--warning)",
foreground: "var(--warning-foreground)",
border: "var(--warning-border)",
},
},
borderWidth: {
hairline: hairlineWidth(),
},
fontFamily: {
mono: ["CourierPrime"],
sans: ["OpenRunde"],
/* For some (unknown) reason the font styles aren't applied
* if you use the tailwind native names
*/
sans2: ["OpenRunde"],
medium2: ["OpenRunde-Medium"],
semibold2: ["OpenRunde-Semibold"],
bold2: ["OpenRunde-Bold"],
},
screens: {
sm: "376px",
},
},
},
plugins: [],
};