@solexllc/usx-theme 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solexllc/usx-theme",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Design tokens package for USX.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,16 +35,18 @@
35
35
 
36
36
  // Omits null/false values; an optional second argument guards composites
37
37
  // so partial values like `1px solid null` never reach the CSS output.
38
- @function usx-when($condition, $value: $condition) {
38
+ // An optional third argument supplies a fallback for when $condition is
39
+ // falsy, for compile-time constants that always have a usable value.
40
+ @function usx-when($condition, $value: $condition, $fallback: null) {
39
41
  @if not $condition {
40
- @return null;
42
+ @return $fallback;
41
43
  }
42
44
 
43
45
  @return $value;
44
46
  }
45
47
 
46
48
  // ── Layout (compile-time only) ───────────────────────────────────────────────
47
- $max-layout-width: 60rem !default;
49
+ $max-layout-width: 64rem !default;
48
50
  $max-sidebar-width: 16rem !default;
49
51
 
50
52
  // ── Breakpoints (compile-time only) ─────────────────────────────────────────