@nadicodeai/design-system 0.19.2 → 0.21.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/AGENTS.md CHANGED
@@ -38,7 +38,7 @@ Handoff gate: `npm run lint:design && npm run lint && npm run build && npm run t
38
38
  - `DESIGN.md` `## Components` is the semantic component catalog; CSS is its implementation, and `tests/guards/component-contract-matches-css.test.ts` derives the two-way fence without a copied inventory.
39
39
  - `DESIGN.md` stays contract-only and spec-shaped: check `npm exec --package=@google/design.md -- design.md spec` before changing YAML fields; exact reusable values go in YAML, application guidance in prose; add a non-spec YAML field only when repo code or a test reads it (spec-shape don'ts: `DESIGN.md` "Do's and Don'ts").
40
40
  - Seams and grids are computed, single-owner, never eyeballed (doctrine home: `DESIGN.md` "## Layout" and "Seam Ownership").
41
- - External references are source-first: read live DOM/CSSOM rules before authoring; screenshots verify, they never author. Map every imported behavior to `DESIGN.md` or an explicit user approval, ask when the contract leaves a decision open, and never import reference mood, polarity, decoration, or animation uninvited. Stop and re-read source before a second visual patch to the same component.
42
- - Name everything as NadicodeAI-owned primitives; source brands (Vercel, Attio) appear only in reference notes, never in names, comments, or contracts.
41
+ - Authoring is contract-first: a visual behavior comes from `DESIGN.md`, from our own shipped surfaces, or from an explicit user approval — never from another product's rendered output (ADR 0047). Screenshots verify, they never author. Ask when the contract leaves a decision open, and stop and re-read `DESIGN.md` before a second visual patch to the same component.
42
+ - Name everything as NadicodeAI-owned primitives. A source brand appears only in a `../docs/adr/` decision record, as the history of what once inspired a choice; never in a name, a comment, a contract, or any living design document (ADR 0047).
43
43
  - Any change to package-consumed output ends with an explicit release decision, a version bump or a `[no-publish]` commit marker (enforced by the pre-push release gate; procedure: `../docs/internal/npm-publishing.md`).
44
44
  - The deleted `design-canvas/` prototypes live only in git history. `src/css/motion.css` owns shared runtime motion primitives, while `src/js/chat-autoplay.js` is the single allowed runtime JS enhancer; never reconstruct the prototypes or add a second runtime JS surface.
package/DESIGN.md CHANGED
@@ -399,7 +399,7 @@ Do not delete a color because the current website kernel does not consume it. Pr
399
399
 
400
400
  ### Meter and bullet grammar
401
401
 
402
- - **Meter and bullet grammar**: cap and included-usage bars carry a positional threshold tick at the product-configured warning fraction (80% is the common default; the fraction is a consumer input, never a constant of this contract) and a cap tick at 100%. Overflow renders as a distinct segment continuing past the cap tick, never clamped away. Severity state tokens (`{colors.state-*}`) reinforce position, never act as the sole signal. The current value reads at the bar tip. Every meter carries an accessible name, and its `aria` values clamp to the meter maximum.
402
+ - **Meter and bullet grammar**: cap and included-usage bars carry a positional threshold tick at the product-configured warning fraction (80% is the common default; the fraction is a consumer input, never a constant of this contract) and a cap tick at 100%. Overflow renders as a distinct segment continuing past the cap tick, never clamped away. Severity state tokens (`{colors.state-*}`) reinforce position, never act as the sole signal. The current value reads at the bar tip. Every meter carries an accessible name, and its `aria` values clamp to the meter maximum. A meter has two scales. At panel scale the grammar above holds whole. At row scale — a meter inside a membership row, shown only once the value is already past the warning rung — it is a warning rather than a gauge: it drops both ticks and the tip value for a percent and a thin bar on one line, because a row cannot encode position legibly and the reader is asking how close the wall is, not how many. The overflow segment and the accessible name survive at both scales; the words a caption would have printed live in that name.
403
403
 
404
404
  ### Mark specs
405
405
 
@@ -419,7 +419,7 @@ Do not delete a color because the current website kernel does not consume it. Pr
419
419
 
420
420
  ## Typography
421
421
 
422
- Geist Sans carries all narrative and interface copy, including the entity-status `status-tag` family. Geist Mono is reserved for eyebrows, labels, run-state `state-tag` labels, code, traces, and small technical metadata.
422
+ Geist Sans and Geist Mono are the two families. Each token below carries its own — `caption-mono` and `code` are Geist Mono, every other token is Geist Sans — and its Use column says what that token is for. The register law that decides which family a given string takes, and what a card, panel, or section title therefore takes, is stated once in `## Components` → **`label-mono`**.
423
423
 
424
424
  All body, title, caption, and code typography uses `letterSpacing: 0px`. Do not use viewport-scaled type (no `vw`/`vh` font sizing): use fixed token sizes stepped by breakpoint-specific rules when a headline must grow. The two large display tiers carry a small negative tracking — `display-xl` at `-1.5px` and `display-lg` at `-1px` — so large type reads optically tight; this is a display-heading-only exception and every non-display tier stays at `0px`.
425
425
 
@@ -439,7 +439,7 @@ All body, title, caption, and code typography uses `letterSpacing: 0px`. Do not
439
439
  | `{typography.body-sm-strong}` | 14px | 500 | 20px | Emphasised secondary copy and compact labels. |
440
440
  | `{typography.caption}` | 12px | 400 | 16px | Footer secondary lines and badge labels. |
441
441
  | `{typography.caption-strong}` | 12px | 500 | 16px | Entity-status `status-tag` labels. |
442
- | `{typography.caption-mono}` | 12px | 500 | 16px | Eyebrows, labels, run-state `state-tag` labels. |
442
+ | `{typography.caption-mono}` | 12px | 500 | 16px | Eyebrows, identifiers and code, run-state `state-tag` labels. |
443
443
  | `{typography.code}` | 13px | 400 | 20px | Tool calls, snippets, traces. |
444
444
  | `{typography.button-lg}` | 16px | 500 | 24px | Marketing-scale button labels. |
445
445
  | `{typography.button-md}` | 14px | 500 | 18px | Standard button and control labels. |
@@ -584,7 +584,7 @@ Interface CSS components provide small metadata, label, and link chrome. They in
584
584
 
585
585
  Interactive CSS components must expose a visible `:focus-visible` state using the `{spacing.focus-ring-width}` full-opacity `{colors.focus-ring}` / `{colors.dark-focus-ring}` role with no offset. Do not remove outlines without that contrast-safe equivalent.
586
586
 
587
- **`label-mono`** — mono eyebrow/label text for section labels and low-priority metadata.
587
+ **`label-mono`** — mono eyebrow text, identifiers and code, and low-priority metadata. The mono register marks what the machine owns, not what a heading says, so a card, panel, or section title never takes it: titles are sentence-case sans.
588
588
 
589
589
  **`badge-secondary`** — small rounded metadata badge for "New", "Beta", "Live", or similar labels.
590
590
 
@@ -745,6 +745,8 @@ The NadicodeAI logo has three approved forms:
745
745
  2. **Mark.** The two interlocked rounded-square links may stand alone where space is tight: favicons, app icons, avatars, watermarks, stamps, and compact navigation. A containing link or control names NadicodeAI when the mark is used without visible text.
746
746
  3. **Wordmark.** The NadicodeAI letterforms may stand alone where the name must read by itself, including document headers and editorial layouts.
747
747
 
748
+ Other companies' marks are not NadicodeAI company logos and are not governed by anything in this section. They are generated identity images owned by `@nadicodeai/ui/components/brand-icons`, decided in [`docs/adr/0042-third-party-brand-marks-are-generated-identity-images.md`](../docs/adr/0042-third-party-brand-marks-are-generated-identity-images.md). A third-party mark never enters a NadicodeAI logo form, composition, or clear-space measurement.
749
+
748
750
  Nadia's portrait and generated imagery are not NadicodeAI company logos. Their identity and selection rules live in [`brand/visual-design/NADIA-VISUAL-IDENTITY.md`](../brand/visual-design/NADIA-VISUAL-IDENTITY.md); editorial imagery routes through [`brand/visual-design/EDITORIAL-ILLUSTRATION.md`](../brand/visual-design/EDITORIAL-ILLUSTRATION.md). This contract owns only the package delivery interface.
749
751
 
750
752
  The approved transparent Nadia master ships at `assets/nadia-solid-surface`.
package/README.md CHANGED
@@ -14,7 +14,7 @@ Import the complete CSS module once:
14
14
 
15
15
  That interface includes the generated tokens, mode aliases, semantic role maps, page geometry, type utilities, motion primitives, and framework-agnostic CSS components. Apply `.dark` to the document root or to a scoped static composition to select dark mode. The generation and cascade mechanics live only in [`DESIGN.md`, "CSS Architecture & Token Pipeline"](./DESIGN.md#css-architecture--token-pipeline).
16
16
 
17
- Geist and Geist Mono (SIL Open Font License 1.1) are optional package assets. A static consumer that does not supply its own font loading can import the `@font-face` shim:
17
+ That interface also registers the brand typeface. Geist and Geist Mono (SIL Open Font License 1.1) ship with the package, and the CSS module declares their `@font-face` rules and loads the woff2 files from package paths, so no consumer supplies its own font loading. The `@font-face` shim stays exported for a consumer that wants the faces without the CSS module:
18
18
 
19
19
  ```css
20
20
  @import "@nadicodeai/design-system/assets/fonts/geist.css";
@@ -100,8 +100,7 @@ accessibility contract.
100
100
  <head>
101
101
  <meta charset="utf-8" />
102
102
  <meta name="viewport" content="width=device-width, initial-scale=1" />
103
- <!-- Geist + Geist Mono, then the bundle -->
104
- <link rel="stylesheet" href="https://unpkg.com/@nadicodeai/design-system/assets/fonts/geist.css" />
103
+ <!-- One stylesheet: tokens, geometry, components, and the brand typeface -->
105
104
  <link rel="stylesheet" href="https://unpkg.com/@nadicodeai/design-system/css" />
106
105
  <!-- In a bundler, prefer a CSS entry: @import "@nadicodeai/design-system/css"; -->
107
106
  </head>
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2023 Vercel, in collaboration with basement.studio
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,5 +1,43 @@
1
1
  @layer tokens, theme, reset, foundation, motion, layout, primitives, components;
2
2
 
3
+ /* src/assets/fonts/geist.css */
4
+ /*!
5
+ * Geist & Geist Mono — SIL Open Font License 1.1
6
+ * © 2023 Vercel, in collaboration with basement.studio
7
+ * Source: https://github.com/vercel/geist-font. The full licence ships as
8
+ * OFL.txt beside the font files this stylesheet points at.
9
+ * Marked as a legal comment so the attribution survives into the bundled
10
+ * public artifact that ships those files.
11
+ */
12
+ @font-face {
13
+ font-family: "Geist";
14
+ font-style: normal;
15
+ font-weight: 100 900;
16
+ font-display: swap;
17
+ src: url(./assets/fonts/files/Geist-Variable.woff2) format("woff2");
18
+ }
19
+ @font-face {
20
+ font-family: "Geist";
21
+ font-style: italic;
22
+ font-weight: 100 900;
23
+ font-display: swap;
24
+ src: url(./assets/fonts/files/Geist-Italic.woff2) format("woff2");
25
+ }
26
+ @font-face {
27
+ font-family: "Geist Mono";
28
+ font-style: normal;
29
+ font-weight: 100 900;
30
+ font-display: swap;
31
+ src: url(./assets/fonts/files/GeistMono-Variable.woff2) format("woff2");
32
+ }
33
+ @font-face {
34
+ font-family: "Geist Mono";
35
+ font-style: italic;
36
+ font-weight: 100 900;
37
+ font-display: swap;
38
+ src: url(./assets/fonts/files/GeistMono-Italic.woff2) format("woff2");
39
+ }
40
+
3
41
  /* src/css/tokens.generated.css */
4
42
  @layer tokens {
5
43
  :root {
@@ -875,8 +913,6 @@
875
913
  opacity: 0;
876
914
  transform: none;
877
915
  }
878
- .nc-transition-paint,
879
- .nc-transition-opacity,
880
916
  .nc-transition-transform {
881
917
  transition: none;
882
918
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/design-system",
3
- "version": "0.19.2",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -154,6 +154,7 @@
154
154
  "generate:favicons": "tsx scripts/generate-favicons.ts",
155
155
  "lint:design": "design.md lint DESIGN.md",
156
156
  "lint": "eslint --max-warnings=0",
157
+ "typecheck": "tsc -p tsconfig.json",
157
158
  "test": "vitest run",
158
159
  "test:visual": "playwright test --config playwright.visual.config.ts",
159
160
  "prepublishOnly": "npm run build"
@@ -1,7 +1,10 @@
1
- /*
1
+ /*!
2
2
  * Geist & Geist Mono — SIL Open Font License 1.1
3
3
  * © 2023 Vercel, in collaboration with basement.studio
4
- * Source: https://github.com/vercel/geist-font (see ./OFL.txt).
4
+ * Source: https://github.com/vercel/geist-font. The full licence ships as
5
+ * OFL.txt beside the font files this stylesheet points at.
6
+ * Marked as a legal comment so the attribution survives into the bundled
7
+ * public artifact that ships those files.
5
8
  */
6
9
 
7
10
  @font-face {