-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
45 lines (40 loc) · 1.05 KB
/
tailwind.config.js
File metadata and controls
45 lines (40 loc) · 1.05 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
// Scan all JavaScript files in your project
'./**/*.js',
'./**/*.jsx',
'./examples/**/*.js',
'./components/**/*.js',
'./pages/**/*.js',
// Specifically target OpenScript component patterns
// This ensures Tailwind scans h.div({ class: "..." }) patterns
],
theme: {
extend: {
// Custom theme extensions can go here
colors: {
// OpenScript brand colors (example)
'os-primary': '#3490dc',
'os-secondary': '#ffed4e',
'os-danger': '#e3342f',
}
},
},
plugins: [
// Add Tailwind plugins here if needed
// e.g., @tailwindcss/forms, @tailwindcss/typography
],
// JIT mode configuration
mode: 'jit',
// Safelist classes that might be dynamically generated
safelist: [
// Example: preserve utility classes used dynamically
{
pattern: /bg-(red|green|blue)-(100|200|300|400|500|600|700|800|900)/,
},
{
pattern: /text-(sm|base|lg|xl|2xl|3xl)/,
}
]
}