@viasat/beam-tokens 2.72.0 → 2.73.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 +22 -0
- package/package.json +1 -1
- package/themes/onefi.css +1351 -891
- package/tokens.css +842 -611
- package/tokens.scss +13 -12
- package/types/utils/constants/theme.d.ts +2 -1
- package/types/utils/constants/token-types.d.ts +8 -1
package/README.md
CHANGED
|
@@ -254,6 +254,28 @@ const App = () => (
|
|
|
254
254
|
);
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
+
The two forms are equivalent. Use whichever suits your markup, including on the
|
|
258
|
+
same element as the theme classes, as in the third example above.
|
|
259
|
+
|
|
260
|
+
#### Supported languages
|
|
261
|
+
|
|
262
|
+
| Code | Language | Default font |
|
|
263
|
+
| ---- | ------------------ | ------------------ |
|
|
264
|
+
| `ar` | Arabic | `Noto Sans Arabic` |
|
|
265
|
+
| `he` | Hebrew | `Noto Sans Hebrew` |
|
|
266
|
+
| `ja` | Japanese | `Noto Sans JP` |
|
|
267
|
+
| `th` | Thai | `Noto Sans Thai` |
|
|
268
|
+
| `zh` | Simplified Chinese | `Noto Sans SC` |
|
|
269
|
+
|
|
270
|
+
A code with no entry here does nothing. There is no error and no warning, the
|
|
271
|
+
rules simply are not generated, so check this table before reaching for a
|
|
272
|
+
locale Beam does not list.
|
|
273
|
+
|
|
274
|
+
Brand themes may override the default. `bm-onefi-emirates` under `lang="ar"`
|
|
275
|
+
asks for `Emirates`, and `bm-onefi-thai` under `lang="th"` asks for `Prompt`.
|
|
276
|
+
Beam does not bundle licensed brand fonts, so your application has to load
|
|
277
|
+
those files itself. The default fonts above ship with `@viasat/beam-fonts`.
|
|
278
|
+
|
|
257
279
|
> 💡 **Note**: Language codes should follow the ISO 639-1 standard. In some cases, the browser may automatically apply the correct font based on the language attribute.
|
|
258
280
|
|
|
259
281
|
## How It Works
|