@devosurf/tesser-brand 0.1.0-alpha.0

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 ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @devosurf/tesser-brand
2
+
3
+ The Tesser design system as code. One blue, used on purpose: ink on paper with a
4
+ single cobalt accent, Inter anchored by Geist Mono, a 12 column grid on a 4px
5
+ rhythm, square corners, two rule weights, no shadows.
6
+
7
+ The TypeScript source under `src/` is the source of truth. The static files at the
8
+ package root are generated from it.
9
+
10
+ ## Consumers
11
+
12
+ Server-rendered pages (the connect handoff) inline the stylesheet:
13
+
14
+ ```ts
15
+ import { inlineCss, markSvg } from "@devosurf/tesser-brand";
16
+
17
+ const html = `<style>${inlineCss()}</style> ... ${markSvg({ size: 22 })}`;
18
+ ```
19
+
20
+ Static sites (the landing page) import the files directly:
21
+
22
+ ```css
23
+ @import "@devosurf/tesser-brand/tokens.css"; /* custom properties only */
24
+ @import "@devosurf/tesser-brand/ui.css"; /* t- prefixed primitives built on them */
25
+ ```
26
+
27
+ Programmatic consumers (CLI output, tests) read the raw values:
28
+
29
+ ```ts
30
+ import { color, text, space } from "@devosurf/tesser-brand";
31
+
32
+ color.cobalt; // #1B45E0
33
+ text.h1; // { family: "sans", weight: 800, size: 58, line: 60, ... }
34
+ ```
35
+
36
+ ## Tokens
37
+
38
+ | Group | Tokens |
39
+ | --- | --- |
40
+ | color | `cobalt`, `cobaltPress`, `cobaltWash`, `ink`, `paper`, `grey700/500/400/200`, `hairline`, `positive`, `warning`, `danger` |
41
+ | font | `sans` (Inter), `mono` (Geist Mono) |
42
+ | text | `display`, `h1`, `h2`, `h3`, `bodyLg`, `body`, `bodySm`, `label`, `mono` |
43
+ | space | 4, 8, 12, 16, 24, 32, 48, 64, 80, 112 |
44
+ | grid | 12 columns, 64px margin, 24px gutter, 1440px max |
45
+ | rule | `strong` (1.5px ink), `hairline` (1px ink at 16%) |
46
+ | radius | `none` (square by default) |
47
+
48
+ Fonts are referenced by stack with system fallbacks; pages that should render the
49
+ canonical faces self-host Inter and Geist Mono and declare the `@font-face` rules
50
+ themselves. Product pages served by the instance stay dependency-free on purpose.
51
+
52
+ ## Editing
53
+
54
+ Change `src/tokens.ts`, `src/ui.ts`, or `src/mark.ts`, then regenerate:
55
+
56
+ ```sh
57
+ pnpm --filter @devosurf/tesser-brand emit
58
+ ```
59
+
60
+ `pnpm test` fails if the generated files drift from the source.
package/mark.svg ADDED
@@ -0,0 +1 @@
1
+ <svg width="48" height="48" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Tesser"><rect x="12" y="12" width="76" height="76" stroke="#1B45E0" stroke-width="6"/><rect x="36" y="36" width="28" height="28" stroke="#111111" stroke-width="6"/><line x1="12" y1="12" x2="36" y2="36" stroke="#111111" stroke-width="5"/><line x1="88" y1="12" x2="64" y2="36" stroke="#111111" stroke-width="5"/><line x1="12" y1="88" x2="36" y2="64" stroke="#111111" stroke-width="5"/><line x1="88" y1="88" x2="64" y2="64" stroke="#111111" stroke-width="5"/></svg>
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@devosurf/tesser-brand",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "Tesser design tokens, UI primitive styles, and the mark. One blue, used on purpose.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": "./src/index.ts",
9
+ "./tokens.css": "./tokens.css",
10
+ "./ui.css": "./ui.css",
11
+ "./mark.svg": "./mark.svg"
12
+ },
13
+ "main": "./src/index.ts",
14
+ "types": "./src/index.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "files": [
19
+ "src",
20
+ "tokens.css",
21
+ "ui.css",
22
+ "mark.svg",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "scripts": {
27
+ "emit": "tsx scripts/emit.ts",
28
+ "emit:check": "tsx scripts/emit.ts --check"
29
+ }
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,15 @@
1
+ // @devosurf/tesser-brand — the Tesser design system as code.
2
+ // Tokens (color, type, grid, spacing), the UI primitive layer, and the mark.
3
+ // Static consumers import tokens.css / ui.css; TypeScript consumers import here.
4
+
5
+ export { color, font, text, space, grid, rule, radius, tokens, tokensCss, type TypeStep } from "./tokens.js";
6
+ export { uiCss } from "./ui.js";
7
+ export { markSvg, type MarkOptions, type MarkVariant } from "./mark.js";
8
+
9
+ import { tokensCss } from "./tokens.js";
10
+ import { uiCss } from "./ui.js";
11
+
12
+ /** The full stylesheet (tokens + primitives) for inlining into a server-rendered page. */
13
+ export function inlineCss(): string {
14
+ return `${tokensCss()}\n${uiCss}`;
15
+ }
package/src/mark.ts ADDED
@@ -0,0 +1,56 @@
1
+ // The mark (Paper design system page 01): a tesseract — a square nested inside a
2
+ // square, joined at the corners. Cobalt outer, ink inner. It sits upright, flat,
3
+ // always square. Below 20px the connectors drop and only the two squares remain.
4
+
5
+ import { color } from "./tokens.js";
6
+
7
+ export type MarkVariant =
8
+ /** Cobalt outer, ink inner. The primary mark on paper. */
9
+ | "brand"
10
+ /** One color, ink. Print, stamps. */
11
+ | "mono"
12
+ /** On ink. Cobalt outer, white inner. */
13
+ | "reversed"
14
+ /** On cobalt. All white. */
15
+ | "on-accent";
16
+
17
+ export interface MarkOptions {
18
+ /** Rendered size in px. Minimum 16. */
19
+ size?: number;
20
+ variant?: MarkVariant;
21
+ /** Accessible name. Omitted: the mark is decorative (aria-hidden). */
22
+ title?: string;
23
+ }
24
+
25
+ const PALETTE: Record<MarkVariant, { outer: string; inner: string }> = {
26
+ brand: { outer: color.cobalt, inner: color.ink },
27
+ mono: { outer: color.ink, inner: color.ink },
28
+ reversed: { outer: color.cobalt, inner: color.paper },
29
+ "on-accent": { outer: color.paper, inner: color.paper },
30
+ };
31
+
32
+ const escAttr = (s: string): string =>
33
+ s.replace(/[&<>"]/g, (ch) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[ch]!);
34
+
35
+ /** The mark as an inline SVG string. */
36
+ export function markSvg(options: MarkOptions = {}): string {
37
+ const { size = 22, variant = "brand", title } = options;
38
+ const { outer, inner } = PALETTE[variant];
39
+ // Outer square frames the bounding box; inner square is two fifths, centered;
40
+ // four connectors join matching corners. Stroke ~ one fortieth of the width.
41
+ const connectors =
42
+ size >= 20
43
+ ? `<line x1="12" y1="12" x2="36" y2="36" stroke="${inner}" stroke-width="5"/>` +
44
+ `<line x1="88" y1="12" x2="64" y2="36" stroke="${inner}" stroke-width="5"/>` +
45
+ `<line x1="12" y1="88" x2="36" y2="64" stroke="${inner}" stroke-width="5"/>` +
46
+ `<line x1="88" y1="88" x2="64" y2="64" stroke="${inner}" stroke-width="5"/>`
47
+ : "";
48
+ const a11y = title ? `role="img" aria-label="${escAttr(title)}"` : `aria-hidden="true"`;
49
+ return (
50
+ `<svg width="${size}" height="${size}" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" ${a11y}>` +
51
+ `<rect x="12" y="12" width="76" height="76" stroke="${outer}" stroke-width="6"/>` +
52
+ `<rect x="36" y="36" width="28" height="28" stroke="${inner}" stroke-width="6"/>` +
53
+ connectors +
54
+ `</svg>`
55
+ );
56
+ }
package/src/tokens.ts ADDED
@@ -0,0 +1,121 @@
1
+ // Tesser design tokens — the single source of truth, transcribed from the Paper
2
+ // design system (pages 01-04: The Mark, Color, Typography, Grid & Spacing).
3
+ // tokens.css is generated from this file: `pnpm --filter @devosurf/tesser-brand emit`.
4
+
5
+ /** Core, neutral, and functional colors. One blue, used on purpose. */
6
+ export const color = {
7
+ /** The single brand accent. Links, indices, focus, primary action. */
8
+ cobalt: "#1B45E0",
9
+ /** Active / pressed cobalt. */
10
+ cobaltPress: "#1438B0",
11
+ /** Subtle fills, grid backgrounds. */
12
+ cobaltWash: "#EEF1FD",
13
+ /** Primary text, rules, and primary buttons. The structural color. */
14
+ ink: "#111111",
15
+ /** The page and every surface. White space is part of the system. */
16
+ paper: "#FFFFFF",
17
+ /** Body strong. */
18
+ grey700: "#444444",
19
+ /** Muted text. */
20
+ grey500: "#666666",
21
+ /** Captions. */
22
+ grey400: "#8A8A8A",
23
+ /** Borders. */
24
+ grey200: "#E6E6E6",
25
+ /** Dividers: ink at 16%. */
26
+ hairline: "rgba(17, 17, 17, 0.16)",
27
+ /** Run status: live, passing. Never a brand accent. */
28
+ positive: "#1F7A4D",
29
+ /** Run status: halted, pending. */
30
+ warning: "#B7791F",
31
+ /** Run status: failed, rolled back. */
32
+ danger: "#C0392B",
33
+ } as const;
34
+
35
+ /** Inter carries the system; Geist Mono carries code and machine values. */
36
+ export const font = {
37
+ sans: `"Inter", system-ui, -apple-system, "Segoe UI", sans-serif`,
38
+ mono: `"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace`,
39
+ } as const;
40
+
41
+ export interface TypeStep {
42
+ family: keyof typeof font;
43
+ weight: number;
44
+ /** px */
45
+ size: number;
46
+ /** px */
47
+ line: number;
48
+ /** em */
49
+ tracking: number;
50
+ uppercase?: boolean;
51
+ }
52
+
53
+ /** The type scale. Scale and weight do the work that color does not. */
54
+ export const text = {
55
+ /** Hero statements. */
56
+ display: { family: "sans", weight: 800, size: 80, line: 80, tracking: -0.04 },
57
+ /** Page titles. */
58
+ h1: { family: "sans", weight: 800, size: 58, line: 60, tracking: -0.035 },
59
+ /** Section titles. */
60
+ h2: { family: "sans", weight: 700, size: 38, line: 44, tracking: -0.03 },
61
+ /** Card and subsection titles. */
62
+ h3: { family: "sans", weight: 700, size: 24, line: 30, tracking: -0.02 },
63
+ /** Lead paragraphs. */
64
+ bodyLg: { family: "sans", weight: 400, size: 19, line: 30, tracking: 0 },
65
+ /** Default body. */
66
+ body: { family: "sans", weight: 400, size: 17, line: 26, tracking: 0 },
67
+ /** Secondary and captions. */
68
+ bodySm: { family: "sans", weight: 400, size: 15, line: 23, tracking: 0 },
69
+ /** Eyebrows and tracked labels. */
70
+ label: { family: "sans", weight: 600, size: 12, line: 16, tracking: 0.14, uppercase: true },
71
+ /** Code and machine values. */
72
+ mono: { family: "mono", weight: 400, size: 14, line: 22, tracking: 0 },
73
+ } as const satisfies Record<string, TypeStep>;
74
+
75
+ /** Base unit 4px. Every gap and pad is a multiple. */
76
+ export const space = [4, 8, 12, 16, 24, 32, 48, 64, 80, 112] as const;
77
+
78
+ /** Every layout sits on a 12 column grid with a 64px margin. */
79
+ export const grid = {
80
+ columns: 12,
81
+ /** px, page edge to content */
82
+ margin: 64,
83
+ /** px, space between columns */
84
+ gutter: 24,
85
+ /** px, canvas width */
86
+ max: 1440,
87
+ } as const;
88
+
89
+ /** Two rules. 1.5px ink separates bands; 1px ink at 16% separates rows. Nothing heavier. */
90
+ export const rule = {
91
+ strong: `1.5px solid ${color.ink}`,
92
+ hairline: `1px solid ${color.hairline}`,
93
+ } as const;
94
+
95
+ /** Square by default. The system is built from rules and the grid, not rounded shapes. */
96
+ export const radius = { none: "0px" } as const;
97
+
98
+ export const tokens = { color, font, text, space, grid, rule, radius } as const;
99
+
100
+ const kebab = (s: string): string => s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([a-z]{2,})([0-9]+)$/, "$1-$2").toLowerCase();
101
+
102
+ /** The :root custom-property block. tokens.css is exactly this string. */
103
+ export function tokensCss(): string {
104
+ const lines: string[] = [];
105
+ for (const [name, value] of Object.entries(color)) lines.push(` --color-${kebab(name)}: ${value};`);
106
+ for (const [name, value] of Object.entries(font)) lines.push(` --font-${name}: ${value};`);
107
+ for (const [name, step] of Object.entries(text) as Array<[string, TypeStep]>) {
108
+ const n = kebab(name);
109
+ lines.push(
110
+ ` --text-${n}: ${step.weight} ${step.size}px/${step.line}px var(--font-${step.family});`,
111
+ ` --text-${n}-tracking: ${step.tracking}em;`,
112
+ );
113
+ }
114
+ for (const step of space) lines.push(` --space-${step}: ${step}px;`);
115
+ for (const [name, value] of Object.entries(grid)) {
116
+ lines.push(` --grid-${name}: ${typeof value === "number" && name !== "columns" ? `${value}px` : value};`);
117
+ }
118
+ for (const [name, value] of Object.entries(rule)) lines.push(` --rule-${name}: ${value};`);
119
+ lines.push(` --radius-none: ${radius.none};`);
120
+ return `:root {\n${lines.join("\n")}\n}\n`;
121
+ }
package/src/ui.ts ADDED
@@ -0,0 +1,231 @@
1
+ // The UI primitive layer — a small set of classes assembled from the tokens
2
+ // (Paper design system page 05: Components). Square corners, ink rules, one blue.
3
+ // ui.css is generated from this file: `pnpm --filter @devosurf/tesser-brand emit`.
4
+ //
5
+ // Class prefix `t-`. Every value is a token reference; the two literals allowed
6
+ // are pure black (the documented hover state) and the 4px progress bar.
7
+
8
+ export const uiCss = `/* base ------------------------------------------------------------------ */
9
+ .t-page {
10
+ margin: 0;
11
+ background: var(--color-paper);
12
+ color: var(--color-ink);
13
+ font: var(--text-body-sm);
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ }
17
+ .t-main {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ padding: var(--space-64) var(--space-24) var(--space-80);
22
+ }
23
+ .t-col {
24
+ width: 100%;
25
+ max-width: 720px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ }
29
+ :is(.t-page) :focus-visible {
30
+ outline: 2px solid var(--color-cobalt);
31
+ outline-offset: 2px;
32
+ }
33
+
34
+ /* type ------------------------------------------------------------------ */
35
+ .t-display { font: var(--text-display); letter-spacing: var(--text-display-tracking); margin: 0; }
36
+ .t-h1 { font: var(--text-h1); letter-spacing: var(--text-h1-tracking); margin: 0; }
37
+ .t-h2 { font: var(--text-h2); letter-spacing: var(--text-h2-tracking); margin: 0; }
38
+ .t-h3 { font: var(--text-h3); letter-spacing: var(--text-h3-tracking); margin: 0; }
39
+ .t-body-lg { font: var(--text-body-lg); margin: 0; }
40
+ .t-body { font: var(--text-body); margin: 0; }
41
+ .t-body-sm { font: var(--text-body-sm); margin: 0; }
42
+ .t-label {
43
+ font: var(--text-label);
44
+ letter-spacing: var(--text-label-tracking);
45
+ text-transform: uppercase;
46
+ margin: 0;
47
+ }
48
+ .t-mono { font: var(--text-mono); margin: 0; }
49
+ /* Product page title: h2 scale carrying h1 weight, as set on the connect comp. */
50
+ .t-page-title { font: 800 38px/44px var(--font-sans); letter-spacing: -0.03em; margin: 0; }
51
+ .t-lead { font: var(--text-body); color: var(--color-grey-500); margin: var(--space-16) 0 0; }
52
+
53
+ /* top bar ----------------------------------------------------------------- */
54
+ .t-bar {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+ gap: var(--space-16);
59
+ padding: var(--space-16) var(--space-32);
60
+ border-bottom: 1px solid var(--color-grey-200);
61
+ background: var(--color-paper);
62
+ }
63
+ .t-bar--strong { border-bottom: var(--rule-strong); }
64
+ .t-brand {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: var(--space-8);
68
+ color: inherit;
69
+ text-decoration: none;
70
+ }
71
+ .t-brand svg { flex-shrink: 0; display: block; }
72
+ .t-wordmark { font: 700 18px/22px var(--font-sans); letter-spacing: -0.02em; }
73
+ .t-bar-meta { display: flex; align-items: center; gap: var(--space-12); }
74
+ .t-host { font: 400 13px/16px var(--font-mono); color: var(--color-grey-400); }
75
+
76
+ /* chips, dots, status ------------------------------------------------------ */
77
+ .t-chip {
78
+ display: inline-flex;
79
+ align-items: center;
80
+ gap: var(--space-8);
81
+ padding: var(--space-4) var(--space-12);
82
+ border: 1px solid var(--color-grey-200);
83
+ font: 400 12.5px/16px var(--font-mono);
84
+ color: var(--color-grey-700);
85
+ white-space: nowrap;
86
+ }
87
+ .t-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--color-grey-400); }
88
+ .t-dot--positive { background: var(--color-positive); }
89
+ .t-dot--warning { background: var(--color-warning); }
90
+ .t-dot--danger { background: var(--color-danger); }
91
+ .t-status { display: inline-flex; align-items: center; gap: var(--space-8); font: 400 13.5px/18px var(--font-sans); white-space: nowrap; }
92
+ .t-status--pending { color: var(--color-warning); }
93
+ .t-status--ready { color: var(--color-grey-500); }
94
+ .t-status--danger { color: var(--color-danger); }
95
+
96
+ /* progress ----------------------------------------------------------------- */
97
+ .t-progress { display: flex; flex-direction: column; gap: var(--space-8); }
98
+ .t-progress-meta { display: flex; align-items: center; justify-content: space-between; font: 400 13px/16px var(--font-mono); color: var(--color-ink); }
99
+ .t-progress-meta .is-remaining { color: var(--color-grey-400); }
100
+ .t-progress-track { height: 4px; background: var(--color-grey-200); }
101
+ .t-progress-fill { height: 4px; background: var(--color-cobalt); }
102
+
103
+ /* cards ---------------------------------------------------------------- */
104
+ .t-stack { display: flex; flex-direction: column; gap: var(--space-16); }
105
+ .t-card { border: 1px solid var(--color-grey-200); background: var(--color-paper); }
106
+ .t-card-head { display: flex; align-items: center; gap: var(--space-16); padding: var(--space-16) var(--space-24); }
107
+ .t-card-band {
108
+ display: flex;
109
+ align-items: center;
110
+ gap: var(--space-16);
111
+ padding: var(--space-12) var(--space-24);
112
+ border-top: 1px solid var(--color-grey-200);
113
+ }
114
+ .t-card-band--stacked { flex-direction: column; align-items: stretch; }
115
+ .t-tile {
116
+ width: 36px;
117
+ height: 36px;
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ flex-shrink: 0;
122
+ border: 1px solid var(--color-grey-200);
123
+ font: 600 15px/18px var(--font-mono);
124
+ color: var(--color-ink);
125
+ }
126
+ .t-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
127
+ .t-card-title-row { display: flex; align-items: center; gap: var(--space-8); }
128
+ .t-card-title { font: 600 16px/20px var(--font-sans); }
129
+ .t-card-title--mono { font: 600 15px/18px var(--font-mono); }
130
+ .t-kind { font: 400 13px/16px var(--font-sans); color: var(--color-grey-400); }
131
+ .t-meta { font: 400 13px/16px var(--font-sans); color: var(--color-grey-400); overflow-wrap: anywhere; }
132
+ .t-scopes { font: 400 12.5px/16px var(--font-mono); color: var(--color-grey-400); overflow-wrap: anywhere; }
133
+
134
+ /* buttons -------------------------------------------------------------- */
135
+ .t-btn {
136
+ display: inline-flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ gap: var(--space-8);
140
+ border: 0;
141
+ border-radius: var(--radius-none);
142
+ padding: var(--space-12) 20px;
143
+ font: 600 14.5px/18px var(--font-sans);
144
+ cursor: pointer;
145
+ text-decoration: none;
146
+ white-space: nowrap;
147
+ }
148
+ .t-btn svg { flex-shrink: 0; display: block; }
149
+ .t-btn--primary { background: var(--color-ink); color: var(--color-paper); }
150
+ .t-btn--primary:hover { background: #000000; }
151
+ .t-btn--accent { background: var(--color-cobalt); color: var(--color-paper); }
152
+ .t-btn--accent:hover, .t-btn--accent:active { background: var(--color-cobalt-press); }
153
+ .t-btn--secondary { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); padding: 11px 19px; }
154
+ .t-btn--secondary:hover { background: var(--color-cobalt-wash); }
155
+ .t-btn:disabled { background: var(--color-grey-200); color: var(--color-grey-400); cursor: not-allowed; }
156
+ .t-link { color: var(--color-cobalt); text-decoration: underline; text-underline-offset: 3px; }
157
+ .t-link:hover { color: var(--color-cobalt-press); }
158
+
159
+ /* forms ----------------------------------------------------------------- */
160
+ .t-field { display: flex; flex-direction: column; gap: var(--space-4); flex: 1 1 auto; min-width: 0; }
161
+ .t-field-label {
162
+ font: var(--text-label);
163
+ letter-spacing: var(--text-label-tracking);
164
+ text-transform: uppercase;
165
+ color: var(--color-grey-500);
166
+ }
167
+ .t-input {
168
+ width: 100%;
169
+ box-sizing: border-box;
170
+ border: 1px solid var(--color-grey-200);
171
+ border-radius: var(--radius-none);
172
+ background: var(--color-paper);
173
+ padding: var(--space-12) var(--space-16);
174
+ font: 400 14px/18px var(--font-mono);
175
+ color: var(--color-ink);
176
+ }
177
+ .t-input::placeholder { color: var(--color-grey-400); }
178
+ .t-input:focus-visible { outline: 2px solid var(--color-cobalt); outline-offset: -1px; }
179
+ .t-form-row { display: flex; align-items: center; gap: var(--space-12); flex: 1 1 auto; }
180
+ .t-form-col { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-12); flex: 1 1 auto; min-width: 0; }
181
+ .t-form-col .t-btn { align-self: flex-end; }
182
+
183
+ /* notices, code, footnote ---------------------------------------------- */
184
+ .t-notice {
185
+ display: flex;
186
+ align-items: center;
187
+ gap: var(--space-8);
188
+ padding: var(--space-12) var(--space-16);
189
+ border: 1px solid var(--color-grey-200);
190
+ font: 400 13.5px/18px var(--font-sans);
191
+ color: var(--color-grey-700);
192
+ }
193
+ .t-pre {
194
+ margin: 0;
195
+ padding: var(--space-16);
196
+ background: var(--color-cobalt-wash);
197
+ font: 400 13px/20px var(--font-mono);
198
+ overflow: auto;
199
+ white-space: pre-wrap;
200
+ overflow-wrap: anywhere;
201
+ }
202
+ .t-code { font-family: var(--font-mono); font-size: 0.92em; background: var(--color-cobalt-wash); padding: 1px 5px; }
203
+ .t-footnote {
204
+ display: flex;
205
+ align-items: center;
206
+ gap: var(--space-12);
207
+ padding-top: var(--space-24);
208
+ font: 400 13.5px/18px var(--font-sans);
209
+ color: var(--color-grey-400);
210
+ }
211
+ .t-footnote svg { flex-shrink: 0; display: block; }
212
+
213
+ /* utilities -------------------------------------------------------------- */
214
+ .t-right { margin-left: auto; }
215
+ .t-grow { flex: 1 1 auto; min-width: 0; }
216
+ .t-gap-top-16 { margin-top: var(--space-16); }
217
+ .t-gap-top-24 { margin-top: var(--space-24); }
218
+ .t-gap-top-32 { margin-top: var(--space-32); }
219
+ .t-gap-top-48 { margin-top: var(--space-48); }
220
+
221
+ /* small screens ----------------------------------------------------------- */
222
+ @media (max-width: 640px) {
223
+ .t-bar { padding: var(--space-12) var(--space-16); }
224
+ .t-host { display: none; }
225
+ .t-main { padding: var(--space-32) var(--space-16) var(--space-48); }
226
+ .t-page-title { font-size: 28px; line-height: 34px; }
227
+ .t-card-head { flex-wrap: wrap; }
228
+ .t-card-band { flex-wrap: wrap; }
229
+ .t-form-row { flex-wrap: wrap; }
230
+ }
231
+ `;
package/tokens.css ADDED
@@ -0,0 +1,53 @@
1
+ /* GENERATED — edit packages/brand/src and run `pnpm --filter @devosurf/tesser-brand emit`. */
2
+ :root {
3
+ --color-cobalt: #1B45E0;
4
+ --color-cobalt-press: #1438B0;
5
+ --color-cobalt-wash: #EEF1FD;
6
+ --color-ink: #111111;
7
+ --color-paper: #FFFFFF;
8
+ --color-grey-700: #444444;
9
+ --color-grey-500: #666666;
10
+ --color-grey-400: #8A8A8A;
11
+ --color-grey-200: #E6E6E6;
12
+ --color-hairline: rgba(17, 17, 17, 0.16);
13
+ --color-positive: #1F7A4D;
14
+ --color-warning: #B7791F;
15
+ --color-danger: #C0392B;
16
+ --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
17
+ --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
18
+ --text-display: 800 80px/80px var(--font-sans);
19
+ --text-display-tracking: -0.04em;
20
+ --text-h1: 800 58px/60px var(--font-sans);
21
+ --text-h1-tracking: -0.035em;
22
+ --text-h2: 700 38px/44px var(--font-sans);
23
+ --text-h2-tracking: -0.03em;
24
+ --text-h3: 700 24px/30px var(--font-sans);
25
+ --text-h3-tracking: -0.02em;
26
+ --text-body-lg: 400 19px/30px var(--font-sans);
27
+ --text-body-lg-tracking: 0em;
28
+ --text-body: 400 17px/26px var(--font-sans);
29
+ --text-body-tracking: 0em;
30
+ --text-body-sm: 400 15px/23px var(--font-sans);
31
+ --text-body-sm-tracking: 0em;
32
+ --text-label: 600 12px/16px var(--font-sans);
33
+ --text-label-tracking: 0.14em;
34
+ --text-mono: 400 14px/22px var(--font-mono);
35
+ --text-mono-tracking: 0em;
36
+ --space-4: 4px;
37
+ --space-8: 8px;
38
+ --space-12: 12px;
39
+ --space-16: 16px;
40
+ --space-24: 24px;
41
+ --space-32: 32px;
42
+ --space-48: 48px;
43
+ --space-64: 64px;
44
+ --space-80: 80px;
45
+ --space-112: 112px;
46
+ --grid-columns: 12;
47
+ --grid-margin: 64px;
48
+ --grid-gutter: 24px;
49
+ --grid-max: 1440px;
50
+ --rule-strong: 1.5px solid #111111;
51
+ --rule-hairline: 1px solid rgba(17, 17, 17, 0.16);
52
+ --radius-none: 0px;
53
+ }
package/ui.css ADDED
@@ -0,0 +1,224 @@
1
+ /* GENERATED — edit packages/brand/src and run `pnpm --filter @devosurf/tesser-brand emit`. */
2
+ /* base ------------------------------------------------------------------ */
3
+ .t-page {
4
+ margin: 0;
5
+ background: var(--color-paper);
6
+ color: var(--color-ink);
7
+ font: var(--text-body-sm);
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ }
11
+ .t-main {
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ padding: var(--space-64) var(--space-24) var(--space-80);
16
+ }
17
+ .t-col {
18
+ width: 100%;
19
+ max-width: 720px;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+ :is(.t-page) :focus-visible {
24
+ outline: 2px solid var(--color-cobalt);
25
+ outline-offset: 2px;
26
+ }
27
+
28
+ /* type ------------------------------------------------------------------ */
29
+ .t-display { font: var(--text-display); letter-spacing: var(--text-display-tracking); margin: 0; }
30
+ .t-h1 { font: var(--text-h1); letter-spacing: var(--text-h1-tracking); margin: 0; }
31
+ .t-h2 { font: var(--text-h2); letter-spacing: var(--text-h2-tracking); margin: 0; }
32
+ .t-h3 { font: var(--text-h3); letter-spacing: var(--text-h3-tracking); margin: 0; }
33
+ .t-body-lg { font: var(--text-body-lg); margin: 0; }
34
+ .t-body { font: var(--text-body); margin: 0; }
35
+ .t-body-sm { font: var(--text-body-sm); margin: 0; }
36
+ .t-label {
37
+ font: var(--text-label);
38
+ letter-spacing: var(--text-label-tracking);
39
+ text-transform: uppercase;
40
+ margin: 0;
41
+ }
42
+ .t-mono { font: var(--text-mono); margin: 0; }
43
+ /* Product page title: h2 scale carrying h1 weight, as set on the connect comp. */
44
+ .t-page-title { font: 800 38px/44px var(--font-sans); letter-spacing: -0.03em; margin: 0; }
45
+ .t-lead { font: var(--text-body); color: var(--color-grey-500); margin: var(--space-16) 0 0; }
46
+
47
+ /* top bar ----------------------------------------------------------------- */
48
+ .t-bar {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ gap: var(--space-16);
53
+ padding: var(--space-16) var(--space-32);
54
+ border-bottom: 1px solid var(--color-grey-200);
55
+ background: var(--color-paper);
56
+ }
57
+ .t-bar--strong { border-bottom: var(--rule-strong); }
58
+ .t-brand {
59
+ display: flex;
60
+ align-items: center;
61
+ gap: var(--space-8);
62
+ color: inherit;
63
+ text-decoration: none;
64
+ }
65
+ .t-brand svg { flex-shrink: 0; display: block; }
66
+ .t-wordmark { font: 700 18px/22px var(--font-sans); letter-spacing: -0.02em; }
67
+ .t-bar-meta { display: flex; align-items: center; gap: var(--space-12); }
68
+ .t-host { font: 400 13px/16px var(--font-mono); color: var(--color-grey-400); }
69
+
70
+ /* chips, dots, status ------------------------------------------------------ */
71
+ .t-chip {
72
+ display: inline-flex;
73
+ align-items: center;
74
+ gap: var(--space-8);
75
+ padding: var(--space-4) var(--space-12);
76
+ border: 1px solid var(--color-grey-200);
77
+ font: 400 12.5px/16px var(--font-mono);
78
+ color: var(--color-grey-700);
79
+ white-space: nowrap;
80
+ }
81
+ .t-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--color-grey-400); }
82
+ .t-dot--positive { background: var(--color-positive); }
83
+ .t-dot--warning { background: var(--color-warning); }
84
+ .t-dot--danger { background: var(--color-danger); }
85
+ .t-status { display: inline-flex; align-items: center; gap: var(--space-8); font: 400 13.5px/18px var(--font-sans); white-space: nowrap; }
86
+ .t-status--pending { color: var(--color-warning); }
87
+ .t-status--ready { color: var(--color-grey-500); }
88
+ .t-status--danger { color: var(--color-danger); }
89
+
90
+ /* progress ----------------------------------------------------------------- */
91
+ .t-progress { display: flex; flex-direction: column; gap: var(--space-8); }
92
+ .t-progress-meta { display: flex; align-items: center; justify-content: space-between; font: 400 13px/16px var(--font-mono); color: var(--color-ink); }
93
+ .t-progress-meta .is-remaining { color: var(--color-grey-400); }
94
+ .t-progress-track { height: 4px; background: var(--color-grey-200); }
95
+ .t-progress-fill { height: 4px; background: var(--color-cobalt); }
96
+
97
+ /* cards ---------------------------------------------------------------- */
98
+ .t-stack { display: flex; flex-direction: column; gap: var(--space-16); }
99
+ .t-card { border: 1px solid var(--color-grey-200); background: var(--color-paper); }
100
+ .t-card-head { display: flex; align-items: center; gap: var(--space-16); padding: var(--space-16) var(--space-24); }
101
+ .t-card-band {
102
+ display: flex;
103
+ align-items: center;
104
+ gap: var(--space-16);
105
+ padding: var(--space-12) var(--space-24);
106
+ border-top: 1px solid var(--color-grey-200);
107
+ }
108
+ .t-card-band--stacked { flex-direction: column; align-items: stretch; }
109
+ .t-tile {
110
+ width: 36px;
111
+ height: 36px;
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ flex-shrink: 0;
116
+ border: 1px solid var(--color-grey-200);
117
+ font: 600 15px/18px var(--font-mono);
118
+ color: var(--color-ink);
119
+ }
120
+ .t-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
121
+ .t-card-title-row { display: flex; align-items: center; gap: var(--space-8); }
122
+ .t-card-title { font: 600 16px/20px var(--font-sans); }
123
+ .t-card-title--mono { font: 600 15px/18px var(--font-mono); }
124
+ .t-kind { font: 400 13px/16px var(--font-sans); color: var(--color-grey-400); }
125
+ .t-meta { font: 400 13px/16px var(--font-sans); color: var(--color-grey-400); overflow-wrap: anywhere; }
126
+ .t-scopes { font: 400 12.5px/16px var(--font-mono); color: var(--color-grey-400); overflow-wrap: anywhere; }
127
+
128
+ /* buttons -------------------------------------------------------------- */
129
+ .t-btn {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ gap: var(--space-8);
134
+ border: 0;
135
+ border-radius: var(--radius-none);
136
+ padding: var(--space-12) 20px;
137
+ font: 600 14.5px/18px var(--font-sans);
138
+ cursor: pointer;
139
+ text-decoration: none;
140
+ white-space: nowrap;
141
+ }
142
+ .t-btn svg { flex-shrink: 0; display: block; }
143
+ .t-btn--primary { background: var(--color-ink); color: var(--color-paper); }
144
+ .t-btn--primary:hover { background: #000000; }
145
+ .t-btn--accent { background: var(--color-cobalt); color: var(--color-paper); }
146
+ .t-btn--accent:hover, .t-btn--accent:active { background: var(--color-cobalt-press); }
147
+ .t-btn--secondary { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); padding: 11px 19px; }
148
+ .t-btn--secondary:hover { background: var(--color-cobalt-wash); }
149
+ .t-btn:disabled { background: var(--color-grey-200); color: var(--color-grey-400); cursor: not-allowed; }
150
+ .t-link { color: var(--color-cobalt); text-decoration: underline; text-underline-offset: 3px; }
151
+ .t-link:hover { color: var(--color-cobalt-press); }
152
+
153
+ /* forms ----------------------------------------------------------------- */
154
+ .t-field { display: flex; flex-direction: column; gap: var(--space-4); flex: 1 1 auto; min-width: 0; }
155
+ .t-field-label {
156
+ font: var(--text-label);
157
+ letter-spacing: var(--text-label-tracking);
158
+ text-transform: uppercase;
159
+ color: var(--color-grey-500);
160
+ }
161
+ .t-input {
162
+ width: 100%;
163
+ box-sizing: border-box;
164
+ border: 1px solid var(--color-grey-200);
165
+ border-radius: var(--radius-none);
166
+ background: var(--color-paper);
167
+ padding: var(--space-12) var(--space-16);
168
+ font: 400 14px/18px var(--font-mono);
169
+ color: var(--color-ink);
170
+ }
171
+ .t-input::placeholder { color: var(--color-grey-400); }
172
+ .t-input:focus-visible { outline: 2px solid var(--color-cobalt); outline-offset: -1px; }
173
+ .t-form-row { display: flex; align-items: center; gap: var(--space-12); flex: 1 1 auto; }
174
+ .t-form-col { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-12); flex: 1 1 auto; min-width: 0; }
175
+ .t-form-col .t-btn { align-self: flex-end; }
176
+
177
+ /* notices, code, footnote ---------------------------------------------- */
178
+ .t-notice {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: var(--space-8);
182
+ padding: var(--space-12) var(--space-16);
183
+ border: 1px solid var(--color-grey-200);
184
+ font: 400 13.5px/18px var(--font-sans);
185
+ color: var(--color-grey-700);
186
+ }
187
+ .t-pre {
188
+ margin: 0;
189
+ padding: var(--space-16);
190
+ background: var(--color-cobalt-wash);
191
+ font: 400 13px/20px var(--font-mono);
192
+ overflow: auto;
193
+ white-space: pre-wrap;
194
+ overflow-wrap: anywhere;
195
+ }
196
+ .t-code { font-family: var(--font-mono); font-size: 0.92em; background: var(--color-cobalt-wash); padding: 1px 5px; }
197
+ .t-footnote {
198
+ display: flex;
199
+ align-items: center;
200
+ gap: var(--space-12);
201
+ padding-top: var(--space-24);
202
+ font: 400 13.5px/18px var(--font-sans);
203
+ color: var(--color-grey-400);
204
+ }
205
+ .t-footnote svg { flex-shrink: 0; display: block; }
206
+
207
+ /* utilities -------------------------------------------------------------- */
208
+ .t-right { margin-left: auto; }
209
+ .t-grow { flex: 1 1 auto; min-width: 0; }
210
+ .t-gap-top-16 { margin-top: var(--space-16); }
211
+ .t-gap-top-24 { margin-top: var(--space-24); }
212
+ .t-gap-top-32 { margin-top: var(--space-32); }
213
+ .t-gap-top-48 { margin-top: var(--space-48); }
214
+
215
+ /* small screens ----------------------------------------------------------- */
216
+ @media (max-width: 640px) {
217
+ .t-bar { padding: var(--space-12) var(--space-16); }
218
+ .t-host { display: none; }
219
+ .t-main { padding: var(--space-32) var(--space-16) var(--space-48); }
220
+ .t-page-title { font-size: 28px; line-height: 34px; }
221
+ .t-card-head { flex-wrap: wrap; }
222
+ .t-card-band { flex-wrap: wrap; }
223
+ .t-form-row { flex-wrap: wrap; }
224
+ }