-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
67 lines (66 loc) · 2.07 KB
/
tailwind.config.js
File metadata and controls
67 lines (66 loc) · 2.07 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
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
const plugin = require('tailwindcss/plugin'); // Import the plugin function
module.exports = {
prefix: 'pf-', // Custom prefix for Tailwind classes
content: [
"./resources/views/**/*.{twig,html,php,js}", // Specify content files
"./app/views/**/*.{twig,html,php,js}" // Specify content files
],
theme: {
fontFamily: {
sans: ["Roboto", "sans-serif"],
serif: ["Roboto Slab", "serif"],
body: ["Roboto", "sans-serif"],
mono: [
"SFMono-Regular",
"Menlo",
"Monaco",
"Consolas",
"Liberation Mono",
"Courier New",
"monospace",
],
},
extend: {
colors: {
gray: {
50: '#f9fafb', // Example light gray
800: '#1f2937', // Example dark gray
},
indigo: {
400: '#6366f1', // Indigo for dark mode
600: '#4f46e5', // Indigo for light mode
},
},
transitionProperty: {
'colors': 'background-color, color, border-color, text-decoration-color, fill, stroke',
},
},
},
plugins: [
plugin(function({ addVariant, e }) {
// Add custom variants for theme modes
addVariant('pf-color', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[theme-mode="pf-color"] .${e(`pf-color${separator}${className}`)}`;
});
});
addVariant('pf-dark', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[theme-mode="pf-dark"] .${e(`pf-dark${separator}${className}`)}`;
});
});
addVariant('pf-light', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[theme-mode="pf-light"] .${e(`pf-light${separator}${className}`)}`;
});
});
addVariant('pf-system', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[theme-mode="pf-system"] .${e(`pf-system${separator}${className}`)}`;
});
});
}),
// Flowbite plugin
require('flowbite/plugin'),
],
};