@medquantis/design-system 1.3.0 → 1.4.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/README.md CHANGED
@@ -14,7 +14,7 @@ The single source of the MedQuantis visual identity: design tokens, shared CSS,
14
14
  | `dist/themes/dark.css`, `dist/themes/dark.json` | The dark theme: the semantic roles re-valued under `.dark`, for apps, documents and slides (see Dark theme) |
15
15
  | `dist/kit-contract.css` | homemade-claude-kit renderers only, deployed as `docs/ux/tokens.css`; never loaded in an app. Carries the latin fonts as embedded data, since the renderers inline this one file |
16
16
  | `css/` | Shared `mq-` components, slide canvas and A4 print styles for build-less media (see Shared CSS) |
17
- | `fonts/fonts.css` | Self-hosted Outfit, Newsreader and Geist Mono (variable woff2, latin and latin-ext, relative paths); deploy the folder whole |
17
+ | `fonts/fonts.css`, `fonts/` | Self-hosted Outfit, Newsreader and Geist Mono (variable woff2, latin and latin-ext, relative paths); deploy the folder whole. The woff2 files are exported too, for preloading (see Preloading the fonts) |
18
18
  | `icons/lucide.min.js` | A pinned Lucide build (version and hash in `icons/manifest.json`) |
19
19
  | `brand/` | Monogram, favicon set and wordmark: `wordmark-on-light` and `wordmark-on-navy`, live text for screen and `-print` with outlined text |
20
20
  | `guidelines/` | Brand, voice, colour, typography, chart, data and accessibility rules, and the app patterns of dense internal tools |
@@ -128,6 +128,18 @@ echo "sha384-$(openssl dgst -sha384 -binary dist/tokens.css | openssl base64 -A)
128
128
 
129
129
  Every other shipped file (`css/*.css`, `fonts/fonts.css`, `dist/kit-contract.css`) works the same way, each with its own hash. Fonts referenced by `fonts.css` load relative to it, so serve the stylesheet and its fonts from the same release URL.
130
130
 
131
+ ### Preloading the fonts
132
+
133
+ `fonts.css` declares every face with `font-display: swap`, so a browser draws the page in a fallback font and redraws it once the woff2 file arrives; on a slow connection the redraw moves the text and counts as layout shift. A page that wants to avoid it preloads the latin files it uses above the fold, at most these three (about 32 KB Outfit, 58 KB Newsreader and 23 KB Geist Mono); the latin-ext and italic files stay lazy. A bundler resolves them through the `./fonts/*` export:
134
+
135
+ ```ts
136
+ import outfit from "@medquantis/design-system/fonts/outfit/outfit-latin-wght-normal.woff2?url";
137
+ import newsreader from "@medquantis/design-system/fonts/newsreader/newsreader-latin-wght-normal.woff2?url";
138
+ import geistMono from "@medquantis/design-system/fonts/geist-mono/geist-mono-latin-wght-normal.woff2?url";
139
+ ```
140
+
141
+ Each one becomes `<link rel="preload" as="font" type="font/woff2" href="..." crossorigin>` in the page head. The `crossorigin` attribute is required even on the same origin, since fonts are always fetched in CORS mode and a preload without it is downloaded twice. Preload only the faces the first screen shows: an unused preload costs bandwidth and a console warning.
142
+
131
143
  ## Using it from the delivery-comms kit
132
144
 
133
145
  The homemade-claude-kit renders decks (`com-slide-deck`), artefact views (`com-artefact-viz`) and release notes (`com-release-note`) with the design system a project pins. A project pins this package once, with the kit's `ux-design-system` skill, at an exact version (1.1.0 is the first release with the kit modules; 1.2.0 adds the `dark` module and the classification cell):
package/dist/DESIGN.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: MedQuantis
3
- description: The MedQuantis design system 1.3.0. Generated from tokens/ and guidelines/ by the design-system build. Do not edit. Names are the homemade-claude-kit role names where the kit has a role, else the tokens.css name without --mq-; the tables below map each to its --mq-* token.
3
+ description: The MedQuantis design system 1.4.0. Generated from tokens/ and guidelines/ by the design-system build. Do not edit. Names are the homemade-claude-kit role names where the kit has a role, else the tokens.css name without --mq-; the tables below map each to its --mq-* token.
4
4
  colors:
5
5
  primary: "{colors.accent}"
6
6
  ink: "#1a1a1a"
@@ -140,7 +140,7 @@ spacing:
140
140
 
141
141
  # MedQuantis design
142
142
 
143
- Generated from tokens/ and guidelines/ by the build of @medquantis/design-system 1.3.0. Do not edit. Each section opens with a table that maps the front matter names to the --mq-* custom properties of tokens.css, the names the guideline text uses; the rules are the MedQuantis guidelines, section by section.
143
+ Generated from tokens/ and guidelines/ by the build of @medquantis/design-system 1.4.0. Do not edit. Each section opens with a table that maps the front matter names to the --mq-* custom properties of tokens.css, the names the guideline text uses; the rules are the MedQuantis guidelines, section by section.
144
144
 
145
145
  ## Overview
146
146
 
@@ -1159,7 +1159,7 @@ Every local one-off (a component or a token a consumer adds under its own prefix
1159
1159
 
1160
1160
  # Tokens
1161
1161
 
1162
- Every token of release 1.3.0, generated from dist/tokens.json. Consumers use the semantic names; the `--mq-core-*` names exist so semantic tokens can point at them. A deprecated token names its replacement.
1162
+ Every token of release 1.4.0, generated from dist/tokens.json. Consumers use the semantic names; the `--mq-core-*` names exist so semantic tokens can point at them. A deprecated token names its replacement.
1163
1163
 
1164
1164
  ## Semantic tokens
1165
1165
 
package/dist/llms.txt CHANGED
@@ -8,33 +8,33 @@ The links below point at the exact release on the jsDelivr CDN; pin that version
8
8
 
9
9
  ## Guidelines
10
10
 
11
- - [Principles](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/principles.md): The principles that decide the cases the other files do not cover
12
- - [Brand](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/brand.md): Name, tagline, legal line, wordmark, monogram, favicon, icons
13
- - [Voice](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/voice.md): Tone, words to prefer and avoid, languages, terminology in French, German, Italian and English
14
- - [Writing](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/writing.md): No em or en dash, titles, sentences and lists, French typography
15
- - [Colour](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/colour.md): Semantic colour tokens, the medium split, navy panels, states by mark style, status colours in apps, the dark theme
16
- - [Typography](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/typography.md): Families, weights, roles, sizes and line heights
17
- - [Layout](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/layout.md): Media, report skeleton, widths and spacing, radius, components, tables, app patterns, print
18
- - [Charts](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/charts.md): The ordered palette, highlight on grey, sequential and diverging use, marks, legends
19
- - [Data patterns](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/data-patterns.md): Numbers, amounts, dates, null versus zero, confidential and illustrative data
20
- - [Accessibility](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/accessibility.md): WCAG 2.2 AA, contrast pairs, focus, targets, motion, structure
21
- - [App patterns](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/app-patterns.md): Apps only: the app shell, and the review, decision and history patterns of dense internal tools
22
- - [Specialising the design system](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/specialising.md): Framework neutrality, the four rules, the promotion tests, the one-off log
11
+ - [Principles](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/principles.md): The principles that decide the cases the other files do not cover
12
+ - [Brand](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/brand.md): Name, tagline, legal line, wordmark, monogram, favicon, icons
13
+ - [Voice](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/voice.md): Tone, words to prefer and avoid, languages, terminology in French, German, Italian and English
14
+ - [Writing](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/writing.md): No em or en dash, titles, sentences and lists, French typography
15
+ - [Colour](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/colour.md): Semantic colour tokens, the medium split, navy panels, states by mark style, status colours in apps, the dark theme
16
+ - [Typography](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/typography.md): Families, weights, roles, sizes and line heights
17
+ - [Layout](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/layout.md): Media, report skeleton, widths and spacing, radius, components, tables, app patterns, print
18
+ - [Charts](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/charts.md): The ordered palette, highlight on grey, sequential and diverging use, marks, legends
19
+ - [Data patterns](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/data-patterns.md): Numbers, amounts, dates, null versus zero, confidential and illustrative data
20
+ - [Accessibility](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/accessibility.md): WCAG 2.2 AA, contrast pairs, focus, targets, motion, structure
21
+ - [App patterns](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/app-patterns.md): Apps only: the app shell, and the review, decision and history patterns of dense internal tools
22
+ - [Specialising the design system](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/specialising.md): Framework neutrality, the four rules, the promotion tests, the one-off log
23
23
 
24
24
  ## Tokens and CSS
25
25
 
26
- - [tokens.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/dist/tokens.css): every token as a `--mq-*` custom property; load it first
27
- - [tokens.json](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/dist/tokens.json): every token with its resolved value and description
28
- - [tailwind.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/dist/tailwind.css): Tailwind 4 theme with 50 to 950 scales, for apps
29
- - [base.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/css/base.css): typography roles for documents
30
- - [components.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/css/components.css): the shared `mq-` document components
31
- - [slide.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/css/slide.css): the 1280 by 720 slide canvas
32
- - [print.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/css/print.css): A4 pages with exact colour printing
33
- - [app.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/css/app.css): status badges, for interactive apps only
34
- - [fonts.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/fonts/fonts.css): self-hosted Outfit, Newsreader and Geist Mono
26
+ - [tokens.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/dist/tokens.css): every token as a `--mq-*` custom property; load it first
27
+ - [tokens.json](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/dist/tokens.json): every token with its resolved value and description
28
+ - [tailwind.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/dist/tailwind.css): Tailwind 4 theme with 50 to 950 scales, for apps
29
+ - [base.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/css/base.css): typography roles for documents
30
+ - [components.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/css/components.css): the shared `mq-` document components
31
+ - [slide.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/css/slide.css): the 1280 by 720 slide canvas
32
+ - [print.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/css/print.css): A4 pages with exact colour printing
33
+ - [app.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/css/app.css): status badges, for interactive apps only
34
+ - [fonts.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/fonts/fonts.css): self-hosted Outfit, Newsreader and Geist Mono
35
35
 
36
36
  ## Optional
37
37
 
38
- - [llms-full.txt](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/dist/llms-full.txt): every guideline in full and every token with its value
39
- - [kit-contract.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/dist/kit-contract.css): unprefixed names for homemade-claude-kit renderers only, never loaded in an app
40
- - [Guidelines index](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.3.0/guidelines/README.md): the file list and where each legacy rule went
38
+ - [llms-full.txt](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/dist/llms-full.txt): every guideline in full and every token with its value
39
+ - [kit-contract.css](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/dist/kit-contract.css): unprefixed names for homemade-claude-kit renderers only, never loaded in an app
40
+ - [Guidelines index](https://cdn.jsdelivr.net/npm/@medquantis/design-system@1.4.0/guidelines/README.md): the file list and where each legacy rule went
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medquantis/design-system",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "MedQuantis design tokens, shared CSS, assets, guidelines and Claude skill.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -42,6 +42,7 @@
42
42
  "./DESIGN.md": "./dist/DESIGN.md",
43
43
  "./css/*": "./css/*",
44
44
  "./fonts.css": "./fonts/fonts.css",
45
+ "./fonts/*": "./fonts/*",
45
46
  "./brand/*": "./brand/*",
46
47
  "./stylelint": "./stylelint.config.mjs",
47
48
  "./package.json": "./package.json"