@nswds/tokens 4.1.0 → 4.2.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.
@@ -2,19 +2,8 @@
2
2
  "font-family": {
3
3
  "sans": {
4
4
  "$type": "fontFamily",
5
- "$value": [
6
- "Public Sans",
7
- "-apple-system",
8
- "BlinkMacSystemFont",
9
- "Segoe UI",
10
- "Noto Sans",
11
- "Helvetica",
12
- "Arial",
13
- "sans-serif",
14
- "Apple Color Emoji",
15
- "Segoe UI Emoji"
16
- ],
17
- "$description": "Primary typeface — Public Sans (the NSW Government brand typeface) with system, Helvetica/Arial, and emoji fallbacks. Use for all UI and body text.",
5
+ "$value": "Public Sans",
6
+ "$description": "Primary typeface — Public Sans (the NSW Government brand typeface). Use for all UI and body text.",
18
7
  "$extensions": {
19
8
  "com.figma": {
20
9
  "hiddenFromPublishing": false,
@@ -29,19 +18,8 @@
29
18
  },
30
19
  "display": {
31
20
  "$type": "fontFamily",
32
- "$value": [
33
- "Public Sans",
34
- "-apple-system",
35
- "BlinkMacSystemFont",
36
- "Segoe UI",
37
- "Noto Sans",
38
- "Helvetica",
39
- "Arial",
40
- "sans-serif",
41
- "Apple Color Emoji",
42
- "Segoe UI Emoji"
43
- ],
44
- "$description": "Display typeface — currently the same stack as sans; a separate token so display/heading type can diverge from body text later without a breaking change.",
21
+ "$value": "Public Sans",
22
+ "$description": "Display typeface — currently the same typeface as sans; a separate token so display/heading type can diverge from body text later without a breaking change.",
45
23
  "$extensions": {
46
24
  "com.figma": {
47
25
  "hiddenFromPublishing": false,
@@ -56,19 +34,8 @@
56
34
  },
57
35
  "system": {
58
36
  "$type": "fontFamily",
59
- "$value": [
60
- "Public Sans",
61
- "-apple-system",
62
- "BlinkMacSystemFont",
63
- "Segoe UI",
64
- "Noto Sans",
65
- "Helvetica",
66
- "Arial",
67
- "sans-serif",
68
- "Apple Color Emoji",
69
- "Segoe UI Emoji"
70
- ],
71
- "$description": "System typeface — currently the same stack as sans; a separate token for system-chrome contexts (toasts, native-feeling UI) that may diverge later.",
37
+ "$value": "Public Sans",
38
+ "$description": "System typeface — currently the same typeface as sans; a separate token for system-chrome contexts (toasts, native-feeling UI) that may diverge later.",
72
39
  "$extensions": {
73
40
  "com.figma": {
74
41
  "hiddenFromPublishing": false,
@@ -83,17 +50,8 @@
83
50
  },
84
51
  "mono": {
85
52
  "$type": "fontFamily",
86
- "$value": [
87
- "JetBrains Mono",
88
- "ui-monospace",
89
- "SFMono-Regular",
90
- "SF Mono",
91
- "Menlo",
92
- "Consolas",
93
- "Liberation Mono",
94
- "monospace"
95
- ],
96
- "$description": "Monospace stack — JetBrains Mono with ui-monospace and system fallbacks for code, tabular data, and technical content.",
53
+ "$value": "JetBrains Mono",
54
+ "$description": "Monospace typeface — JetBrains Mono for code, tabular data, and technical content.",
97
55
  "$extensions": {
98
56
  "com.figma": {
99
57
  "hiddenFromPublishing": false,
@@ -438,8 +396,8 @@
438
396
  "line-height": {
439
397
  "none": {
440
398
  "$type": "number",
441
- "$value": 1,
442
- "$description": "Solid (1) — display headings set at their own size (48/48, 56/56, 64/64 in the prose scale).",
399
+ "$value": 100,
400
+ "$description": "Solid (100%) — display headings set at their own size (48/48, 56/56, 64/64 in the prose scale).",
443
401
  "$extensions": {
444
402
  "com.figma": {
445
403
  "hiddenFromPublishing": false,
@@ -454,8 +412,8 @@
454
412
  },
455
413
  "tight": {
456
414
  "$type": "number",
457
- "$value": 1.2,
458
- "$description": "Tight (1.2) — large headings (36/30 in the prose scale).",
415
+ "$value": 120,
416
+ "$description": "Tight (120%) — large headings (36/30 in the prose scale).",
459
417
  "$extensions": {
460
418
  "com.figma": {
461
419
  "hiddenFromPublishing": false,
@@ -470,8 +428,8 @@
470
428
  },
471
429
  "snug": {
472
430
  "$type": "number",
473
- "$value": 1.3333333,
474
- "$description": "Snug (1.3333333) — mid-size headings (32/24, 40/30 in the prose scale).",
431
+ "$value": 133.3333282,
432
+ "$description": "Snug (133.33%) — mid-size headings (32/24, 40/30 in the prose scale).",
475
433
  "$extensions": {
476
434
  "com.figma": {
477
435
  "hiddenFromPublishing": false,
@@ -486,8 +444,8 @@
486
444
  },
487
445
  "base": {
488
446
  "$type": "number",
489
- "$value": 1.5,
490
- "$description": "Base (1.5) — default for UI text and dense content (24/16, 36/24 in the prose scale); meets WCAG 1.4.12 text-spacing.",
447
+ "$value": 150,
448
+ "$description": "Base (150%) — default for UI text and dense content (24/16, 36/24 in the prose scale); meets WCAG 1.4.12 text-spacing.",
491
449
  "$extensions": {
492
450
  "com.figma": {
493
451
  "hiddenFromPublishing": false,
@@ -502,8 +460,8 @@
502
460
  },
503
461
  "relaxed": {
504
462
  "$type": "number",
505
- "$value": 1.6,
506
- "$description": "Relaxed (1.6) — subheadings and lead text (32/20 in the prose scale).",
463
+ "$value": 160,
464
+ "$description": "Relaxed (160%) — subheadings and lead text (32/20 in the prose scale).",
507
465
  "$extensions": {
508
466
  "com.figma": {
509
467
  "hiddenFromPublishing": false,
@@ -518,8 +476,8 @@
518
476
  },
519
477
  "loose": {
520
478
  "$type": "number",
521
- "$value": 1.75,
522
- "$description": "Loose (1.75) — long-form body text (28/16 in the prose scale).",
479
+ "$value": 175,
480
+ "$description": "Loose (175%) — long-form body text (28/16 in the prose scale).",
523
481
  "$extensions": {
524
482
  "com.figma": {
525
483
  "hiddenFromPublishing": false,
@@ -536,8 +494,8 @@
536
494
  "letter-spacing": {
537
495
  "tight": {
538
496
  "$type": "number",
539
- "$value": -0.0125,
540
- "$description": "Tight tracking (-0.0125em) — large display headings. Value is an em multiplier; string outputs render it with the em unit.",
497
+ "$value": -1.25,
498
+ "$description": "Tight tracking (-1.25%) — large display headings.",
541
499
  "$extensions": {
542
500
  "com.figma": {
543
501
  "hiddenFromPublishing": false,
@@ -553,7 +511,7 @@
553
511
  "normal": {
554
512
  "$type": "number",
555
513
  "$value": 0,
556
- "$description": "Normal tracking (0em) — default for body text. Value is an em multiplier; string outputs render it with the em unit.",
514
+ "$description": "Normal tracking (0%) — default for body text.",
557
515
  "$extensions": {
558
516
  "com.figma": {
559
517
  "hiddenFromPublishing": false,
@@ -568,8 +526,8 @@
568
526
  },
569
527
  "wide": {
570
528
  "$type": "number",
571
- "$value": 0.025,
572
- "$description": "Wide tracking (0.025em) — small caps, overlines, and small labels. Value is an em multiplier; string outputs render it with the em unit.",
529
+ "$value": 2.5,
530
+ "$description": "Wide tracking (2.5%) — small caps, overlines, and small labels.",
573
531
  "$extensions": {
574
532
  "com.figma": {
575
533
  "hiddenFromPublishing": false,
@@ -0,0 +1,132 @@
1
+ {
2
+ "z-index": {
3
+ "base": {
4
+ "$type": "number",
5
+ "$value": 0,
6
+ "$description": "Base stacking level (0) — default in-flow content.",
7
+ "$extensions": {
8
+ "com.figma": {
9
+ "hiddenFromPublishing": false,
10
+ "scopes": [
11
+ "ALL_SCOPES"
12
+ ],
13
+ "codeSyntax": {
14
+ "WEB": "var(--z-index-base)"
15
+ }
16
+ }
17
+ }
18
+ },
19
+ "dropdown": {
20
+ "$type": "number",
21
+ "$value": 1000,
22
+ "$description": "Dropdown menus and select popups.",
23
+ "$extensions": {
24
+ "com.figma": {
25
+ "hiddenFromPublishing": false,
26
+ "scopes": [
27
+ "ALL_SCOPES"
28
+ ],
29
+ "codeSyntax": {
30
+ "WEB": "var(--z-index-dropdown)"
31
+ }
32
+ }
33
+ }
34
+ },
35
+ "sticky": {
36
+ "$type": "number",
37
+ "$value": 1100,
38
+ "$description": "Sticky elements that pin on scroll (headers, toolbars).",
39
+ "$extensions": {
40
+ "com.figma": {
41
+ "hiddenFromPublishing": false,
42
+ "scopes": [
43
+ "ALL_SCOPES"
44
+ ],
45
+ "codeSyntax": {
46
+ "WEB": "var(--z-index-sticky)"
47
+ }
48
+ }
49
+ }
50
+ },
51
+ "overlay": {
52
+ "$type": "number",
53
+ "$value": 1200,
54
+ "$description": "Full-screen overlay scrims sitting behind modal content.",
55
+ "$extensions": {
56
+ "com.figma": {
57
+ "hiddenFromPublishing": false,
58
+ "scopes": [
59
+ "ALL_SCOPES"
60
+ ],
61
+ "codeSyntax": {
62
+ "WEB": "var(--z-index-overlay)"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "modal": {
68
+ "$type": "number",
69
+ "$value": 1300,
70
+ "$description": "Modal dialogs and side sheets.",
71
+ "$extensions": {
72
+ "com.figma": {
73
+ "hiddenFromPublishing": false,
74
+ "scopes": [
75
+ "ALL_SCOPES"
76
+ ],
77
+ "codeSyntax": {
78
+ "WEB": "var(--z-index-modal)"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "popover": {
84
+ "$type": "number",
85
+ "$value": 1400,
86
+ "$description": "Popovers anchored to a trigger, above modals.",
87
+ "$extensions": {
88
+ "com.figma": {
89
+ "hiddenFromPublishing": false,
90
+ "scopes": [
91
+ "ALL_SCOPES"
92
+ ],
93
+ "codeSyntax": {
94
+ "WEB": "var(--z-index-popover)"
95
+ }
96
+ }
97
+ }
98
+ },
99
+ "toast": {
100
+ "$type": "number",
101
+ "$value": 1500,
102
+ "$description": "Toast and snackbar notifications.",
103
+ "$extensions": {
104
+ "com.figma": {
105
+ "hiddenFromPublishing": false,
106
+ "scopes": [
107
+ "ALL_SCOPES"
108
+ ],
109
+ "codeSyntax": {
110
+ "WEB": "var(--z-index-toast)"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "tooltip": {
116
+ "$type": "number",
117
+ "$value": 1600,
118
+ "$description": "Tooltips — the top-most interactive layer.",
119
+ "$extensions": {
120
+ "com.figma": {
121
+ "hiddenFromPublishing": false,
122
+ "scopes": [
123
+ "ALL_SCOPES"
124
+ ],
125
+ "codeSyntax": {
126
+ "WEB": "var(--z-index-tooltip)"
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nswds/tokens",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "Design tokens for NSW Government digital products, providing colour tokens, theme outputs, and brand assets for use across CSS, SCSS, Less, JavaScript, TypeScript, JSON, Tailwind, Figma, and DTCG-compatible workflows.",
5
5
  "license": "MPL-2.0",
6
6
  "keywords": [