Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
225 lines (195 loc) · 6.58 KB
/
Copy paththeme.css
File metadata and controls
225 lines (195 loc) · 6.58 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
* The 2026-10 brand, on Blume's tokens: neutral greys, one green, Strichpunkt
* Sans for every word and Intel One Mono for code (both set in
* blume.config.ts). Values are the dashboard's Figma variables, so a colour
* can be checked against the product without translating it.
*
* Dark is the default, like the Website: a #030303 page with #141414 code and
* card surfaces, white type, and the green as the accent. Light mode is the
* dashboard's light theme: a white page, ink type, and ink as the accent,
* because the green fails as type on white (1.4:1). There the green appears
* only as a ground with ink on it.
*/
:root {
--blume-foreground: #141414;
--blume-muted: color-mix(in oklch, #141414 6%, transparent);
--blume-muted-foreground: #6a6a6a;
--blume-border: color-mix(in oklch, #141414 8%, transparent);
--blume-code-background: #f5f5f5;
--sf-green: #1efe57;
--sf-ink: #141414;
}
:root[data-theme="dark"] {
--blume-foreground: #ffffff;
--blume-muted: color-mix(in oklch, #ffffff 10%, transparent);
--blume-muted-foreground: #8e8e8e;
--blume-border: color-mix(in oklch, #ffffff 10%, transparent);
--blume-code-background: #141414;
--blume-accent-foreground: #141414;
}
/*
* The one call to action in the header is the brand's green pill in both
* modes, ink on green, as the Website and dashboard draw their primary
* buttons.
*/
[data-blume-header] a[href="https://my.spacefast.com"] {
background: var(--sf-green);
color: var(--sf-ink);
}
/*
* Five tabs, the wordmark, and the header actions need about 1080px side by
* side. Blume shows the tab bar from `md`, where the wordmark ran over it, so
* keep the tabs in the drawer until `lg`.
*/
@media (min-width: 768px) and (max-width: 1023.98px) {
[data-blume-header] > nav {
display: none;
}
#blume-nav-drawer nav[class~="md:hidden"] {
display: block;
}
}
/*
* A setup page's one-click link ("Add to Cursor") is its primary action, so it
* is drawn as the brand's primary button, like the header's. The generated
* Markdown writes it as a bold link that opens a paragraph.
*/
.prose p > strong:first-child > a[data-blume-external] {
display: inline-flex;
align-items: center;
gap: 0.375rem;
margin-inline-end: 0.375rem;
padding: 0.5rem 1.125rem;
border-radius: 999px;
background: var(--sf-green);
color: var(--sf-ink);
font-weight: 500;
text-decoration: none;
transition: opacity 140ms ease;
}
.prose p > strong:first-child > a[data-blume-external]:hover {
opacity: 0.85;
}
/* One primary button a page: the action links after it are outlined. */
.prose p:has(> strong:first-child > a[data-blume-external]) ~ p > strong:first-child > a[data-blume-external] {
background: transparent;
color: var(--blume-foreground);
box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--blume-foreground) 35%, transparent);
}
/*
* A vendor's own button image (Cursor, Kiro) is the whole button: no pill
* around it. Cursor publishes a dark button for light pages and a light one for
* dark pages.
*/
.prose p > strong:first-child > a[data-blume-external]:has(img) {
padding: 0;
border-radius: 0;
background: none;
box-shadow: none;
vertical-align: middle;
}
.prose p > strong:first-child > a[data-blume-external] img {
height: 2.25rem;
width: auto;
margin: 0;
}
:root:not([data-theme="dark"]) .prose a img[src$="/mcp-install-light.svg"],
:root[data-theme="dark"] .prose a img[src$="/mcp-install-dark.svg"] {
display: none;
}
/*
* Headings follow the brand's type scale: Medium for display sizes, slight
* negative tracking, no serif.
*/
:where(h1, h2, h3, h4, h5, h6) {
letter-spacing: -0.02em;
}
.prose :where(h1, h2, h3) {
font-weight: 500;
}
/* Links in prose are underlined ink, the Website's quiet text link. */
.prose :where(a):not(:where(.not-prose, .not-prose *)) {
text-decoration-color: color-mix(in oklch, currentColor 30%, transparent);
text-underline-offset: 4px;
}
.prose :where(a):not(:where(.not-prose, .not-prose *)):hover {
text-decoration-color: currentColor;
}
/*
* Top-level collapsible sidebar groups read like flat section headings: same
* weight and color, with no indented rail under them. Their headers stack
* tightly whether open or closed; the only extra space is after an open
* group's pages. Nested groups (Recipes, Errors) keep the default style.
*/
[data-blume-nav-tree] > ul > li:has(> details) {
margin-top: 0.125rem;
}
[data-blume-nav-tree] > ul > li:not(:has(> details)) + li:has(> details) {
margin-top: 1.5rem;
}
[data-blume-nav-tree] > ul > li:has(> details[open]) + li {
margin-top: 0.75rem;
}
[data-blume-nav-tree] > ul > li > details > summary.blume-nav-summary {
color: var(--blume-foreground);
font-weight: 500;
}
/* The API reference sits inside its API group but reads as a section of its own. */
[data-blume-nav-tree] summary.blume-nav-summary:has(> a:is([href$="/api/reference"], [href$="/api/reference/"])) {
color: var(--blume-foreground);
}
[data-blume-nav-tree] > ul > li > details[open] > summary.blume-nav-summary {
margin-bottom: 0.25rem;
}
[data-blume-nav-tree] > ul > li > details > summary + div {
border-inline-start: 0;
padding-inline-start: 0;
}
.prose :where(.config-playground, .config-playground *) {
box-sizing: border-box;
}
/*
* An API reference sample panel has its own Copy in its tab strip, so Blume
* hides the code-block Copy overlay there but not the Ask one beside it, which
* then covers the first line of the sample.
*/
blume-panel-tabs [data-blume-ask] {
display: none !important;
}
/*
* The shared cookie banner (https://spacefast.com/cookie-banner.js) draws
* itself in the brand: light by default, dark on a page whose <html> says
* `data-theme="dark"`, which Blume sets. Its type is the page's sans.
*/
:root {
--font-sans: var(--blume-font-body);
}
/*
* Quiet surface polish (Stageshow / Unslop UI discipline): aligned tabular
* numbers in reference tables, crisp keyboard caps, and restrained hover
* contrast on cards without glow or accent stripes.
*/
.prose table {
font-variant-numeric: tabular-nums;
}
.prose th {
font-weight: 500;
color: var(--blume-foreground);
}
.prose kbd {
font-family: var(--blume-font-mono);
font-size: 0.8em;
padding: 0.12rem 0.38rem;
border-radius: 5px;
border: 1px solid var(--blume-border);
background: var(--blume-code-background);
}
[data-blume-card] {
transition: border-color 140ms ease, background-color 140ms ease;
}
[data-blume-card]:hover {
border-color: color-mix(in oklch, var(--blume-foreground) 22%, transparent);
}
:root[data-theme="dark"] [data-blume-card]:hover {
background-color: color-mix(in oklch, #ffffff 3.5%, transparent);
}