-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
50 lines (48 loc) · 1.24 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
const plugin = require("tailwindcss/plugin");
const mantineVariantsPlugin = plugin(function ({ addVariant }) {
addVariant("success", `&[data-variant="success"]`);
addVariant("danger", `&[data-variant="danger"]`);
addVariant("warning", `&[data-variant="warning"]`);
});
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./stories/**/*.{js,ts,jsx,tsx,mdx}",
],
corePlugins: {
preflight: false,
},
theme: {
extend: {
screens: {
xs: "480px",
},
colors: {
light: "#fbfbfb",
dark: "#333333",
"primary-2": "#74b5ff",
primary: "#227ee4",
"primary-4": "#2847cd",
"success-2": "#81e654",
success: "#2fc930",
"success-4": "#2a8323",
"warning-2": "#fd7f3e",
warning: "#f4650e",
"warning-4": "#dd4602",
"danger-2": "#eb4141",
danger: "#e80708",
"danger-4": "#b20000",
},
},
},
plugins: [
require("@tailwindcss/forms")({
strategy: "class",
}),
require("tailwindcss-animate"),
mantineVariantsPlugin,
],
darkMode: ["class", '[data-mantine-color-scheme="dark"]'],
};