@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/README.md +1 -1
- package/dist/chunks/IconAlertTriangleFilled-QV-gsVQW.js +11 -0
- package/dist/chunks/IconAlertTriangleFilled-QV-gsVQW.js.map +1 -0
- package/dist/chunks/{basic-page-BKvtEQkZ.js → basic-page-DTomHxEo.js} +9 -9
- package/dist/chunks/basic-page-DTomHxEo.js.map +1 -0
- package/dist/chunks/{card-zyRAihYE.js → card-Bg2V2B0x.js} +17 -17
- package/dist/chunks/card-Bg2V2B0x.js.map +1 -0
- package/dist/chunks/{error-yAVi4cBu.js → error-BObcQClz.js} +86 -68
- package/dist/chunks/error-BObcQClz.js.map +1 -0
- package/dist/chunks/{stat-BXBfMQ9Q.js → stat-VxA1SvS_.js} +8 -8
- package/dist/chunks/{stat-BXBfMQ9Q.js.map → stat-VxA1SvS_.js.map} +1 -1
- package/dist/chunks/{toast-DrLKzrDJ.js → toast-B3oURNJC.js} +33 -35
- package/dist/chunks/toast-B3oURNJC.js.map +1 -0
- package/dist/components/card.js +1 -1
- package/dist/components/error.js +11 -10
- package/dist/components/stat.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/index.js +151 -150
- package/dist/sections/basic-page.js +1 -1
- package/dist/src/components/error/error.d.ts +21 -0
- package/package.json +1 -1
- package/src/styles/fonts.css +67 -9
- package/src/styles/theme.css +12 -5
- package/dist/chunks/basic-page-BKvtEQkZ.js.map +0 -1
- package/dist/chunks/card-zyRAihYE.js.map +0 -1
- package/dist/chunks/error-yAVi4cBu.js.map +0 -1
- package/dist/chunks/toast-DrLKzrDJ.js.map +0 -1
package/package.json
CHANGED
package/src/styles/fonts.css
CHANGED
|
@@ -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
|
|
5
|
-
* Fonts CDN,
|
|
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
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
+
}
|
package/src/styles/theme.css
CHANGED
|
@@ -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-
|
|
37
|
+
--font-display: var(--font-heading);
|
|
32
38
|
/* PolySans stylistic set 2 — the alternate display glyphs photon.codes
|
|
33
|
-
enables on headings. `font-display` =
|
|
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 (
|
|
186
|
-
|
|
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:
|
|
197
|
+
--font-weight-medium: 600;
|
|
191
198
|
|
|
192
199
|
/* ============================= Radius ============================= */
|
|
193
200
|
/* CLOSED set — three stops + Tailwind's rounded-full for pills:
|