@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.
Files changed (81) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +771 -2
  3. package/dist/colors-0AY7L5dk.js +244 -0
  4. package/dist/index.js +129 -0
  5. package/dist/themes/colors.js +1 -0
  6. package/dist/themes-BJwXZ1XG.js +419 -0
  7. package/dist/themes.js +3 -0
  8. package/dist/types/GlobalStyles.d.ts +9 -0
  9. package/dist/types/GlobalStyles.d.ts.map +1 -0
  10. package/dist/types/ThemeProviderWrapper.d.ts +4 -0
  11. package/dist/types/ThemeProviderWrapper.d.ts.map +1 -0
  12. package/dist/types/helpers/font.d.ts +2 -0
  13. package/dist/types/helpers/font.d.ts.map +1 -0
  14. package/dist/types/helpers/fullWidth.d.ts +3 -0
  15. package/dist/types/helpers/fullWidth.d.ts.map +1 -0
  16. package/dist/types/helpers/index.d.ts +5 -0
  17. package/dist/types/helpers/index.d.ts.map +1 -0
  18. package/dist/types/helpers/offsets.d.ts +3 -0
  19. package/dist/types/helpers/offsets.d.ts.map +1 -0
  20. package/dist/types/helpers/spaceBetween.d.ts +3 -0
  21. package/dist/types/helpers/spaceBetween.d.ts.map +1 -0
  22. package/dist/types/index.d.ts +9 -0
  23. package/dist/types/index.d.ts.map +1 -0
  24. package/dist/types/theme-provider/styles.d.ts +19 -0
  25. package/dist/types/theme-provider/styles.d.ts.map +1 -0
  26. package/dist/types/themes/baseTheme.d.ts +166 -0
  27. package/dist/types/themes/baseTheme.d.ts.map +1 -0
  28. package/dist/types/themes/board.d.ts +287 -0
  29. package/dist/types/themes/board.d.ts.map +1 -0
  30. package/dist/types/themes/colors.d.ts +3 -0
  31. package/dist/types/themes/colors.d.ts.map +1 -0
  32. package/dist/types/themes/contract/defineTheme.d.ts +17 -0
  33. package/dist/types/themes/contract/defineTheme.d.ts.map +1 -0
  34. package/dist/types/themes/contract/index.d.ts +102 -0
  35. package/dist/types/themes/contract/index.d.ts.map +1 -0
  36. package/dist/types/themes/editor.d.ts +170 -0
  37. package/dist/types/themes/editor.d.ts.map +1 -0
  38. package/dist/types/themes/index.d.ts +12 -0
  39. package/dist/types/themes/index.d.ts.map +1 -0
  40. package/dist/types/themes/liquidGlass.d.ts +157 -0
  41. package/dist/types/themes/liquidGlass.d.ts.map +1 -0
  42. package/dist/types/themes/tokens/base/animation.d.ts +17 -0
  43. package/dist/types/themes/tokens/base/animation.d.ts.map +1 -0
  44. package/dist/types/themes/tokens/base/colors.d.ts +10 -0
  45. package/dist/types/themes/tokens/base/colors.d.ts.map +1 -0
  46. package/dist/types/themes/tokens/base/effects.d.ts +11 -0
  47. package/dist/types/themes/tokens/base/effects.d.ts.map +1 -0
  48. package/dist/types/themes/tokens/base/offsets.d.ts +8 -0
  49. package/dist/types/themes/tokens/base/offsets.d.ts.map +1 -0
  50. package/dist/types/themes/tokens/base/shadows.d.ts +7 -0
  51. package/dist/types/themes/tokens/base/shadows.d.ts.map +1 -0
  52. package/dist/types/themes/tokens/base/shape.d.ts +10 -0
  53. package/dist/types/themes/tokens/base/shape.d.ts.map +1 -0
  54. package/dist/types/themes/tokens/base/typography.d.ts +22 -0
  55. package/dist/types/themes/tokens/base/typography.d.ts.map +1 -0
  56. package/dist/types/themes/tokens/board.d.ts +298 -0
  57. package/dist/types/themes/tokens/board.d.ts.map +1 -0
  58. package/dist/types/themes/tokens/elements.d.ts +24 -0
  59. package/dist/types/themes/tokens/elements.d.ts.map +1 -0
  60. package/dist/types/themes/tokens/offsets.d.ts +20 -0
  61. package/dist/types/themes/tokens/offsets.d.ts.map +1 -0
  62. package/dist/types/themes/tokens/report.d.ts +241 -0
  63. package/dist/types/themes/tokens/report.d.ts.map +1 -0
  64. package/dist/types/themes/tokens/screens.d.ts +24 -0
  65. package/dist/types/themes/tokens/screens.d.ts.map +1 -0
  66. package/dist/types/themes/tokens/variables.d.ts +39 -0
  67. package/dist/types/themes/tokens/variables.d.ts.map +1 -0
  68. package/dist/types/themes/tokens/zIndexes.d.ts +13 -0
  69. package/dist/types/themes/tokens/zIndexes.d.ts.map +1 -0
  70. package/dist/types/themes/types/index.d.ts +8 -0
  71. package/dist/types/themes/types/index.d.ts.map +1 -0
  72. package/dist/types/themes/viking.d.ts +157 -0
  73. package/dist/types/themes/viking.d.ts.map +1 -0
  74. package/dist/types/themes/zones/pair.d.ts +297 -0
  75. package/dist/types/themes/zones/pair.d.ts.map +1 -0
  76. package/dist/types/themes/zones/report.d.ts +451 -0
  77. package/dist/types/themes/zones/report.d.ts.map +1 -0
  78. package/dist/types/types.d.ts +179 -0
  79. package/dist/types/types.d.ts.map +1 -0
  80. package/dist/types.js +0 -0
  81. package/package.json +325 -5
@@ -0,0 +1,287 @@
1
+ /**
2
+ * A ZONE theme for the code-diff BOARD situation (README §2): the surface a board
3
+ * sits on — its paper, the recessed rows/toolbar layer above it, the wash behind
4
+ * painted text ranges, the six semantic row keys. A component nests a
5
+ * `ThemeProvider` around the board zone; the subtree resolves against this theme.
6
+ *
7
+ * The palette is the board's dark-editor preset
8
+ * (`packages/sections/default/data-display/CodeDiff/styles/default.ts`) expressed
9
+ * through EXISTING contract fields — no new field, no new variable (README §7.1):
10
+ *
11
+ * | board preset | contract field | value |
12
+ * |--------------|-------------------------|------------------------------------------------|
13
+ * | `paper` | `colors.section` | `#1e1f22` (the surface the board sits on) |
14
+ * | `text` | `colors.sectionContent` | `#dfe1e5` |
15
+ * | `panel` | `colors.overlay` | `#2b2d30` (rows/toolbar sit ON paper → the layer above it) |
16
+ * | `paint` | `colors.highlighted` | `rgba(120,160,255,0.4)` (wash behind painted ranges) |
17
+ * | `shadow` | `shadows.content` | `0 1px 2px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.85)` |
18
+ * | `mono` | `font.family.{text,title}` | `'JetBrains Mono', 'Fira Code', ui-monospace, monospace` |
19
+ *
20
+ * CONTRAST RULE of the preset: every wash is a DARK saturated tint so the light glyph
21
+ * ink stays readable on it — `highlightedContent` is that light ink, never a dark one.
22
+ *
23
+ * The board IS text, so both font roles resolve to its monospace stack — there is no
24
+ * `code` family (README §5.5, §6). The stack is the board's real one (not bare
25
+ * `monospace`) for pixel parity; the rest is inherited from `baseTheme`.
26
+ *
27
+ * ## Status map — this zone's OWN vocabulary (README §3.4)
28
+ *
29
+ * `StatusPair` carries FOUR channels: two required — `background` ← preset `fill`
30
+ * (standing row wash + ribbon band), `content` ← preset `text` (caption ink) — and two
31
+ * OPTIONAL zone channels carried VERBATIM: `hot` (focused wash of the ONE chain under
32
+ * the pointer) ← preset `hot`, `paint` (wash behind a standing text mark) ← preset
33
+ * `paint`. Deriving them with `color-mix` was tried and rejected: the per-key alphas
34
+ * are hand-tuned and NOT derivable (best fit misses by up to ±0.165 alpha; oklab /
35
+ * nested-mix routes are non-exact or rejected by css-tree), so under the hard
36
+ * pixel-identical mandate they are CARRIED EXACTLY.
37
+ *
38
+ * ## Board chrome (edge / dim / faint / ribbon) — the zone's own status keys
39
+ *
40
+ * `edge` `#393b40`, `dim` `#a8adbd`, `faint` `#6f737a`, `ribbon` `#8a8f98` are not
41
+ * derivable either, so they become CHROME STATUS KEYS in this zone's map (§3.4 "zone
42
+ * themes carry their own subset" — the zone's vocabulary, not application meanings).
43
+ * Chrome is one ink, so `background === content`; `status` is an existing open map.
44
+ * ## Design tokens & zIndex — this zone's own values (zone theme DATA)
45
+ *
46
+ * Legal zone DATA (like `codeEditor`'s `font.family`), NOT new fields: a zone theme
47
+ * may override any existing token. Evidence: `font.sizes` regular 12px / small
48
+ * 10.5px / large 11px (`Line`; `Fold`, `Explanation`; `Bar`, `Typography`);
49
+ * `font.weight.title` 600 (`Text $header`, `CounterBadge`); `offsets.elementContent`
50
+ * 8px (row/plate/text padding), `betweenElements` 2px (`Above`/`InsideEnd` gap);
51
+ * `border.radius` 3px (`CounterBadge`/`SelectBox`/`IconButton`), `border.size` 1px
52
+ * (board borders are `1px solid`). Other sizes (badge 9.5px, select 9px, icon 10px)
53
+ * are NOT slots — B3b-2 derives them via `calc(small ± 1px)` or transient props.
54
+ * `zIndex`: the board's four raw layers (`surface` 1, `Plate` 2,
55
+ * `CounterBadge`/`SelectBox`/`InsideEnd` 3, `Above` 4) become named keys on top of
56
+ * the base set (zIndex is an OPEN `Record<string, number>`).
57
+ *
58
+ * ## Disabled interaction — the board's own fragment (README §4.3)
59
+ *
60
+ * `effects.interaction.disabled` is a ready CSS fragment the component only
61
+ * attaches (`&:disabled { ... }`), never invents. Base ships `opacity: 0.5; cursor:
62
+ * not-allowed`; the board's captured controls fade to `0.4` and keep the default
63
+ * cursor, so this zone overrides ONLY `disabled` (inheriting `hover`/`active`/
64
+ * `focus`). The captured `IconButton` toolbar (stage/undo, all four fixtures) is
65
+ * exactly opacity 0.4 cursor default, so parity is exact — one disabled look for the
66
+ * whole board, decided by the theme.
67
+ */
68
+ /**
69
+ * The board theme: the zone's data ({@link boardSurface}) with its name. The
70
+ * data lives in `tokens/board.ts` so the pair zone can inherit the board
71
+ * preset without spreading this theme object (README §2).
72
+ */
73
+ declare const codeBoard: {
74
+ zIndex: {
75
+ boardSurface: number;
76
+ boardPlate: number;
77
+ boardBadge: number;
78
+ boardAbove: number;
79
+ animatedElements: number;
80
+ content: number;
81
+ overlay: number;
82
+ alert: number;
83
+ };
84
+ border: {
85
+ radius: string;
86
+ size: string;
87
+ };
88
+ shadows: {
89
+ section: string;
90
+ notification: string;
91
+ content: string;
92
+ };
93
+ animation: {
94
+ speed: {
95
+ fast: string;
96
+ normal: string;
97
+ slow: string;
98
+ pulse: string;
99
+ };
100
+ easing: {
101
+ standard: string;
102
+ inOut: string;
103
+ out: string;
104
+ linear: string;
105
+ spring: string;
106
+ };
107
+ };
108
+ font: {
109
+ family: {
110
+ text: string;
111
+ title: string;
112
+ };
113
+ weight: {
114
+ text: string;
115
+ title: string;
116
+ };
117
+ transform: {
118
+ text: string;
119
+ title: string;
120
+ };
121
+ sizes: {
122
+ small: string;
123
+ regular: string;
124
+ large: string;
125
+ };
126
+ spacing: string;
127
+ };
128
+ elements: {
129
+ header: {
130
+ height: string;
131
+ };
132
+ form: {
133
+ height: string;
134
+ minWidth: string;
135
+ };
136
+ icons: {
137
+ height: string;
138
+ width: string;
139
+ radius: string;
140
+ };
141
+ modal: {
142
+ width: string;
143
+ height: string;
144
+ };
145
+ sidebar: {
146
+ width: string;
147
+ collapsedWidth: string;
148
+ };
149
+ };
150
+ offsets: {
151
+ betweenElements: string;
152
+ elementContent: string;
153
+ page: string;
154
+ section: string;
155
+ };
156
+ colors: {
157
+ section: string;
158
+ sectionContent: string;
159
+ overlay: string;
160
+ highlighted: string;
161
+ highlightedContent: string;
162
+ status: {
163
+ duplicate: {
164
+ background: string;
165
+ content: string;
166
+ hot: string;
167
+ paint: string;
168
+ };
169
+ unique: {
170
+ background: string;
171
+ content: string;
172
+ hot: string;
173
+ paint: string;
174
+ };
175
+ added: {
176
+ background: string;
177
+ content: string;
178
+ hot: string;
179
+ paint: string;
180
+ };
181
+ removed: {
182
+ background: string;
183
+ content: string;
184
+ hot: string;
185
+ paint: string;
186
+ };
187
+ changed: {
188
+ background: string;
189
+ content: string;
190
+ hot: string;
191
+ paint: string;
192
+ };
193
+ conflict: {
194
+ background: string;
195
+ content: string;
196
+ hot: string;
197
+ paint: string;
198
+ };
199
+ edge: {
200
+ background: string;
201
+ content: string;
202
+ };
203
+ dim: {
204
+ background: string;
205
+ content: string;
206
+ };
207
+ faint: {
208
+ background: string;
209
+ content: string;
210
+ };
211
+ ribbon: {
212
+ background: string;
213
+ content: string;
214
+ };
215
+ };
216
+ };
217
+ screens: {
218
+ mobile: {
219
+ device: string;
220
+ height: number;
221
+ width: number;
222
+ };
223
+ tablet: {
224
+ device: string;
225
+ height: number;
226
+ width: number;
227
+ };
228
+ desktop: {
229
+ device: string;
230
+ height: number;
231
+ width: number;
232
+ };
233
+ };
234
+ effects: {
235
+ interaction: {
236
+ disabled: string;
237
+ hover: string;
238
+ active: string;
239
+ focus: string;
240
+ };
241
+ texture: string;
242
+ };
243
+ geometry: {
244
+ shape: string;
245
+ imprint: string;
246
+ };
247
+ variables: {
248
+ border: {
249
+ size: number;
250
+ radius: number;
251
+ };
252
+ header: {
253
+ height: {
254
+ mobile: number;
255
+ tablet: number;
256
+ desktop: number;
257
+ };
258
+ };
259
+ sidebar: {
260
+ width: number;
261
+ };
262
+ font: {
263
+ weight: number;
264
+ lineHeight: number;
265
+ };
266
+ offsets: {
267
+ section: {
268
+ mobile: number;
269
+ tablet: number;
270
+ desktop: number;
271
+ };
272
+ betweenElements: {
273
+ mobile: number;
274
+ tablet: number;
275
+ desktop: number;
276
+ };
277
+ elementContent: {
278
+ mobile: number;
279
+ tablet: number;
280
+ desktop: number;
281
+ };
282
+ };
283
+ };
284
+ theme: string;
285
+ };
286
+ export default codeBoard;
287
+ //# sourceMappingURL=board.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"board.d.ts","sourceRoot":"","sources":["../../../themes/board.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH;;;;GAIG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGa,CAAC;AAE7B,eAAe,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as viking } from "./viking.js";
2
+ export { default as liquidGlass } from "./liquidGlass.js";
3
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../themes/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,oBAAiB;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,yBAAsB"}
@@ -0,0 +1,17 @@
1
+ import type { ThemeInterface } from "@md-code/styles/types";
2
+ /**
3
+ * A theme is inert data, but it is written as a call so a bundler can drop it:
4
+ * every theme module writes its literal inside a factory: a `@__PURE__`-marked
5
+ * `defineTheme(() => ({ … }))`. A consumer that imports one theme then drops
6
+ * the unused theme's call together with the token tables its body closes over.
7
+ * The factory argument is what makes that work — the body is not computed until
8
+ * the (pure, annotation-carrying) call runs, so nothing is evaluated eagerly at
9
+ * module level. Passing the theme object itself instead would compute every
10
+ * spread before the call, and a bundler keeps those module-level effects,
11
+ * dragging foreign tokens into the consumer's bundle.
12
+ *
13
+ * The body can be written in one line; it is written out because a helper that
14
+ * only forwards to another function is a re-export, not a function.
15
+ */
16
+ export declare const defineTheme: <T extends ThemeInterface>(make: () => T) => T;
17
+ //# sourceMappingURL=defineTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineTheme.d.ts","sourceRoot":"","sources":["../../../../themes/contract/defineTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,MAAM,MAAM,CAAC,KAAG,CAIrE,CAAC"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * The contract's VALUE GROUPS: the shapes of `ThemeInterface.variables/screens/
3
+ * offsets/elements` — the fields that carry a theme's own numbers and the
4
+ * complete CSS values derived from them.
5
+ *
6
+ * They live next to the themes, not in `types.ts`, because they are what a
7
+ * THEME fills in: `types.ts` says which groups the contract has, this module
8
+ * says what each group holds (README §5.5).
9
+ */
10
+ /**
11
+ * Numeric sources for the values the root stylesheet writes into CSS
12
+ * (`packages/styles/theme-provider/styles.ts`, `GlobalStyles.ts`): the provider
13
+ * appends the unit, so a stylesheet never carries a bare number of its own
14
+ * (README §1.3, §5.5).
15
+ */
16
+ export interface ThemeVariables {
17
+ border: {
18
+ radius: number;
19
+ size: number;
20
+ };
21
+ header: {
22
+ height: {
23
+ mobile: number;
24
+ tablet: number;
25
+ desktop: number;
26
+ };
27
+ };
28
+ /** Numeric source of `--sidebar-width`. */
29
+ sidebar: {
30
+ width: number;
31
+ };
32
+ /** The document's base typography: `font-weight`/`line-height` of `html, body`. */
33
+ font: {
34
+ weight: number;
35
+ lineHeight: number;
36
+ };
37
+ offsets: {
38
+ section: {
39
+ mobile: number;
40
+ tablet: number;
41
+ desktop: number;
42
+ };
43
+ betweenElements: {
44
+ mobile: number;
45
+ tablet: number;
46
+ desktop: number;
47
+ };
48
+ elementContent: {
49
+ mobile: number;
50
+ tablet: number;
51
+ desktop: number;
52
+ };
53
+ };
54
+ }
55
+ /** The device breakpoints (media queries) a theme is designed against. */
56
+ export interface ThemeScreens {
57
+ mobile: {
58
+ device: string;
59
+ height: number;
60
+ width: number;
61
+ };
62
+ tablet: {
63
+ device: string;
64
+ height: number;
65
+ width: number;
66
+ };
67
+ desktop: {
68
+ device: string;
69
+ height: number;
70
+ width: number;
71
+ };
72
+ }
73
+ /** The rhythm (README §1.2): COMPLETE CSS lengths, so a component writes no suffix. */
74
+ export interface ThemeOffsets {
75
+ page: string;
76
+ section: string;
77
+ betweenElements: string;
78
+ elementContent: string;
79
+ }
80
+ /** The named elements a theme styles once; each is a COMPLETE CSS length. */
81
+ export interface ThemeElements {
82
+ header: {
83
+ height: string;
84
+ };
85
+ form: {
86
+ height: string;
87
+ minWidth: string;
88
+ };
89
+ icons: {
90
+ height: string;
91
+ width: string;
92
+ radius: string;
93
+ };
94
+ modal: {
95
+ width: string;
96
+ height: string;
97
+ };
98
+ sidebar: {
99
+ width: string;
100
+ };
101
+ }
102
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../themes/contract/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QACP,MAAM,EAAE;YACP,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;SAChB,CAAC;KACF,CAAC;IACF,2CAA2C;IAC3C,OAAO,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,mFAAmF;IACnF,IAAI,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,OAAO,EAAE;QACR,OAAO,EAAE;YACR,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,eAAe,EAAE;YAChB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,cAAc,EAAE;YACf,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,MAAM,CAAC;SAChB,CAAC;KACF,CAAC;CACF;AAED,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAG5B,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D;AAED,uFAAuF;AACvF,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACvB;AAED,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,KAAK,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;CACF"}
@@ -0,0 +1,170 @@
1
+ /**
2
+ * A ZONE theme for the code-editing situation (README §2): a complete design
3
+ * context for a code surface, not a colour preference. A component nests a
4
+ * `ThemeProvider` around its code zone and the whole subtree resolves its
5
+ * contract fields against this theme.
6
+ *
7
+ * The code surface IS text, so both font roles resolve to monospace — the
8
+ * contract has no `code` family anymore, a code zone is exactly what a zone
9
+ * theme is for (README §5.5, §6). It is neutral: everything except the
10
+ * typography is inherited from the abstract `baseTheme`, so no new contract
11
+ * fields are invented here.
12
+ */
13
+ declare const codeEditor: {
14
+ theme: string;
15
+ zIndex: {
16
+ animatedElements: number;
17
+ content: number;
18
+ overlay: number;
19
+ alert: number;
20
+ };
21
+ border: {
22
+ radius: string;
23
+ size: string;
24
+ };
25
+ shadows: {
26
+ section: string;
27
+ notification: string;
28
+ content: string;
29
+ };
30
+ animation: {
31
+ speed: {
32
+ fast: string;
33
+ normal: string;
34
+ slow: string;
35
+ pulse: string;
36
+ };
37
+ easing: {
38
+ standard: string;
39
+ inOut: string;
40
+ out: string;
41
+ linear: string;
42
+ spring: string;
43
+ };
44
+ };
45
+ font: {
46
+ family: {
47
+ text: string;
48
+ title: string;
49
+ };
50
+ weight: {
51
+ text: string;
52
+ title: string;
53
+ };
54
+ transform: {
55
+ text: string;
56
+ title: string;
57
+ };
58
+ sizes: {
59
+ small: string;
60
+ regular: string;
61
+ large: string;
62
+ };
63
+ spacing: string;
64
+ };
65
+ elements: {
66
+ header: {
67
+ height: string;
68
+ };
69
+ form: {
70
+ height: string;
71
+ minWidth: string;
72
+ };
73
+ icons: {
74
+ height: string;
75
+ width: string;
76
+ radius: string;
77
+ };
78
+ modal: {
79
+ width: string;
80
+ height: string;
81
+ };
82
+ sidebar: {
83
+ width: string;
84
+ collapsedWidth: string;
85
+ };
86
+ };
87
+ offsets: {
88
+ page: string;
89
+ section: string;
90
+ betweenElements: string;
91
+ elementContent: string;
92
+ };
93
+ colors: {
94
+ section: string;
95
+ sectionContent: string;
96
+ overlay: string;
97
+ highlighted: string;
98
+ highlightedContent: string;
99
+ status: {};
100
+ };
101
+ screens: {
102
+ mobile: {
103
+ device: string;
104
+ height: number;
105
+ width: number;
106
+ };
107
+ tablet: {
108
+ device: string;
109
+ height: number;
110
+ width: number;
111
+ };
112
+ desktop: {
113
+ device: string;
114
+ height: number;
115
+ width: number;
116
+ };
117
+ };
118
+ effects: {
119
+ texture: string;
120
+ interaction: {
121
+ hover: string;
122
+ active: string;
123
+ focus: string;
124
+ disabled: string;
125
+ };
126
+ };
127
+ geometry: {
128
+ shape: string;
129
+ imprint: string;
130
+ };
131
+ variables: {
132
+ border: {
133
+ size: number;
134
+ radius: number;
135
+ };
136
+ header: {
137
+ height: {
138
+ mobile: number;
139
+ tablet: number;
140
+ desktop: number;
141
+ };
142
+ };
143
+ sidebar: {
144
+ width: number;
145
+ };
146
+ font: {
147
+ weight: number;
148
+ lineHeight: number;
149
+ };
150
+ offsets: {
151
+ section: {
152
+ mobile: number;
153
+ tablet: number;
154
+ desktop: number;
155
+ };
156
+ betweenElements: {
157
+ mobile: number;
158
+ tablet: number;
159
+ desktop: number;
160
+ };
161
+ elementContent: {
162
+ mobile: number;
163
+ tablet: number;
164
+ desktop: number;
165
+ };
166
+ };
167
+ };
168
+ };
169
+ export default codeEditor;
170
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../themes/editor.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BY,CAAC;AAE7B,eAAe,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * from "./colors.js";
2
+ export { default as baseTheme, getZIndex } from "./baseTheme.js";
3
+ export { devices } from "./tokens/screens.js";
4
+ export { default as viking } from "./viking.js";
5
+ export { default as liquidGlass } from "./liquidGlass.js";
6
+ export { default as codeEditor } from "./editor.js";
7
+ export { default as codeBoard } from "./board.js";
8
+ export { default as pairTheme } from "./zones/pair.js";
9
+ export { reportTheme, reportPanelTheme } from "./zones/report.js";
10
+ export { default as zIndexes } from "./tokens/zIndexes.js";
11
+ export type { ZIndexName } from "./tokens/zIndexes.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../themes/index.ts"],"names":[],"mappings":"AAAA,4BAAyB;AAEzB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,SAAS,EAAE,uBAAoB;AAC9D,OAAO,EAAE,OAAO,EAAE,4BAAyB;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,oBAAiB;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,yBAAsB;AACvD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,oBAAiB;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,mBAAgB;AAC/C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,wBAAqB;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAuB;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,6BAA0B;AACxD,YAAY,EAAE,UAAU,EAAE,6BAA0B"}