-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
55 lines (55 loc) · 1.88 KB
/
Copy pathtailwind.config.js
File metadata and controls
55 lines (55 loc) · 1.88 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
/**
* Tailwind, at build time.
*
* This replaces the `tailwind.config = {…}` block that used to sit inline in
* index.html and be consumed by the Play CDN (cdn.tailwindcss.com). Every value
* below is carried over from it unchanged — see docs/session/ for the audit that
* removed the CDN.
*
* PINNED TO TAILWIND v3 (see package.json). v4 is a different product: CSS-first
* configuration, no tailwind.config.js by default, and changed default styles.
* cdn.tailwindcss.com served v3, so v3 is what reproduces the current appearance.
*
* @type {import('tailwindcss').Config}
*/
export default {
// Every file that can carry a class name. A build-time pass only sees literal
// strings in source — unlike the Play CDN, which compiled against the live DOM
// — so a class assembled from fragments at runtime would not be generated.
// There are none today (all interpolations are complete static strings); if
// one is ever introduced, either make it a complete literal or safelist it.
content: [
'./index.html',
'./*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./pages/**/*.{ts,tsx}',
'./services/**/*.{ts,tsx}',
],
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
serif: ['Merriweather', 'serif'],
},
colors: {
// Load-bearing: `bg-academic-50 text-academic-900` is on <body>, and the
// app uses this scale throughout. The ten values are Tailwind's default
// `slate`, but the class names in the source say `academic` — do not
// "simplify" this away.
academic: {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
},
},
},
},
plugins: [],
};