@kyralabs/m3e-tokens 1.1.0 → 1.2.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 +28 -2
- package/fonts/fonts-rond.css +117 -0
- package/fonts/google-sans-flex-rond-canadian-aboriginal.woff2 +0 -0
- package/fonts/google-sans-flex-rond-cherokee.woff2 +0 -0
- package/fonts/google-sans-flex-rond-latin-ext.woff2 +0 -0
- package/fonts/google-sans-flex-rond-latin.woff2 +0 -0
- package/fonts/google-sans-flex-rond-math.woff2 +0 -0
- package/fonts/google-sans-flex-rond-nushu.woff2 +0 -0
- package/fonts/google-sans-flex-rond-symbols.woff2 +0 -0
- package/fonts/google-sans-flex-rond-syriac.woff2 +0 -0
- package/fonts/google-sans-flex-rond-tifinagh.woff2 +0 -0
- package/fonts/google-sans-flex-rond-vietnamese.woff2 +0 -0
- package/fonts/google-sans-flex.manifest.json +62 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -56,8 +56,34 @@ The CLI flags are `--secondary`, `--tertiary`, `--neutral`, `--neutral-variant`
|
|
|
56
56
|
With spec 2025 (the `tonalSpot`, `neutral`, `vibrant` and `expressive` variants) the outline and
|
|
57
57
|
surface-variant roles come from the neutral palette, so `neutralVariant` has no effect there.
|
|
58
58
|
|
|
59
|
+
## Font profiles
|
|
60
|
+
|
|
61
|
+
Import exactly one Google Sans Flex profile. Each registers the same `"Google Sans Flex"` family,
|
|
62
|
+
so the others are drop-in replacements for `fonts.css`, imported instead of it, not beside it.
|
|
63
|
+
|
|
64
|
+
| Entry | Variable axes | Latin chunk | All chunks |
|
|
65
|
+
| ------------------- | ---------------------------- | ----------- | ---------- |
|
|
66
|
+
| `./fonts.css` | wght, opsz (default) | 138.8 KiB | 328.5 KiB |
|
|
67
|
+
| `./fonts-rond.css` | wght, opsz, ROND | 205.2 KiB | 468.1 KiB |
|
|
68
|
+
| `./fonts-full.css` | wght, opsz, ROND, wdth, slnt | 1020.8 KiB | 2026.8 KiB |
|
|
69
|
+
|
|
70
|
+
Axes a profile drops are fixed at their defaults (wdth 100, ROND 0, slnt 0), so every profile
|
|
71
|
+
renders the typescale identically. Browsers download only the chunks a page's text needs.
|
|
72
|
+
`fonts-rond.css` adds roundness (0–100, default 0), which CSS can set only through
|
|
73
|
+
`font-variation-settings`; that property replaces any inherited value rather than merging with it,
|
|
74
|
+
so repeat other axes you set in the same declaration:
|
|
75
|
+
|
|
76
|
+
```css
|
|
77
|
+
@import '@kyralabs/m3e-tokens/fonts-rond.css'; /* instead of fonts.css */
|
|
78
|
+
|
|
79
|
+
.playful {
|
|
80
|
+
font-variation-settings: 'ROND' 100;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The typescale tokens do not use ROND, wdth or slnt (no Material source specifies values).
|
|
85
|
+
|
|
59
86
|
Other entries: `./components/<name>.css` (component tokens), `./material-symbols.css` (Rounded;
|
|
60
|
-
`-outlined` and `-sharp` too),
|
|
61
|
-
objects from `.` and `./components`.
|
|
87
|
+
`-outlined` and `-sharp` too), and JS token objects from `.` and `./components`.
|
|
62
88
|
|
|
63
89
|
Apache-2.0; see `LICENSE` and `NOTICE`. The bundled fonts carry their own licenses in `fonts/`.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by @kyralabs/m3e-codegen — do not edit.
|
|
3
|
+
* Google Sans Flex 5.000 from https://github.com/google/fonts/tree/bd8f81ddb5c74d5c8897b36ad88b440266245103/ofl/googlesansflex
|
|
4
|
+
* ROND profile (D15): wght + opsz + ROND variable; wdth and slnt fixed at their defaults.
|
|
5
|
+
* SIL Open Font License 1.1: see LICENSE-google-sans-flex.txt. "Google", "Google Sans" and
|
|
6
|
+
* "Google Sans Flex" are trademarks of Google LLC (TRADEMARKS-google-sans-flex.md);
|
|
7
|
+
* m3exp-web is not affiliated with or endorsed by Google.
|
|
8
|
+
*/
|
|
9
|
+
/* canadian-aboriginal */
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "Google Sans Flex";
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 1 1000;
|
|
14
|
+
font-stretch: 100%;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: url("./google-sans-flex-rond-canadian-aboriginal.woff2") format("woff2");
|
|
17
|
+
unicode-range: U+02C7, U+02D8-02D9, U+02DB, U+0307, U+1400-167F, U+18B0-18F5, U+25CC, U+11AB0-11ABF;
|
|
18
|
+
}
|
|
19
|
+
/* cherokee */
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "Google Sans Flex";
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 1 1000;
|
|
24
|
+
font-stretch: 100%;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url("./google-sans-flex-rond-cherokee.woff2") format("woff2");
|
|
27
|
+
unicode-range: U+0300-0302, U+0304, U+030B-030C, U+0323-0324, U+0330-0331, U+13A0-13FF, U+AB70-ABBF;
|
|
28
|
+
}
|
|
29
|
+
/* math */
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: "Google Sans Flex";
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 1 1000;
|
|
34
|
+
font-stretch: 100%;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
src: url("./google-sans-flex-rond-math.woff2") format("woff2");
|
|
37
|
+
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
|
|
38
|
+
}
|
|
39
|
+
/* nushu */
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: "Google Sans Flex";
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: 1 1000;
|
|
44
|
+
font-stretch: 100%;
|
|
45
|
+
font-display: swap;
|
|
46
|
+
src: url("./google-sans-flex-rond-nushu.woff2") format("woff2");
|
|
47
|
+
unicode-range: U+2003, U+3000, U+3002, U+4E00, U+FE12, U+16FE1, U+1B170-1B2FB;
|
|
48
|
+
}
|
|
49
|
+
/* symbols */
|
|
50
|
+
@font-face {
|
|
51
|
+
font-family: "Google Sans Flex";
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 1 1000;
|
|
54
|
+
font-stretch: 100%;
|
|
55
|
+
font-display: swap;
|
|
56
|
+
src: url("./google-sans-flex-rond-symbols.woff2") format("woff2");
|
|
57
|
+
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
|
|
58
|
+
}
|
|
59
|
+
/* syriac */
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: "Google Sans Flex";
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: 1 1000;
|
|
64
|
+
font-stretch: 100%;
|
|
65
|
+
font-display: swap;
|
|
66
|
+
src: url("./google-sans-flex-rond-syriac.woff2") format("woff2");
|
|
67
|
+
unicode-range: U+0303-0304, U+0307-0308, U+030A, U+0320, U+0323-0325, U+032D-032E, U+0330-0331, U+060C, U+061B-061C, U+061F, U+0621, U+0640, U+064B-0655, U+0660-066C, U+0670, U+0700-074F, U+0860-086A, U+1DF8, U+1DFA, U+200C-200F, U+25CC, U+2670-2671;
|
|
68
|
+
}
|
|
69
|
+
/* tifinagh */
|
|
70
|
+
@font-face {
|
|
71
|
+
font-family: "Google Sans Flex";
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-weight: 1 1000;
|
|
74
|
+
font-stretch: 100%;
|
|
75
|
+
font-display: swap;
|
|
76
|
+
src: url("./google-sans-flex-rond-tifinagh.woff2") format("woff2");
|
|
77
|
+
unicode-range: U+02C7, U+0301-0302, U+0304, U+0306-0309, U+0323, U+0331, U+200C-200D, U+202E, U+25CC, U+2D30-2D7F;
|
|
78
|
+
}
|
|
79
|
+
/* vietnamese */
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: "Google Sans Flex";
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 1 1000;
|
|
84
|
+
font-stretch: 100%;
|
|
85
|
+
font-display: swap;
|
|
86
|
+
src: url("./google-sans-flex-rond-vietnamese.woff2") format("woff2");
|
|
87
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
88
|
+
}
|
|
89
|
+
/* latin-ext */
|
|
90
|
+
@font-face {
|
|
91
|
+
font-family: "Google Sans Flex";
|
|
92
|
+
font-style: normal;
|
|
93
|
+
font-weight: 1 1000;
|
|
94
|
+
font-stretch: 100%;
|
|
95
|
+
font-display: swap;
|
|
96
|
+
src: url("./google-sans-flex-rond-latin-ext.woff2") format("woff2");
|
|
97
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
98
|
+
}
|
|
99
|
+
/* latin */
|
|
100
|
+
@font-face {
|
|
101
|
+
font-family: "Google Sans Flex";
|
|
102
|
+
font-style: normal;
|
|
103
|
+
font-weight: 1 1000;
|
|
104
|
+
font-stretch: 100%;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
src: url("./google-sans-flex-rond-latin.woff2") format("woff2");
|
|
107
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
108
|
+
}
|
|
109
|
+
/* Metric-matched fallback: Arial, measured from Arial Version 7.07 (sha256 edfbd22a3d088fc2) */
|
|
110
|
+
@font-face {
|
|
111
|
+
font-family: "Google Sans Flex Fallback";
|
|
112
|
+
src: local("Arial"), local("ArialMT");
|
|
113
|
+
size-adjust: 99.0041%;
|
|
114
|
+
ascent-override: 97.5717%;
|
|
115
|
+
descent-override: 28.8877%;
|
|
116
|
+
line-gap-override: 0%;
|
|
117
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -116,6 +116,68 @@
|
|
|
116
116
|
"sha256": "64b8c974bfbb8e0465b814b56b2a68e2cab91c8b24f76a9f6ee34bf1290a5b84"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
+
"fonts-rond.css": {
|
|
120
|
+
"canadian-aboriginal": {
|
|
121
|
+
"file": "google-sans-flex-rond-canadian-aboriginal.woff2",
|
|
122
|
+
"codepoints": 6,
|
|
123
|
+
"bytes": 4700,
|
|
124
|
+
"sha256": "892da8d731e2f5da5d44ef3a955440416a2bdac6819fe8b57caff1a969b0b346"
|
|
125
|
+
},
|
|
126
|
+
"cherokee": {
|
|
127
|
+
"file": "google-sans-flex-rond-cherokee.woff2",
|
|
128
|
+
"codepoints": 7,
|
|
129
|
+
"bytes": 5392,
|
|
130
|
+
"sha256": "730cd45a1a2c6bc16a6e5d11cfec03665a6f220ca6102b51631ab5fa3585a154"
|
|
131
|
+
},
|
|
132
|
+
"math": {
|
|
133
|
+
"file": "google-sans-flex-rond-math.woff2",
|
|
134
|
+
"codepoints": 33,
|
|
135
|
+
"bytes": 25712,
|
|
136
|
+
"sha256": "ca7c90aba7d7f887fcc160c8e9a4d52ad608778c2d3696de1764466f989094ea"
|
|
137
|
+
},
|
|
138
|
+
"nushu": {
|
|
139
|
+
"file": "google-sans-flex-rond-nushu.woff2",
|
|
140
|
+
"codepoints": 1,
|
|
141
|
+
"bytes": 30616,
|
|
142
|
+
"sha256": "a49b339bb64256297f7d225a3b66e2dc7951072b37d102e0652fea01b64584bc"
|
|
143
|
+
},
|
|
144
|
+
"symbols": {
|
|
145
|
+
"file": "google-sans-flex-rond-symbols.woff2",
|
|
146
|
+
"codepoints": 24,
|
|
147
|
+
"bytes": 47848,
|
|
148
|
+
"sha256": "c33f8cc87ecd5ea5e324eb75cfe0bb0f702248440a629c4fb4e1b291fedb0be3"
|
|
149
|
+
},
|
|
150
|
+
"syriac": {
|
|
151
|
+
"file": "google-sans-flex-rond-syriac.woff2",
|
|
152
|
+
"codepoints": 7,
|
|
153
|
+
"bytes": 4444,
|
|
154
|
+
"sha256": "3ad123ac2689161dd655040a0143a42bfc4e45eeb818327b551bbf73d26d5b80"
|
|
155
|
+
},
|
|
156
|
+
"tifinagh": {
|
|
157
|
+
"file": "google-sans-flex-rond-tifinagh.woff2",
|
|
158
|
+
"codepoints": 10,
|
|
159
|
+
"bytes": 6828,
|
|
160
|
+
"sha256": "b8bd8ea003e87cb403df174200a150f7b909a0f87e122bbba285cfe01f97f6b5"
|
|
161
|
+
},
|
|
162
|
+
"vietnamese": {
|
|
163
|
+
"file": "google-sans-flex-rond-vietnamese.woff2",
|
|
164
|
+
"codepoints": 110,
|
|
165
|
+
"bytes": 40512,
|
|
166
|
+
"sha256": "f8c8eafc892f9ee08d9fcd870a46ffbb02760b33003558358b355a03c3730802"
|
|
167
|
+
},
|
|
168
|
+
"latin-ext": {
|
|
169
|
+
"file": "google-sans-flex-rond-latin-ext.woff2",
|
|
170
|
+
"codepoints": 154,
|
|
171
|
+
"bytes": 103132,
|
|
172
|
+
"sha256": "ddde7a67bc5fbe6ca79ce9f4b45d68b46be153b3d939fab7f122fc8357f30ba9"
|
|
173
|
+
},
|
|
174
|
+
"latin": {
|
|
175
|
+
"file": "google-sans-flex-rond-latin.woff2",
|
|
176
|
+
"codepoints": 228,
|
|
177
|
+
"bytes": 210124,
|
|
178
|
+
"sha256": "673d4c3b468d3d889113109369d6948aa99a7ce4879d0dfca8cb29e9d81ec22d"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
119
181
|
"fonts-full.css": {
|
|
120
182
|
"canadian-aboriginal": {
|
|
121
183
|
"file": "google-sans-flex-full-canadian-aboriginal.woff2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyralabs/m3e-tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Generated Material 3 Expressive design tokens (CSS custom properties + JS objects) and self-hosted fonts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"material-design",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"./tokens.css": "./dist/generated/tokens.css",
|
|
63
63
|
"./components/*.css": "./dist/generated/components/*.css",
|
|
64
64
|
"./fonts.css": "./fonts/fonts.css",
|
|
65
|
+
"./fonts-rond.css": "./fonts/fonts-rond.css",
|
|
65
66
|
"./fonts-full.css": "./fonts/fonts-full.css",
|
|
66
67
|
"./material-symbols.css": "./fonts/material-symbols.css",
|
|
67
68
|
"./material-symbols-*.css": "./fonts/material-symbols-*.css",
|