-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
40 lines (36 loc) · 1.18 KB
/
tailwind.config.js
File metadata and controls
40 lines (36 loc) · 1.18 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
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require("tailwindcss/defaultTheme");
const withOpacityValue = (variable) => {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
};
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
screens: {
xs: "20rem",
...defaultTheme.screens,
},
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
colors: {
white: "#FFF",
nero: withOpacityValue("--tw-color-nero"),
brightGray: withOpacityValue("--tw-color-bright-gray"),
blueberry: withOpacityValue("--tw-color-blueberry"),
disable: withOpacityValue("--tw-color-disable"),
lightSilver: withOpacityValue("--tw-color-light-silver"),
auroMetalSaurus: withOpacityValue("--tw-color-auro-metal-saurus"),
aliceBlue: withOpacityValue("--tw-color-alice-blue"),
},
},
},
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/line-clamp")],
};