@starlove/orbit 1.4.0 → 1.4.1
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/dist/full/index.html +2 -2
- package/dist/full/js/{app.62905fcb.js → app.4e6fbe20.js} +71 -71
- package/dist/full/js/app.4e6fbe20.js.map +7 -0
- package/dist/full/version.json +2 -2
- package/package.json +1 -1
- package/public/index.html +1 -1
- package/public/js/font-preference.js +5 -4
- package/public/styles.css +2 -2
- package/dist/full/js/app.62905fcb.js.map +0 -7
package/dist/full/version.json
CHANGED
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export const FONT_STORAGE_KEY = "orbit_font_preferences";
|
|
2
2
|
export const FONT_CHANGE_EVENT = "orbit:font-preference-change";
|
|
3
3
|
|
|
4
|
-
// Inter is the default site font and for most categories;
|
|
5
|
-
// Orbitron. The site font drives global font metrics such as size,
|
|
6
|
-
// and line-height.
|
|
4
|
+
// Inter is the default site font and for most categories; headings and badges
|
|
5
|
+
// default to Orbitron. The site font drives global font metrics such as size,
|
|
6
|
+
// spacing, and line-height.
|
|
7
7
|
export const DEFAULT_SITE_FONT = "inter";
|
|
8
|
+
export const DEFAULT_HEADING_FONT = "orbitron";
|
|
8
9
|
export const DEFAULT_BADGE_FONT = "orbitron";
|
|
9
10
|
export const DEFAULT_USER_SCALE = 1;
|
|
10
11
|
export const USER_SCALE_MIN = 0.85;
|
|
@@ -97,7 +98,7 @@ export const LEGACY_FONT_TARGET_ALIASES = Object.freeze({
|
|
|
97
98
|
|
|
98
99
|
export const DEFAULT_FONT_TARGET_PREFERENCES = Object.freeze({
|
|
99
100
|
control: DEFAULT_SITE_FONT,
|
|
100
|
-
heading:
|
|
101
|
+
heading: DEFAULT_HEADING_FONT,
|
|
101
102
|
label: DEFAULT_SITE_FONT,
|
|
102
103
|
badge: DEFAULT_BADGE_FONT
|
|
103
104
|
});
|
package/public/styles.css
CHANGED
|
@@ -358,8 +358,8 @@ input[type="file"] {
|
|
|
358
358
|
--orbit-font-system:
|
|
359
359
|
"Aptos Display", "Bahnschrift", "Segoe UI Variable", "Segoe UI",
|
|
360
360
|
sans-serif;
|
|
361
|
-
/* Inter is the default font
|
|
362
|
-
|
|
361
|
+
/* Inter is the default site/body font; headings and badges default to
|
|
362
|
+
Orbitron via font-preference.js / the inline script in index.html. */
|
|
363
363
|
--orbit-font-default:
|
|
364
364
|
"Orbit Inter", "Inter", "Segoe UI Variable", "Segoe UI", Arial,
|
|
365
365
|
sans-serif;
|