-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
33 lines (30 loc) · 905 Bytes
/
tailwind.config.ts
File metadata and controls
33 lines (30 loc) · 905 Bytes
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
import { type Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
const hexToRGBA = (hex: string, opacity: number): string => {
let r = parseInt(hex.slice(1, 3), 16);
let g = parseInt(hex.slice(3, 5), 16);
let b = parseInt(hex.slice(5, 7), 16);
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
}
const mainColorHex = "#147D73"
export default {
content: ["./src/**/*.tsx"],
theme: {
extend: {
colors: {
"foboh-field": "#F8FAFC",
"foboh-panel": "#FFFFFF",
"foboh-main": mainColorHex,
"foboh-main-disabled": hexToRGBA(mainColorHex, 0.9),
"foboh-impact": "#DC3545",
"foboh-text": "#637381",
"foboh-secondary": "#d9d9d9",
"foboh-text-hover": "#637381"
},
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
},
},
},
plugins: [],
} satisfies Config;