-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
108 lines (106 loc) · 2.74 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
const primary = {
50: "#F8F7FF",
100: "#F1F0FE",
200: "#DDD9FD",
300: "#C8C2FC",
400: "#9E95FA",
500: "#7567F8",
600: "#695DDF",
700: "#463E95",
800: "#352E70",
900: "#231F4A",
};
module.exports = {
presets: [
require("tailwindcss/defaultConfig"),
require("xtendui/tailwind.preset"),
],
content: [
"./node_modules/xtendui/src/*.mjs",
"./src/**/*.{html,js,vue,ts,pug}",
"./node_modules/vue-tailwind-datepicker/**/*.js",
],
theme: {
extend: {
// custom xtendui color
colors: {
success: "#48bb78",
error: "#f56565",
primary: primary,
"vtd-primary": primary,
},
// custom font
fontFamily: {
quicksand: ['"Quicksand"', ...defaultTheme.fontFamily.mono],
},
// custom container
container: {
center: true,
fluid: "1536px",
padding: {
DEFAULT: "1.25rem",
sm: "1.5rem",
md: "2rem",
lg: "3rem",
xl: "4rem",
},
},
// custom default transition
transitionDuration: {
DEFAULT: "500ms",
},
transitionTimingFunction: {
DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
in: "cubic-bezier(0.4, 0, 1, 1)",
out: "cubic-bezier(0, 0, 0.2, 1)",
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
},
animation: {
"spin-slow": "spin 10s linear infinite",
},
// custom xtendui examples
xtendui: {
global: {
component: (theme) => ({
// custom selection
"::selection": {
backgroundColor: theme("colors.primary.600"),
color: theme("colors.white"),
},
// custom scrollbar
".xt-overflow-main": {
"&::-webkit-scrollbar": {
height: "10px",
width: "10px",
background: theme("colors.white"),
},
"&::-webkit-scrollbar-thumb": {
background: theme("colors.gray.900"),
},
scrollbarColor: `${theme("colors.gray.900")} ${theme(
"colors.white",
)}`,
},
}),
},
typography: {
utility: {
// custom headers
".xt-h1": {
"@apply font-black text-4xl md:text-5xl lg:text-6xl": {},
textTransform: "lowercase",
},
},
component: (theme) => ({
// semibold instead of bold
"b, strong": {
fontWeight: theme("fontWeight.semibold", "bolder"),
},
}),
},
},
},
},
};