-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
55 lines (52 loc) · 2.19 KB
/
Copy pathtailwind.config.ts
File metadata and controls
55 lines (52 loc) · 2.19 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
import typographyPlugin from '@tailwindcss/typography'
import formsPlugin from '@tailwindcss/forms'
import containerQueriesPlugin from '@tailwindcss/container-queries'
import { type Config } from 'tailwindcss'
// Shared with replay dashboard — keep in sync with /dashboard/tailwind.config.js
// eslint-disable-next-line @typescript-eslint/no-require-imports
const dashboard = require('./tailwind.dashboard.config.cjs') as Config
const dashboardExtend = dashboard.theme?.extend ?? {}
export default {
darkMode: ['class', '[data-theme="dark"]'],
content: ['./src/**/*.{js,jsx,ts,tsx,md,mdx}'],
theme: {
container: dashboard.theme?.container,
extend: {
...dashboardExtend,
fontFamily: {
// Match the replay.io marketing site: Inter for both body and display,
// with the feature settings that make Inter's "single-storey a", curved
// i/l, and disambiguated zero render. This keeps the docs visually
// consistent with replay.io while looking sharper than Lexend at the
// light weights we use for headings.
sans: [
'var(--font-inter)',
{ fontFeatureSettings: '"cv11", "ss01", "ss03"' },
],
display: [
'var(--font-inter)',
{ fontFeatureSettings: '"cv11", "ss01", "ss03"' },
],
// Lexend kept around for any opt-in usage (and to avoid breaking the
// existing local font load), but it is no longer the default display.
lexend: 'var(--font-lexend)',
handdrawn: 'var(--font-virgil)',
},
maxWidth: {
...('maxWidth' in dashboardExtend
? (dashboardExtend as { maxWidth: Record<string, string> }).maxWidth
: {}),
'8xl': '88rem',
'90vw': '90vw',
},
boxShadow: {
...('boxShadow' in dashboardExtend
? (dashboardExtend as { boxShadow: Record<string, string> }).boxShadow
: {}),
'nav-active': '0px 0px 5px 1px rgba(17,147,230,1)',
ripple: `0px 0px 0px 10px rgba(255,255,255,0.1), 0px 0px 0px 20px rgba(255,255,255,0.1), 0px 0px 0px 30px rgba(255,255,255,0.1)`,
},
},
},
plugins: [formsPlugin, typographyPlugin, containerQueriesPlugin],
} satisfies Config