-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
103 lines (99 loc) · 3.68 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors')
const defaultThemeVariables = {
"--rounded-box": "1rem", // border radius rounded-box utility class, used in card and other large boxes
"--rounded-btn": "1.9rem", // border radius rounded-btn utility class, used in buttons and similar element
"--rounded-badge": "1.9rem", // border radius rounded-badge utility class, used in badges and similar
"--animation-btn": "0.25s", // duration of animation when you click on button
"--animation-input": "0.2s", // duration of animation for inputs like checkbox, toggle, radio, etc
"--btn-text-case": "uppercase", // set default text transform for buttons
"--btn-focus-scale": "0.95", // scale transform of button when you focus on it
"--border-btn": "1px", // border width of buttons
"--tab-border": "1px", // border width of tabs
"--tab-radius": "0.5rem", // border radius of tabs
"--btn-text-case": "uppercase", // set default text transform for buttons
}
module.exports = {
content: [
'./src/index.html',
'./src/pages/**/*.{jsx,tsx}',
'./src/common/editor/**/*.{jsx,tsx,ts}',
'./src/common/components/**/*.{jsx,tsx,ts}',
'./src/modules/**/*.{jsx,tsx}',
'./src/renderer/**/*.{jsx,tsx}',
],
theme: {
extend: {
dropShadow: {
'white': '0 0 4px rgba(255, 255, 255, 1)',
},
theme: {
maxWidth: {
'screen': '100vw'
},
},
fontFamily: {
'sans': ['Libre Franklin', 'ui-sans-serif', 'system-ui'],
'serif': ['ui-serif', 'Georgia'],
'mono': ['Fira Code', 'ui-monospace', 'SFMono-Regular'],
},
transitionProperty: {
'size': 'height, weight',
}
},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/typography"),
require('daisyui'),
require('tailwind-scrollbar')({
nocompatible: true
})
],
daisyui: {
// darkTheme: 'black',
themes: [
// {
{
light: {
// ...require("daisyui/src/colors/themes")["[data-theme=pastel]"],
// "color-scheme": "light",
...require("./src/common/styles/colors"),
neutral: "#1a1a1a",
'primary-content': '#F2F2F2',
"base-100": "#ffffff",
"base-200": "#F2F2F2",
"base-300": "#E6E5E5",
"base-content": "#000000",
info: "#4AA8C0",
success: "#823290",
warning: "#EE8133",
error: "#E93F33",
...defaultThemeVariables
},
},
{
dark: {
// ...require("daisyui/src/colors/themes")["[data-theme=black]"],
"color-scheme": "dark",
...require("./src/common/styles/colors"),
neutral: "#272626",
"base-100": "#000000",
"base-200": "#1A1919",
"base-300": "#2D3239",
"base-content": "#CCC",
info: "#4AA8C0",
success: "#823290",
warning: "#EE8133",
error: "#E93F33",
...defaultThemeVariables,
".modal": {
"background-color": "#0007",
}
},
},
],
},
}