-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
26 lines (26 loc) · 882 Bytes
/
Copy pathtailwind.config.js
File metadata and controls
26 lines (26 loc) · 882 Bytes
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{ts,tsx,html}'],
// Preflight is disabled on purpose: it targets html/body (which don't exist
// inside the overlay's shadow root) and would also stomp host-page styles.
// We ship our own scoped reset in `src/core/palette.css` under `.cp-root`.
corePlugins: { preflight: false },
theme: {
extend: {
colors: {
// Surface palette is driven by CSS variables in palette.css so we can
// theme (and eventually offer light/dark) without recompiling Tailwind.
cp: {
bg: 'var(--cp-bg)',
panel: 'var(--cp-panel)',
border: 'var(--cp-border)',
text: 'var(--cp-text)',
muted: 'var(--cp-muted)',
accent: 'var(--cp-accent)',
sel: 'var(--cp-sel)',
},
},
},
},
plugins: [],
}