@md-code/styles 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +771 -2
- package/dist/colors-0AY7L5dk.js +244 -0
- package/dist/index.js +129 -0
- package/dist/themes/colors.js +1 -0
- package/dist/themes-BJwXZ1XG.js +419 -0
- package/dist/themes.js +3 -0
- package/dist/types/GlobalStyles.d.ts +9 -0
- package/dist/types/GlobalStyles.d.ts.map +1 -0
- package/dist/types/ThemeProviderWrapper.d.ts +4 -0
- package/dist/types/ThemeProviderWrapper.d.ts.map +1 -0
- package/dist/types/helpers/font.d.ts +2 -0
- package/dist/types/helpers/font.d.ts.map +1 -0
- package/dist/types/helpers/fullWidth.d.ts +3 -0
- package/dist/types/helpers/fullWidth.d.ts.map +1 -0
- package/dist/types/helpers/index.d.ts +5 -0
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/types/helpers/offsets.d.ts +3 -0
- package/dist/types/helpers/offsets.d.ts.map +1 -0
- package/dist/types/helpers/spaceBetween.d.ts +3 -0
- package/dist/types/helpers/spaceBetween.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/theme-provider/styles.d.ts +19 -0
- package/dist/types/theme-provider/styles.d.ts.map +1 -0
- package/dist/types/themes/baseTheme.d.ts +166 -0
- package/dist/types/themes/baseTheme.d.ts.map +1 -0
- package/dist/types/themes/board.d.ts +287 -0
- package/dist/types/themes/board.d.ts.map +1 -0
- package/dist/types/themes/colors.d.ts +3 -0
- package/dist/types/themes/colors.d.ts.map +1 -0
- package/dist/types/themes/contract/defineTheme.d.ts +17 -0
- package/dist/types/themes/contract/defineTheme.d.ts.map +1 -0
- package/dist/types/themes/contract/index.d.ts +102 -0
- package/dist/types/themes/contract/index.d.ts.map +1 -0
- package/dist/types/themes/editor.d.ts +170 -0
- package/dist/types/themes/editor.d.ts.map +1 -0
- package/dist/types/themes/index.d.ts +12 -0
- package/dist/types/themes/index.d.ts.map +1 -0
- package/dist/types/themes/liquidGlass.d.ts +157 -0
- package/dist/types/themes/liquidGlass.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/animation.d.ts +17 -0
- package/dist/types/themes/tokens/base/animation.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/colors.d.ts +10 -0
- package/dist/types/themes/tokens/base/colors.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/effects.d.ts +11 -0
- package/dist/types/themes/tokens/base/effects.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/offsets.d.ts +8 -0
- package/dist/types/themes/tokens/base/offsets.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/shadows.d.ts +7 -0
- package/dist/types/themes/tokens/base/shadows.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/shape.d.ts +10 -0
- package/dist/types/themes/tokens/base/shape.d.ts.map +1 -0
- package/dist/types/themes/tokens/base/typography.d.ts +22 -0
- package/dist/types/themes/tokens/base/typography.d.ts.map +1 -0
- package/dist/types/themes/tokens/board.d.ts +298 -0
- package/dist/types/themes/tokens/board.d.ts.map +1 -0
- package/dist/types/themes/tokens/elements.d.ts +24 -0
- package/dist/types/themes/tokens/elements.d.ts.map +1 -0
- package/dist/types/themes/tokens/offsets.d.ts +20 -0
- package/dist/types/themes/tokens/offsets.d.ts.map +1 -0
- package/dist/types/themes/tokens/report.d.ts +241 -0
- package/dist/types/themes/tokens/report.d.ts.map +1 -0
- package/dist/types/themes/tokens/screens.d.ts +24 -0
- package/dist/types/themes/tokens/screens.d.ts.map +1 -0
- package/dist/types/themes/tokens/variables.d.ts +39 -0
- package/dist/types/themes/tokens/variables.d.ts.map +1 -0
- package/dist/types/themes/tokens/zIndexes.d.ts +13 -0
- package/dist/types/themes/tokens/zIndexes.d.ts.map +1 -0
- package/dist/types/themes/types/index.d.ts +8 -0
- package/dist/types/themes/types/index.d.ts.map +1 -0
- package/dist/types/themes/viking.d.ts +157 -0
- package/dist/types/themes/viking.d.ts.map +1 -0
- package/dist/types/themes/zones/pair.d.ts +297 -0
- package/dist/types/themes/zones/pair.d.ts.map +1 -0
- package/dist/types/themes/zones/report.d.ts +451 -0
- package/dist/types/themes/zones/report.d.ts.map +1 -0
- package/dist/types/types.d.ts +179 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types.js +0 -0
- package/package.json +325 -5
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A ZONE theme for the PAIR situation (README §2): the dark comparison surface a
|
|
3
|
+
* board of two (or five) code columns is drawn on — the paper under the lanes,
|
|
4
|
+
* the recessed panel above it, the wash behind a row, the ribbon through the
|
|
5
|
+
* corridor, the editor inks the tokenizer paints with.
|
|
6
|
+
*
|
|
7
|
+
* The palette of the pair view was a private module plus a runtime builder before
|
|
8
|
+
* DISSOLVE-1; it is ONE static theme here, expressed through EXISTING contract
|
|
9
|
+
* fields (README §7.1). It inherits the board preset (`tokens/board.ts`) — it already
|
|
10
|
+
* expressed through contract fields — and overrides only what the pair surface
|
|
11
|
+
* changes:
|
|
12
|
+
*
|
|
13
|
+
* | pair surface | contract field | value |
|
|
14
|
+
* |-------------------|-------------------------|---------------------------------------------|
|
|
15
|
+
* | paper | `colors.section` | `#171f2e` (the layer the board sits on) |
|
|
16
|
+
* | panel | `colors.overlay` | `#121722` (the recessed toolbar/rows layer) |
|
|
17
|
+
* | text | `colors.sectionContent` | `#e2e8f2` |
|
|
18
|
+
* | mark wash | `colors.highlighted` | `rgba(255, 107, 107, 0.42)` |
|
|
19
|
+
* | text underlay | `shadows.content` | `0 1px 2px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.85)` |
|
|
20
|
+
* | mono | `font.family.{text,title}` | `'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace` |
|
|
21
|
+
*
|
|
22
|
+
* CONTRAST RULE of the pair surface: every wash is a DARK saturated tint so the
|
|
23
|
+
* light editor ink stays readable on it — `highlightedContent` is that light ink,
|
|
24
|
+
* never a dark one. The board IS text, so both font roles resolve to monospace
|
|
25
|
+
* (README §5.5, §6); radius, offsets, zIndex and effects stay inherited from the
|
|
26
|
+
* board preset (the pair surface re-uses the board's 3px controls and 8px rows).
|
|
27
|
+
*
|
|
28
|
+
* ## Status map — this zone's OWN vocabulary (README §3.4)
|
|
29
|
+
*
|
|
30
|
+
* Three groups, all read BY KEY by the board and the report around it:
|
|
31
|
+
*
|
|
32
|
+
* • tones (`same`, `differs`, `added`, `removed`) — the comparison itself.
|
|
33
|
+
* `StatusPair` carries FOUR channels: `background` = the standing row wash,
|
|
34
|
+
* `content` = the ribbon and caption ink (the same hue held stronger),
|
|
35
|
+
* `hot` = the focused wash of the ONE lane under the pointer, `paint` = the
|
|
36
|
+
* wash behind a standing text mark. Every alpha is hand-tuned and NOT
|
|
37
|
+
* derivable (`color-mix` misses the captured values by up to ±0.165 alpha),
|
|
38
|
+
* so the four channels are CARRIED EXACTLY — the board zone's lesson.
|
|
39
|
+
* • chrome (`edge`, `dim`, `faint`, `ribbon`) — the zone's own greys: the
|
|
40
|
+
* hairline, the quiet caption ink, the quietest ink, and the white line
|
|
41
|
+
* through the corridor. Chrome is one ink, so `background === content`.
|
|
42
|
+
* • editor inks (`keyword`, `string`, `number`, `class-name`,
|
|
43
|
+
* `function-variable`, `operator`, `comment`) — one key per Prism token class
|
|
44
|
+
* the tokenizer emits (the key IS the class, §3.4 "the zone's vocabulary").
|
|
45
|
+
* A tokenizer reads `colors.status?.[kind]?.content` and falls back to the
|
|
46
|
+
* surface's own ink, so no component carries a hex and no component imports a
|
|
47
|
+
* theme file.
|
|
48
|
+
*
|
|
49
|
+
* `sameBand`/`differsBand` are the SOLID hues (not washes): the legend chip and
|
|
50
|
+
* the lane-identity ink are the hue itself, and the opaque value is not derivable
|
|
51
|
+
* from the translucent channels above.
|
|
52
|
+
*
|
|
53
|
+
* ## Zone DATA
|
|
54
|
+
*
|
|
55
|
+
* `font.weight.text` 400 and `font.transform.text` `none` are the board's own
|
|
56
|
+
* typographic facts (a code surface never re-cases its source). `border`,
|
|
57
|
+
* `offsets`, `zIndex` and `effects` are inherited from the board preset unchanged.
|
|
58
|
+
*/
|
|
59
|
+
export declare const pairTheme: {
|
|
60
|
+
theme: string;
|
|
61
|
+
colors: {
|
|
62
|
+
section: string;
|
|
63
|
+
overlay: string;
|
|
64
|
+
sectionContent: string;
|
|
65
|
+
highlighted: string;
|
|
66
|
+
highlightedContent: string;
|
|
67
|
+
status: {
|
|
68
|
+
same: {
|
|
69
|
+
background: string;
|
|
70
|
+
content: string;
|
|
71
|
+
hot: string;
|
|
72
|
+
paint: string;
|
|
73
|
+
};
|
|
74
|
+
differs: {
|
|
75
|
+
background: string;
|
|
76
|
+
content: string;
|
|
77
|
+
hot: string;
|
|
78
|
+
paint: string;
|
|
79
|
+
};
|
|
80
|
+
added: {
|
|
81
|
+
background: string;
|
|
82
|
+
content: string;
|
|
83
|
+
hot: string;
|
|
84
|
+
paint: string;
|
|
85
|
+
};
|
|
86
|
+
removed: {
|
|
87
|
+
background: string;
|
|
88
|
+
content: string;
|
|
89
|
+
hot: string;
|
|
90
|
+
paint: string;
|
|
91
|
+
};
|
|
92
|
+
sameBand: {
|
|
93
|
+
background: string;
|
|
94
|
+
content: string;
|
|
95
|
+
};
|
|
96
|
+
differsBand: {
|
|
97
|
+
background: string;
|
|
98
|
+
content: string;
|
|
99
|
+
};
|
|
100
|
+
edge: {
|
|
101
|
+
background: string;
|
|
102
|
+
content: string;
|
|
103
|
+
};
|
|
104
|
+
dim: {
|
|
105
|
+
background: string;
|
|
106
|
+
content: string;
|
|
107
|
+
};
|
|
108
|
+
faint: {
|
|
109
|
+
background: string;
|
|
110
|
+
content: string;
|
|
111
|
+
};
|
|
112
|
+
ribbon: {
|
|
113
|
+
background: string;
|
|
114
|
+
content: string;
|
|
115
|
+
};
|
|
116
|
+
comment: {
|
|
117
|
+
background: string;
|
|
118
|
+
content: string;
|
|
119
|
+
};
|
|
120
|
+
keyword: {
|
|
121
|
+
background: string;
|
|
122
|
+
content: string;
|
|
123
|
+
};
|
|
124
|
+
string: {
|
|
125
|
+
background: string;
|
|
126
|
+
content: string;
|
|
127
|
+
};
|
|
128
|
+
number: {
|
|
129
|
+
background: string;
|
|
130
|
+
content: string;
|
|
131
|
+
};
|
|
132
|
+
"class-name": {
|
|
133
|
+
background: string;
|
|
134
|
+
content: string;
|
|
135
|
+
};
|
|
136
|
+
"function-variable": {
|
|
137
|
+
background: string;
|
|
138
|
+
content: string;
|
|
139
|
+
};
|
|
140
|
+
operator: {
|
|
141
|
+
background: string;
|
|
142
|
+
content: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
shadows: {
|
|
147
|
+
content: string;
|
|
148
|
+
section: string;
|
|
149
|
+
notification: string;
|
|
150
|
+
};
|
|
151
|
+
font: {
|
|
152
|
+
family: {
|
|
153
|
+
text: string;
|
|
154
|
+
title: string;
|
|
155
|
+
};
|
|
156
|
+
weight: {
|
|
157
|
+
text: string;
|
|
158
|
+
title: string;
|
|
159
|
+
};
|
|
160
|
+
transform: {
|
|
161
|
+
text: string;
|
|
162
|
+
title: string;
|
|
163
|
+
};
|
|
164
|
+
sizes: {
|
|
165
|
+
small: string;
|
|
166
|
+
regular: string;
|
|
167
|
+
large: string;
|
|
168
|
+
};
|
|
169
|
+
spacing: string;
|
|
170
|
+
};
|
|
171
|
+
zIndex: {
|
|
172
|
+
boardSurface: number;
|
|
173
|
+
boardPlate: number;
|
|
174
|
+
boardBadge: number;
|
|
175
|
+
boardAbove: number;
|
|
176
|
+
animatedElements: number;
|
|
177
|
+
content: number;
|
|
178
|
+
overlay: number;
|
|
179
|
+
alert: number;
|
|
180
|
+
};
|
|
181
|
+
border: {
|
|
182
|
+
radius: string;
|
|
183
|
+
size: string;
|
|
184
|
+
};
|
|
185
|
+
animation: {
|
|
186
|
+
speed: {
|
|
187
|
+
fast: string;
|
|
188
|
+
normal: string;
|
|
189
|
+
slow: string;
|
|
190
|
+
pulse: string;
|
|
191
|
+
};
|
|
192
|
+
easing: {
|
|
193
|
+
standard: string;
|
|
194
|
+
inOut: string;
|
|
195
|
+
out: string;
|
|
196
|
+
linear: string;
|
|
197
|
+
spring: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
elements: {
|
|
201
|
+
header: {
|
|
202
|
+
height: string;
|
|
203
|
+
};
|
|
204
|
+
form: {
|
|
205
|
+
height: string;
|
|
206
|
+
minWidth: string;
|
|
207
|
+
};
|
|
208
|
+
icons: {
|
|
209
|
+
height: string;
|
|
210
|
+
width: string;
|
|
211
|
+
radius: string;
|
|
212
|
+
};
|
|
213
|
+
modal: {
|
|
214
|
+
width: string;
|
|
215
|
+
height: string;
|
|
216
|
+
};
|
|
217
|
+
sidebar: {
|
|
218
|
+
width: string;
|
|
219
|
+
collapsedWidth: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
offsets: {
|
|
223
|
+
betweenElements: string;
|
|
224
|
+
elementContent: string;
|
|
225
|
+
page: string;
|
|
226
|
+
section: string;
|
|
227
|
+
};
|
|
228
|
+
screens: {
|
|
229
|
+
mobile: {
|
|
230
|
+
device: string;
|
|
231
|
+
height: number;
|
|
232
|
+
width: number;
|
|
233
|
+
};
|
|
234
|
+
tablet: {
|
|
235
|
+
device: string;
|
|
236
|
+
height: number;
|
|
237
|
+
width: number;
|
|
238
|
+
};
|
|
239
|
+
desktop: {
|
|
240
|
+
device: string;
|
|
241
|
+
height: number;
|
|
242
|
+
width: number;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
effects: {
|
|
246
|
+
interaction: {
|
|
247
|
+
disabled: string;
|
|
248
|
+
hover: string;
|
|
249
|
+
active: string;
|
|
250
|
+
focus: string;
|
|
251
|
+
};
|
|
252
|
+
texture: string;
|
|
253
|
+
};
|
|
254
|
+
geometry: {
|
|
255
|
+
shape: string;
|
|
256
|
+
imprint: string;
|
|
257
|
+
};
|
|
258
|
+
variables: {
|
|
259
|
+
border: {
|
|
260
|
+
size: number;
|
|
261
|
+
radius: number;
|
|
262
|
+
};
|
|
263
|
+
header: {
|
|
264
|
+
height: {
|
|
265
|
+
mobile: number;
|
|
266
|
+
tablet: number;
|
|
267
|
+
desktop: number;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
sidebar: {
|
|
271
|
+
width: number;
|
|
272
|
+
};
|
|
273
|
+
font: {
|
|
274
|
+
weight: number;
|
|
275
|
+
lineHeight: number;
|
|
276
|
+
};
|
|
277
|
+
offsets: {
|
|
278
|
+
section: {
|
|
279
|
+
mobile: number;
|
|
280
|
+
tablet: number;
|
|
281
|
+
desktop: number;
|
|
282
|
+
};
|
|
283
|
+
betweenElements: {
|
|
284
|
+
mobile: number;
|
|
285
|
+
tablet: number;
|
|
286
|
+
desktop: number;
|
|
287
|
+
};
|
|
288
|
+
elementContent: {
|
|
289
|
+
mobile: number;
|
|
290
|
+
tablet: number;
|
|
291
|
+
desktop: number;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export default pairTheme;
|
|
297
|
+
//# sourceMappingURL=pair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../../../../themes/zones/pair.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EM,CAAC;AAE7B,eAAe,SAAS,CAAC"}
|