@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 +1 -1
- package/src/styles/fonts.css +16 -7
package/package.json
CHANGED
package/src/styles/fonts.css
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Photon brand fonts
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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("/
|
|
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("/
|
|
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("/
|
|
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("/
|
|
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;
|