-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathtailwind.config.ts
35 lines (31 loc) · 1.08 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
import { breakpointsTokens } from "./src/theme/tokens/breakpoints";
import { rgbAlpha, toCssVar, toCssVars } from "./src/utils/theme";
const config: Config = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
colors: {
primary: toCssVars("colors.palette.primary"),
secondary: toCssVars("colors.palette.secondary"),
success: toCssVars("colors.palette.success"),
warning: toCssVars("colors.palette.warning"),
error: toCssVars("colors.palette.error"),
info: toCssVars("colors.palette.info"),
gray: toCssVars("colors.palette.gray"),
common: toCssVars("colors.common"),
text: toCssVars("colors.text"),
bg: toCssVars("colors.background"),
border: rgbAlpha(toCssVar("colors.palette.gray.500Channel"), 0.1),
hover: rgbAlpha(toCssVar("colors.palette.gray.500Channel"), 0.1),
},
opacity: toCssVars("opacity"),
screens: breakpointsTokens,
extend: {
borderRadius: toCssVars("borderRadius"),
boxShadow: toCssVars("shadows"),
spacing: toCssVars("spacing"),
},
},
plugins: [],
};
export default config;