@astryxdesign/theme-y2k 0.7.12-canary.ccb4a6d → 0.7.12-canary.da3dbdc

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/source.js CHANGED
@@ -297,7 +297,8 @@ var y2kTheme = (0, import_theme.defineTheme)({
297
297
  ],
298
298
  "--color-tint-hover": [neutral.light[15], neutral.dark[95]],
299
299
  // Typography override
300
- "--text-supporting-size": "12px",
300
+ "--text-supporting-size": "0.75rem",
301
+ // 12px at the default root size
301
302
  // Categorical colors
302
303
  "--color-background-green": [green.light[80], green.dark[80]],
303
304
  "--color-border-green": [green.light[75], green.dark[75]],
package/dist/source.mjs CHANGED
@@ -299,7 +299,8 @@ var y2kTheme = defineTheme({
299
299
  ],
300
300
  "--color-tint-hover": [neutral.light[15], neutral.dark[95]],
301
301
  // Typography override
302
- "--text-supporting-size": "12px",
302
+ "--text-supporting-size": "0.75rem",
303
+ // 12px at the default root size
303
304
  // Categorical colors
304
305
  "--color-background-green": [green.light[80], green.dark[80]],
305
306
  "--color-border-green": [green.light[75], green.dark[75]],
package/dist/theme.css CHANGED
@@ -86,18 +86,30 @@
86
86
 
87
87
  @scope ([data-astryx-theme="y2k"]) to ([data-astryx-theme]) {
88
88
  :scope {
89
- --font-size-4xs: 0.3125rem;
90
- --font-size-3xs: 0.4375rem;
91
- --font-size-2xs: 0.5rem;
92
- --font-size-xs: 0.625rem;
93
- --font-size-sm: 0.8125rem;
94
- --font-size-base: 1rem;
95
- --font-size-lg: 1.25rem;
96
- --font-size-xl: 1.5625rem;
97
- --font-size-2xl: 1.9375rem;
98
- --font-size-3xl: 2.4375rem;
99
- --font-size-4xl: 3.0625rem;
100
- --font-size-5xl: 3.8125rem;
89
+ --_scaled-font-size-4xs: min(calc(0.3125rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
90
+ --font-size-4xs: var(--_scaled-font-size-4xs);
91
+ --_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
92
+ --font-size-3xs: var(--_scaled-font-size-3xs);
93
+ --_scaled-font-size-2xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
94
+ --font-size-2xs: var(--_scaled-font-size-2xs);
95
+ --_scaled-font-size-xs: min(calc(0.625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
96
+ --font-size-xs: var(--_scaled-font-size-xs);
97
+ --_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
98
+ --font-size-sm: var(--_scaled-font-size-sm);
99
+ --_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
100
+ --font-size-base: var(--_scaled-font-size-base);
101
+ --_scaled-font-size-lg: min(calc(1.25rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
102
+ --font-size-lg: var(--_scaled-font-size-lg);
103
+ --_scaled-font-size-xl: min(calc(1.5625rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
104
+ --font-size-xl: var(--_scaled-font-size-xl);
105
+ --_scaled-font-size-2xl: min(calc(1.9375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
106
+ --font-size-2xl: var(--_scaled-font-size-2xl);
107
+ --_scaled-font-size-3xl: min(calc(2.4375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
108
+ --font-size-3xl: var(--_scaled-font-size-3xl);
109
+ --_scaled-font-size-4xl: min(calc(3.0625rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
110
+ --font-size-4xl: var(--_scaled-font-size-4xl);
111
+ --_scaled-font-size-5xl: calc(3.8125rem * var(--_dynamic-type-large-title, 1));
112
+ --font-size-5xl: var(--_scaled-font-size-5xl);
101
113
  --text-heading-1-size: var(--font-size-2xl);
102
114
  --text-heading-1-weight: var(--font-weight-semibold);
103
115
  --text-heading-1-leading: 1.4194;
@@ -128,7 +140,7 @@
128
140
  --text-code-size: var(--font-size-base);
129
141
  --text-code-weight: var(--font-weight-normal);
130
142
  --text-code-leading: 1.5;
131
- --text-supporting-size: 12px;
143
+ --text-supporting-size: calc(0.75rem * var(--_dynamic-type-footnote, 1));
132
144
  --text-supporting-weight: var(--font-weight-normal);
133
145
  --text-supporting-leading: 1.5385;
134
146
  --text-display-1-size: var(--font-size-5xl);
@@ -428,9 +440,17 @@
428
440
  background-color: var(--color-overlay-hover);
429
441
  }
430
442
 
443
+ @media not all and (pointer: coarse) {
431
444
  .astryx-top-nav-item[data-selected="selected"]:active {
432
445
  background-color: var(--color-overlay-pressed);
433
446
  }
447
+ }
448
+
449
+ @media (pointer: coarse) {
450
+ .astryx-top-nav-item[data-selected="selected"]:is([data-astryx-press="on"], [data-astryx-press="on"] :where(:not([data-astryx-pressable], [data-astryx-press="on"] [data-astryx-pressable] *)), :where(:not([data-astryx-pressable])):has([data-astryx-press="on"])) {
451
+ background-color: var(--color-overlay-pressed);
452
+ }
453
+ }
434
454
 
435
455
  .astryx-button {
436
456
  border-radius: 0px;
package/dist/y2k.js CHANGED
@@ -60,7 +60,7 @@ export const y2kTheme = {
60
60
  "--text-code-size": "var(--font-size-base)",
61
61
  "--text-code-weight": "var(--font-weight-normal)",
62
62
  "--text-code-leading": "1.5",
63
- "--text-supporting-size": "12px",
63
+ "--text-supporting-size": "0.75rem",
64
64
  "--text-supporting-weight": "var(--font-weight-normal)",
65
65
  "--text-supporting-leading": "1.5385",
66
66
  "--text-display-1-size": "var(--font-size-5xl)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-y2k",
3
- "version": "0.7.12-canary.ccb4a6d",
3
+ "version": "0.7.12-canary.da3dbdc",
4
4
  "displayName": "Y2K Theme",
5
5
  "private": false,
6
6
  "description": "Hot pinks, lime greens, and Poppins. Bubbly, playful, and unmistakably retro.",
@@ -71,11 +71,11 @@
71
71
  "lucide-react": "^1.18.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@astryxdesign/core": "0.7.12-canary.ccb4a6d",
74
+ "@astryxdesign/core": "0.7.12-canary.da3dbdc",
75
75
  "react": ">=19"
76
76
  },
77
77
  "devDependencies": {
78
- "@astryxdesign/cli": "0.7.12-canary.ccb4a6d"
78
+ "@astryxdesign/cli": "0.7.12-canary.da3dbdc"
79
79
  },
80
80
  "module": "./dist/source.mjs",
81
81
  "scripts": {
package/src/y2kTheme.ts CHANGED
@@ -236,7 +236,7 @@ export const y2kTheme = defineTheme({
236
236
  '--color-tint-hover': [neutral.light[15], neutral.dark[95]],
237
237
 
238
238
  // Typography override
239
- '--text-supporting-size': '12px',
239
+ '--text-supporting-size': '0.75rem', // 12px at the default root size
240
240
 
241
241
  // Categorical colors
242
242
  '--color-background-green': [green.light[80], green.dark[80]],