Repository navigation
Expand file tree
/
Copy pathglobal.css
More file actions
168 lines (157 loc) · 8.12 KB
/
Copy pathglobal.css
File metadata and controls
168 lines (157 loc) · 8.12 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
@import "tailwindcss";
@source "../";
@plugin "@tailwindcss/typography";
@plugin "daisyui" { themes: false; }
/* ---------- Fonts (latin subset only, inlined into the HTML) ---------- */
@font-face {
font-family: "Inter Variable";
font-style: normal; font-display: swap; font-weight: 100 900;
src: url("../../node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
font-family: "Newsreader Variable";
font-style: normal; font-display: swap; font-weight: 200 800;
src: url("../../node_modules/@fontsource-variable/newsreader/files/newsreader-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
font-family: "Newsreader Variable";
font-style: italic; font-display: swap; font-weight: 200 800;
src: url("../../node_modules/@fontsource-variable/newsreader/files/newsreader-latin-wght-italic.woff2") format("woff2-variations");
}
@font-face {
font-family: "JetBrains Mono Variable";
font-style: normal; font-display: swap; font-weight: 100 800;
src: url("../../node_modules/@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}
@theme {
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-serif: "Newsreader Variable", "Iowan Old Style", Georgia, serif;
--font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* ---------- Themes ---------- */
@plugin "daisyui/theme" {
name: "paper";
default: true;
color-scheme: light;
--color-base-100: oklch(98.6% 0.005 85);
--color-base-200: oklch(96.2% 0.008 85);
--color-base-300: oklch(91.5% 0.011 85);
--color-base-content: oklch(27% 0.02 262);
--color-primary: oklch(48% 0.14 262);
--color-primary-content: oklch(98% 0.01 262);
--color-secondary: oklch(57% 0.15 38);
--color-secondary-content: oklch(98% 0.01 38);
--color-accent: oklch(56% 0.1 175);
--color-accent-content: oklch(98% 0.01 175);
--color-neutral: oklch(32% 0.02 262);
--color-neutral-content: oklch(96% 0.005 85);
--color-info: oklch(58% 0.13 240);
--color-info-content: oklch(98% 0.01 240);
--color-success: oklch(57% 0.13 155);
--color-success-content: oklch(98% 0.01 155);
--color-warning: oklch(72% 0.15 75);
--color-warning-content: oklch(25% 0.05 75);
--color-error: oklch(56% 0.19 25);
--color-error-content: oklch(98% 0.01 25);
--radius-selector: 0.5rem; --radius-field: 0.5rem; --radius-box: 0.75rem;
--size-selector: 0.25rem; --size-field: 0.25rem;
--border: 1px; --depth: 0; --noise: 0;
}
@plugin "daisyui/theme" {
name: "ink";
prefersdark: true;
color-scheme: dark;
--color-base-100: oklch(19.5% 0.014 262);
--color-base-200: oklch(23% 0.016 262);
--color-base-300: oklch(30% 0.018 262);
--color-base-content: oklch(90% 0.012 85);
--color-primary: oklch(74% 0.12 262);
--color-primary-content: oklch(20% 0.03 262);
--color-secondary: oklch(75% 0.12 45);
--color-secondary-content: oklch(22% 0.03 45);
--color-accent: oklch(76% 0.1 175);
--color-accent-content: oklch(22% 0.03 175);
--color-neutral: oklch(30% 0.02 262);
--color-neutral-content: oklch(92% 0.01 85);
--color-info: oklch(72% 0.11 240);
--color-info-content: oklch(20% 0.03 240);
--color-success: oklch(72% 0.12 155);
--color-success-content: oklch(20% 0.03 155);
--color-warning: oklch(80% 0.13 80);
--color-warning-content: oklch(22% 0.04 80);
--color-error: oklch(70% 0.16 25);
--color-error-content: oklch(20% 0.04 25);
--radius-selector: 0.5rem; --radius-field: 0.5rem; --radius-box: 0.75rem;
--size-selector: 0.25rem; --size-field: 0.25rem;
--border: 1px; --depth: 0; --noise: 0;
}
/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { @apply bg-base-100 text-base-content font-sans antialiased; text-rendering: optimizeLegibility; }
/* Long-form prose, mapped onto the theme colours */
.prose {
--tw-prose-body: color-mix(in oklab, var(--color-base-content) 88%, transparent);
--tw-prose-headings: var(--color-base-content);
--tw-prose-lead: color-mix(in oklab, var(--color-base-content) 75%, transparent);
--tw-prose-links: var(--color-primary);
--tw-prose-bold: var(--color-base-content);
--tw-prose-counters: color-mix(in oklab, var(--color-base-content) 55%, transparent);
--tw-prose-bullets: color-mix(in oklab, var(--color-base-content) 35%, transparent);
--tw-prose-hr: var(--color-base-300);
--tw-prose-quotes: var(--color-base-content);
--tw-prose-quote-borders: var(--color-primary);
--tw-prose-captions: color-mix(in oklab, var(--color-base-content) 60%, transparent);
--tw-prose-code: var(--color-base-content);
--tw-prose-pre-code: var(--color-base-content);
--tw-prose-pre-bg: var(--color-base-200);
--tw-prose-th-borders: var(--color-base-300);
--tw-prose-td-borders: var(--color-base-300);
font-size: 1.0625rem;
line-height: 1.75;
max-width: 70ch;
}
.prose :where(h1, h2, h3, h4):not(:where(.not-prose *)) { font-family: var(--font-serif); font-weight: 560; letter-spacing: -0.01em; }
.prose :where(h2):not(:where(.not-prose *)) {
font-size: 1.85rem; margin-top: 3.25rem; padding-top: 1.5rem;
border-top: 1px solid var(--color-base-300);
}
.prose :where(h3):not(:where(.not-prose *)) { font-size: 1.35rem; }
.prose :where(a):not(:where(.not-prose *)) { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose :where(blockquote):not(:where(.not-prose *)) { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.prose :where(code):not(:where(pre *, .not-prose *)) {
@apply bg-base-200 rounded px-1.5 py-0.5 font-medium;
font-size: 0.85em;
}
.prose :where(code):not(:where(pre *, .not-prose *))::before,
.prose :where(code):not(:where(pre *, .not-prose *))::after { content: none; }
.prose :where(.table-wrap):not(:where(.not-prose *)) { overflow-x: auto; margin-block: 2em; border: 1px solid var(--color-base-300); border-radius: var(--radius-box); }
.prose :where(.table-wrap table):not(:where(.not-prose *)) { margin: 0; font-size: 0.95em; }
.prose :where(.table-wrap tbody tr:last-child):not(:where(.not-prose *)) { border-bottom: 0; }
.prose :where(thead th):not(:where(.not-prose *)) { @apply bg-base-200; padding: 0.6rem 0.8rem; }
.prose :where(tbody td):not(:where(.not-prose *)) { padding: 0.55rem 0.8rem; }
.prose :where(mark):not(:where(.not-prose *)) { background: color-mix(in oklab, var(--color-warning) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
/* Code blocks (Shiki dual theme) */
.astro-code { @apply rounded-box border border-base-300 text-sm leading-relaxed; padding: 1rem 1.15rem !important; background-color: var(--color-base-200) !important; }
.astro-code, .astro-code span { color: var(--shiki-light); }
[data-theme="ink"] .astro-code, [data-theme="ink"] .astro-code span { color: var(--shiki-dark); }
/* Math */
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.25rem 0; }
.katex { font-size: 1.08em; }
/* Wide figures may extend a little beyond the text column on large screens */
.figure-wide { margin-inline: 0; }
@media (min-width: 1100px) { .figure-wide { margin-inline: -4rem; } }
/* Shared figure caption */
.figure-caption { @apply text-sm text-base-content/60 text-center mt-3 font-serif italic; }
/* Component error box (shown when a diagram/chart fails to render) */
.component-error { @apply rounded-box border border-error/50 bg-error/10 text-error p-3 font-mono text-xs whitespace-pre-wrap; }
/* Sources (GFM footnotes) */
.prose .footnotes { margin-top: 4rem; font-size: 0.9rem; color: color-mix(in oklab, var(--color-base-content) 75%, transparent); }
.prose .footnotes .footnotes-label { font-size: 1.35rem; margin-top: 0; }
.prose .footnotes ol { padding-left: 1.25rem; }
.prose .footnotes li { margin: 0.4rem 0; overflow-wrap: anywhere; }
.prose .footnotes li p { margin: 0; display: inline; }
.prose .footnotes a { overflow-wrap: anywhere; }
.prose .footnotes .data-footnote-backref { text-decoration: none; margin-left: 0.25rem; }
.prose sup a[data-footnote-ref] { text-decoration: none; font-weight: 600; padding: 0 0.1em; }
.prose sup a[data-footnote-ref]::before { content: '['; }
.prose sup a[data-footnote-ref]::after { content: ']'; }