@revikornmann/muka-ui 0.59.0 → 0.61.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.
Files changed (28) hide show
  1. package/dist/cjs/components/PhotoUploader/PhotoUploader.css +21 -0
  2. package/dist/esm/components/PhotoUploader/PhotoUploader.css +21 -0
  3. package/dist/styles/components/PhotoUploader.css +21 -0
  4. package/dist/styles/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2 +0 -0
  5. package/dist/styles/fonts/bricolage-grotesque-latin-opsz-normal.woff2 +0 -0
  6. package/dist/styles/fonts/{red-hat-text.LICENSE.txt → bricolage-grotesque.LICENSE.txt} +1 -1
  7. package/dist/styles/fonts/figtree-latin-ext-wght-normal.woff2 +0 -0
  8. package/dist/styles/fonts/figtree-latin-wght-normal.woff2 +0 -0
  9. package/dist/styles/fonts/{red-hat-display.LICENSE.txt → figtree.LICENSE.txt} +1 -1
  10. package/dist/styles/fonts-all.css +40 -40
  11. package/dist/styles/fonts-bouwplan.css +16 -16
  12. package/dist/styles/index.css +1058 -1037
  13. package/dist/styles/muka-dark.css +1058 -1037
  14. package/dist/styles/muka-light.css +1058 -1037
  15. package/dist/styles/tokens-bouwplan-dark.css +45 -45
  16. package/dist/styles/tokens-bouwplan-light.css +45 -45
  17. package/dist/styles/wireframe-dark.css +1058 -1037
  18. package/dist/styles/wireframe-light.css +1058 -1037
  19. package/docs/consumers/brand.md +1 -1
  20. package/package.json +3 -3
  21. package/scripts/build-fonts.js +5 -3
  22. package/skills/add-brand/SKILL.md +2 -2
  23. package/skills/add-brand/reference.md +1 -1
  24. package/tokens/t2-alias/brand/bouwplan/fonts.json +2 -2
  25. package/dist/styles/fonts/red-hat-display-latin-ext-wght-normal.woff2 +0 -0
  26. package/dist/styles/fonts/red-hat-display-latin-wght-normal.woff2 +0 -0
  27. package/dist/styles/fonts/red-hat-text-latin-ext-wght-normal.woff2 +0 -0
  28. package/dist/styles/fonts/red-hat-text-latin-wght-normal.woff2 +0 -0
@@ -168,7 +168,7 @@ brand. You have three options:
168
168
  | `Funnel Display`, `Funnel Sans` | `fonts-muka.css` |
169
169
  | `Quicksand` | `fonts-grip.css` |
170
170
  | `IBM Plex Sans`, `Lora` | `fonts-fscl.css` |
171
- | `Red Hat Display`, `Red Hat Text` | `fonts-bouwplan.css` |
171
+ | `Bricolage Grotesque`, `Figtree` | `fonts-bouwplan.css` |
172
172
  | `Yesteryear` (script role) | `fonts-muka.css`, `fonts-grip.css`, or `fonts-bouwplan.css` |
173
173
 
174
174
  `fonts-wireframe.css` is empty — that brand uses system fonts only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revikornmann/muka-ui",
3
- "version": "0.59.0",
3
+ "version": "0.61.0",
4
4
  "description": "Muka Design System - Multi-brand design tokens and React components",
5
5
  "main": "dist/cjs/components/index.js",
6
6
  "module": "dist/esm/components/index.js",
@@ -115,13 +115,13 @@
115
115
  "devDependencies": {
116
116
  "@eslint/js": "^9.39.4",
117
117
  "@figma/code-connect": "^1.3.8",
118
+ "@fontsource-variable/bricolage-grotesque": "^5.3.0",
119
+ "@fontsource-variable/figtree": "^5.3.0",
118
120
  "@fontsource-variable/funnel-display": "^5.2.8",
119
121
  "@fontsource-variable/funnel-sans": "^5.2.8",
120
122
  "@fontsource-variable/ibm-plex-sans": "^5.2.8",
121
123
  "@fontsource-variable/lora": "^5.2.8",
122
124
  "@fontsource-variable/quicksand": "^5.2.10",
123
- "@fontsource-variable/red-hat-display": "^5.3.0",
124
- "@fontsource-variable/red-hat-text": "^5.3.0",
125
125
  "@fontsource/yesteryear": "^5.2.8",
126
126
  "@playwright/test": "^1.56.1",
127
127
  "@storybook/addon-a11y": "^10.3.4",
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Self-hosts the brand fonts so muka's typography works with ZERO consumer wiring.
7
7
  *
8
- * muka's token CSS declares font-family *names* (e.g. `Red Hat Text`, `Funnel Display`)
8
+ * muka's token CSS declares font-family *names* (e.g. `Figtree`, `Funnel Display`)
9
9
  * but ships no way to *load* them. This script closes that gap: it reads each brand's
10
10
  * font source-of-truth (`tokens/t2-alias/brand/<brand>/fonts.json`), and for every web
11
11
  * font a brand references it:
@@ -80,8 +80,10 @@ function subsetFile(entry, subset) {
80
80
  const FONT_REGISTRY = {
81
81
  'Funnel Display': { pkg: '@fontsource-variable/funnel-display', file: 'funnel-display-latin-wght-normal.woff2', variable: true },
82
82
  'Funnel Sans': { pkg: '@fontsource-variable/funnel-sans', file: 'funnel-sans-latin-wght-normal.woff2', variable: true },
83
- 'Red Hat Display': { pkg: '@fontsource-variable/red-hat-display', file: 'red-hat-display-latin-wght-normal.woff2', variable: true },
84
- 'Red Hat Text': { pkg: '@fontsource-variable/red-hat-text', file: 'red-hat-text-latin-wght-normal.woff2', variable: true },
83
+ // The opsz file carries the weight and optical-size axes, so headings tighten at display
84
+ // sizes and open up at small ones (browsers apply font-optical-sizing: auto).
85
+ 'Bricolage Grotesque': { pkg: '@fontsource-variable/bricolage-grotesque', file: 'bricolage-grotesque-latin-opsz-normal.woff2', variable: true },
86
+ Figtree: { pkg: '@fontsource-variable/figtree', file: 'figtree-latin-wght-normal.woff2', variable: true },
85
87
  Quicksand: { pkg: '@fontsource-variable/quicksand', file: 'quicksand-latin-wght-normal.woff2', variable: true },
86
88
  'IBM Plex Sans': { pkg: '@fontsource-variable/ibm-plex-sans', file: 'ibm-plex-sans-latin-wght-normal.woff2', variable: true },
87
89
  Lora: { pkg: '@fontsource-variable/lora', file: 'lora-latin-wght-normal.woff2', variable: true },
@@ -126,8 +126,8 @@ Edit `brand/fonts.json`. The `family` values must be the **exact `@font-face`
126
126
  family name** that will be loaded, because the generated CSS passes the literal
127
127
  through to `font-family`.
128
128
 
129
- - **Reusing a font Muka already bundles** (Funnel Display, Funnel Sans, Red Hat
130
- Display, Red Hat Text, Quicksand, IBM Plex Sans, Lora, Yesteryear) — import
129
+ - **Reusing a font Muka already bundles** (Funnel Display, Funnel Sans, Bricolage
130
+ Grotesque, Figtree, Quicksand, IBM Plex Sans, Lora, Yesteryear) — import
131
131
  that brand's fonts file and you are done:
132
132
  ```ts
133
133
  import '@revikornmann/muka-ui/styles/fonts-muka.css';
@@ -125,7 +125,7 @@ matching `fonts-<brand>.css`:
125
125
  | `Funnel Display`, `Funnel Sans` | `fonts-muka.css` |
126
126
  | `Quicksand` | `fonts-grip.css` |
127
127
  | `IBM Plex Sans`, `Lora` | `fonts-fscl.css` |
128
- | `Red Hat Display`, `Red Hat Text` | `fonts-bouwplan.css` |
128
+ | `Bricolage Grotesque`, `Figtree` | `fonts-bouwplan.css` |
129
129
  | `Yesteryear` (script role) | `fonts-muka.css`, `fonts-grip.css`, or `fonts-bouwplan.css` |
130
130
 
131
131
  `fonts-wireframe.css` is empty — that brand is system fonts only.
@@ -6,7 +6,7 @@
6
6
  "alias": {
7
7
  "font": {
8
8
  "brand": {
9
- "family": { "$type": "fontFamilies", "$value": "Red Hat Display" },
9
+ "family": { "$type": "fontFamilies", "$value": "Bricolage Grotesque" },
10
10
  "weight": {
11
11
  "regular": { "$type": "fontWeights", "$value": "400" },
12
12
  "medium": { "$type": "fontWeights", "$value": "500" },
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "plain": {
18
- "family": { "$type": "fontFamilies", "$value": "Red Hat Text" },
18
+ "family": { "$type": "fontFamilies", "$value": "Figtree" },
19
19
  "weight": {
20
20
  "regular": { "$type": "fontWeights", "$value": "400" },
21
21
  "medium": { "$type": "fontWeights", "$value": "500" },