@photon-ai/pho-ui 4.18.6 → 4.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photon-ai/pho-ui",
3
- "version": "4.18.6",
3
+ "version": "4.20.0",
4
4
  "description": "Photon Design System — Photon's React component library, built on Base UI",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * Photon brand fonts. PolySans (commercial) is served from the shared asset
3
3
  * CDN (assets.photon.codes — public R2, versioned path, immutable caching,
4
- * CORS enabled). Azeret Mono is an open Google Font and comes from the Google
5
- * Fonts CDN, which serves subsetted woff2 per script with `unicode-range`.
4
+ * CORS enabled). Inter and Azeret Mono are open Google Fonts, declared below
5
+ * against the Google Fonts CDN (fonts.gstatic.com), one face per script
6
+ * subset with its `unicode-range`. They are spelled out rather than pulled in
7
+ * with an `@import` of Google's stylesheet: once this file is bundled into an
8
+ * app's CSS that `@import` follows other rules, and the bundler drops it.
6
9
  * Import this and the fonts just work; no files to copy.
7
10
  *
8
11
  * If your app must self-host (air-gapped, strict CSP without `font-src`
@@ -10,15 +13,14 @@
10
13
  * this import and declare the same @font-face rules against your own /fonts/
11
14
  * paths — the theme only references the family names.
12
15
  *
13
- * Roles (per photon.codes): PolySans is the voice — body at 400, UI/headings/
14
- * hero slogans at 550 (`font-medium`); the `font-display` utility enables
15
- * `ss02`. Azeret Mono for code and small
16
- * labels — always normal case: the system bans all-caps small text for
17
- * eyebrows, section titles, and descriptions. Instrument Serif (often
16
+ * Roles: Inter is the text — body at 400, UI controls, navigation, and links
17
+ * at 600 (`font-medium`). PolySans is the headings — page, section, card,
18
+ * and step titles at Median 600 (`font-heading`); the `font-display`
19
+ * utility adds `ss02` for dialog and hero titles. Azeret Mono for code and
20
+ * small labels — always normal case: the system bans all-caps small text
21
+ * for eyebrows, section titles, and descriptions. Instrument Serif (often
18
22
  * italic) is the editorial accent.
19
23
  */
20
- @import "https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@100..900&display=swap";
21
-
22
24
  @font-face {
23
25
  font-family: "PolySans";
24
26
  src: url("https://assets.photon.codes/pho-ui/v1/PolySansVF.woff2")
@@ -45,3 +47,59 @@
45
47
  font-style: italic;
46
48
  font-display: swap;
47
49
  }
50
+
51
+ /* Inter, latin */
52
+ @font-face {
53
+ font-family: "Inter";
54
+ src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2")
55
+ format("woff2");
56
+ font-weight: 100 900;
57
+ font-style: normal;
58
+ font-display: swap;
59
+ unicode-range:
60
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
61
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
62
+ U+2215, U+FEFF, U+FFFD;
63
+ }
64
+
65
+ /* Inter, latin-ext */
66
+ @font-face {
67
+ font-family: "Inter";
68
+ src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2")
69
+ format("woff2");
70
+ font-weight: 100 900;
71
+ font-style: normal;
72
+ font-display: swap;
73
+ unicode-range:
74
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
75
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
76
+ U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
77
+ }
78
+
79
+ /* Azeret Mono, latin */
80
+ @font-face {
81
+ font-family: "Azeret Mono";
82
+ src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHhZfk.woff2")
83
+ format("woff2");
84
+ font-weight: 100 900;
85
+ font-style: normal;
86
+ font-display: swap;
87
+ unicode-range:
88
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
89
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
90
+ U+2215, U+FEFF, U+FFFD;
91
+ }
92
+
93
+ /* Azeret Mono, latin-ext */
94
+ @font-face {
95
+ font-family: "Azeret Mono";
96
+ src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHvZfnk3Q.woff2")
97
+ format("woff2");
98
+ font-weight: 100 900;
99
+ font-style: normal;
100
+ font-display: swap;
101
+ unicode-range:
102
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
103
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
104
+ U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
105
+ }
@@ -25,12 +25,18 @@
25
25
 
26
26
  @theme static {
27
27
  /* ============================== Fonts ============================== */
28
+ /* Two voices: Inter carries the text (body, UI controls, navigation,
29
+ links: the default `font-sans`), PolySans carries the headings (page,
30
+ section, card, and step titles: `font-heading`). */
28
31
  --font-sans:
32
+ "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
33
+ sans-serif;
34
+ --font-heading:
29
35
  "PolySans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
30
36
  Arial, sans-serif;
31
- --font-display: var(--font-sans);
37
+ --font-display: var(--font-heading);
32
38
  /* PolySans stylistic set 2 — the alternate display glyphs photon.codes
33
- enables on headings. `font-display` = family + ss02; pair it with the
39
+ enables on headings. `font-display` = PolySans + ss02; pair it with the
34
40
  text-display-* sizes on titles. */
35
41
  --font-display--font-feature-settings: "ss02";
36
42
  /* Serif accent — the site's italicized editorial voice. */
@@ -182,12 +188,13 @@
182
188
  /* ========================== Font weights ========================== */
183
189
  /* CLOSED set — three stops only; nothing else generates a utility:
184
190
  font-light (300) display/marketing lines · font-normal (400) body ·
185
- font-medium (550) UI controls, headings, and hero slogans (unified
186
- former 500 + 600). font-semibold is gone — use font-medium. */
191
+ font-medium (600) UI controls, headings, and hero slogans: Inter Semi
192
+ Bold in text, PolySans Median in headings. font-semibold is gone — use
193
+ font-medium. */
187
194
  --font-weight-*: initial;
188
195
  --font-weight-light: 300;
189
196
  --font-weight-normal: 400;
190
- --font-weight-medium: 550;
197
+ --font-weight-medium: 600;
191
198
 
192
199
  /* ============================= Radius ============================= */
193
200
  /* CLOSED set — three stops + Tailwind's rounded-full for pills: