@photon-ai/pho-ui 0.5.0 → 0.6.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": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Pho Design System — Photon's React component library, built on Base UI",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1,7 +1,12 @@
1
1
  /**
2
- * Photon brand fonts. Optional — import only if you self-host these files at
3
- * `/fonts/...` (or override the URLs). Pulled in by the docs site; product apps
4
- * may already ship these fonts.
2
+ * Photon brand fonts, served from the shared asset CDN
3
+ * (assets.photon.codes — public R2, versioned path, immutable caching, CORS
4
+ * enabled). Import this and the fonts just work; no files to copy.
5
+ *
6
+ * If your app must self-host (air-gapped, strict CSP without
7
+ * `font-src https://assets.photon.codes`), skip this import and declare the
8
+ * same four @font-face rules against your own /fonts/ paths — the theme only
9
+ * references the family names.
5
10
  *
6
11
  * Roles (per photon.codes): PolySans is the voice — body/UI 400–500, headings
7
12
  * 550–600 (enable `ss02` on display text). Azeret Mono for code and small
@@ -11,7 +16,8 @@
11
16
  */
12
17
  @font-face {
13
18
  font-family: "PolySans";
14
- src: url("/fonts/PolySansVF.woff2") format("woff2");
19
+ src: url("https://assets.photon.codes/pho-ui/v1/PolySansVF.woff2")
20
+ format("woff2");
15
21
  font-weight: 100 900;
16
22
  font-style: normal;
17
23
  font-display: swap;
@@ -19,7 +25,8 @@
19
25
 
20
26
  @font-face {
21
27
  font-family: "Azeret Mono";
22
- src: url("/fonts/AzeretMono-VariableFont_wght.ttf") format("truetype");
28
+ src: url("https://assets.photon.codes/pho-ui/v1/AzeretMono-VariableFont_wght.ttf")
29
+ format("truetype");
23
30
  font-weight: 100 900;
24
31
  font-style: normal;
25
32
  font-display: swap;
@@ -27,7 +34,8 @@
27
34
 
28
35
  @font-face {
29
36
  font-family: "Instrument Serif";
30
- src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
37
+ src: url("https://assets.photon.codes/pho-ui/v1/InstrumentSerif-Regular.woff2")
38
+ format("woff2");
31
39
  font-weight: 400;
32
40
  font-style: normal;
33
41
  font-display: swap;
@@ -35,7 +43,8 @@
35
43
 
36
44
  @font-face {
37
45
  font-family: "Instrument Serif";
38
- src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2");
46
+ src: url("https://assets.photon.codes/pho-ui/v1/InstrumentSerif-Italic.woff2")
47
+ format("woff2");
39
48
  font-weight: 400;
40
49
  font-style: italic;
41
50
  font-display: swap;