@abgov/design-tokens 1.4.2 → 1.5.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.
Files changed (35) hide show
  1. package/data/component-design-tokens/accordion-design-tokens.json +6 -4
  2. package/data/component-design-tokens/badge-design-tokens.json +103 -0
  3. package/data/component-design-tokens/button-design-tokens.json +326 -8
  4. package/data/component-design-tokens/button-group-design-tokens.json +12 -0
  5. package/data/component-design-tokens/checkbox-design-tokens.json +99 -0
  6. package/data/component-design-tokens/container-design-tokens.json +146 -0
  7. package/data/component-design-tokens/date-picker-design-tokens.json +102 -0
  8. package/data/component-design-tokens/details-design-tokens.json +84 -0
  9. package/data/component-design-tokens/divider-design-tokens.json +6 -0
  10. package/data/component-design-tokens/dropdown-design-tokens.json +110 -0
  11. package/data/component-design-tokens/file-uploader-design-tokens.json +102 -0
  12. package/data/component-design-tokens/footer-design-tokens.json +74 -0
  13. package/data/component-design-tokens/form-item-design-tokens.json +46 -0
  14. package/data/component-design-tokens/form-stepper-design-tokens.json +98 -0
  15. package/data/component-design-tokens/header-design-tokens.json +70 -0
  16. package/data/component-design-tokens/hero-banner-design-tokens.json +22 -0
  17. package/data/component-design-tokens/icon-button-design-tokens.json +74 -0
  18. package/data/component-design-tokens/input-design-tokens.json +90 -0
  19. package/data/component-design-tokens/microsite-header-design-tokens.json +66 -0
  20. package/data/component-design-tokens/modal-design-tokens.json +53 -0
  21. package/data/component-design-tokens/notification-banner-design-tokens.json +90 -0
  22. package/data/component-design-tokens/popover-design-tokens.json +33 -0
  23. package/data/component-design-tokens/progress-indicator-design-tokens.json +22 -0
  24. package/data/component-design-tokens/radio-design-tokens.json +138 -0
  25. package/data/component-design-tokens/scrollable-design-tokens.json +12 -0
  26. package/data/component-design-tokens/side-menu-design-tokens.json +175 -14
  27. package/data/component-design-tokens/skeleton-loading-design-tokens.json +6 -0
  28. package/data/component-design-tokens/table-design-tokens.json +4 -0
  29. package/data/component-design-tokens/tabs-design-tokens.json +78 -0
  30. package/data/component-design-tokens/text-area-design-tokens.json +67 -0
  31. package/data/component-design-tokens/tooltip-design-tokens.json +38 -0
  32. package/data/goa-global-design-tokens.json +252 -215
  33. package/dist/tokens.css +552 -59
  34. package/dist/tokens.scss +552 -59
  35. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ {
2
+ "step-border": {
3
+ "value": {
4
+ "width": "{borderWidth.xl}",
5
+ "style": "solid",
6
+ "color": "{step-color-border-active}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "step-color-bg": {
11
+ "value": "{color.greyscale.white}",
12
+ "type": "color"
13
+ },
14
+ "step-color-bg-active": {
15
+ "value": "{color.greyscale.white}",
16
+ "type": "color"
17
+ },
18
+ "step-color-bg-complete": {
19
+ "value": "{color.interactive.default}",
20
+ "type": "color"
21
+ },
22
+ "step-color-bg-incomplete": {
23
+ "value": "{color.greyscale.white}",
24
+ "type": "color"
25
+ },
26
+ "step-color-border": {
27
+ "value": "{color.greyscale.400}",
28
+ "type": "color"
29
+ },
30
+ "step-color-border-active": {
31
+ "value": "{color.interactive.default}",
32
+ "type": "color"
33
+ },
34
+ "step-color-border-complete": {
35
+ "value": "{color.interactive.default}",
36
+ "type": "color"
37
+ },
38
+ "step-color-border-incomplete": {
39
+ "value": "{color.interactive.default}",
40
+ "type": "color"
41
+ },
42
+ "step-color-label": {
43
+ "value": "{color.text.default}",
44
+ "type": "color"
45
+ },
46
+ "step-color-step-number": {
47
+ "value": "{color.text.secondary}",
48
+ "type": "color"
49
+ },
50
+ "step-color-sublabel": {
51
+ "value": "{color.text.secondary}",
52
+ "type": "color"
53
+ },
54
+ "step-gap-small-screen": {
55
+ "value": "0px",
56
+ "type": "spacing"
57
+ },
58
+ "step-padding": {
59
+ "value": "{space.l}",
60
+ "type": "spacing"
61
+ },
62
+ "step-padding-vertical": {
63
+ "value": "{space.2xs} {space.l}",
64
+ "type": "spacing"
65
+ },
66
+ "step-size": {
67
+ "value": "2.5rem",
68
+ "type": "sizing"
69
+ },
70
+ "step-typography-label": {
71
+ "value": "{typography.body.s}",
72
+ "type": "other"
73
+ },
74
+ "step-typography-label-active": {
75
+ "value": "{typography.heading.xs}",
76
+ "type": "other"
77
+ },
78
+ "step-typography-step-number": {
79
+ "value": "{typography.heading.xs}",
80
+ "type": "other"
81
+ },
82
+ "step-typography-sublabel": {
83
+ "value": "{typography.body.xs}",
84
+ "type": "other"
85
+ },
86
+ "stepper-color-line": {
87
+ "value": "{color.greyscale.200}",
88
+ "type": "color"
89
+ },
90
+ "stepper-color-line-active": {
91
+ "value": "{color.interactive.default}",
92
+ "type": "color"
93
+ },
94
+ "stepper-line-thickness": {
95
+ "value": "4px",
96
+ "type": "sizing"
97
+ }
98
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "app-header-border-bottom": {
3
+ "value": {
4
+ "width": "{borderWidth.s}",
5
+ "style": "solid",
6
+ "color": "{color.greyscale.200}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "app-header-border-top-menu-item": {
11
+ "value": "inset 0 1px 0 0 {color.greyscale.200}",
12
+ "type": "other"
13
+ },
14
+ "app-header-border-bottom-menu-item": {
15
+ "value": "inset 0 -1px 0 0 {color.greyscale.200}",
16
+ "type": "other"
17
+ },
18
+ "app-header-padding-nav-item-with-children": {
19
+ "value": "{space.m} {space.s} {space.s}",
20
+ "type": "spacing"
21
+ },
22
+ "app-header-padding-secondary-nav-item-in-menu": {
23
+ "value": "9px {space.m} 9px {space.xl}",
24
+ "type": "spacing"
25
+ },
26
+ "app-header-padding-secondary-nav-item-in-menu-mobile": {
27
+ "value": "9px {space.m} 9px 80px",
28
+ "type": "spacing"
29
+ },
30
+ "app-header-color-bg": {
31
+ "value": "{color.greyscale.white}",
32
+ "type": "color"
33
+ },
34
+ "app-header-color-text-nav-item": {
35
+ "value": "{color.text.default}",
36
+ "type": "color"
37
+ },
38
+ "app-header-color-text-nav-item-hover": {
39
+ "value": "{color.interactive.hover}",
40
+ "type": "color"
41
+ },
42
+ "app-header-color-text-nav-item-focus": {
43
+ "value": "{color.interactive.hover}",
44
+ "type": "color"
45
+ },
46
+ "app-header-color-text-nav-item-current": {
47
+ "value": "{color.text.default}",
48
+ "type": "color"
49
+ },
50
+ "app-header-color-menu-button": {
51
+ "value": "{color.text.default}",
52
+ "type": "color"
53
+ },
54
+ "app-header-color-menu-button-hover": {
55
+ "value": "{color.interactive.hover}",
56
+ "type": "color"
57
+ },
58
+ "app-header-color-menu-button-focus": {
59
+ "value": "{color.interactive.hover}",
60
+ "type": "color"
61
+ },
62
+ "app-header-padding-desktop": {
63
+ "value": "{space.3xl}",
64
+ "type": "spacing"
65
+ },
66
+ "app-header-padding-logo-mobile": {
67
+ "value": "{space.s} {space.m}",
68
+ "type": "spacing"
69
+ }
70
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "hero-banner-padding": {
3
+ "value": "{space.2xl} 0",
4
+ "type": "spacing"
5
+ },
6
+ "hero-banner-mobile-padding": {
7
+ "value": "{space.xl} 0",
8
+ "type": "spacing"
9
+ },
10
+ "hero-banner-content-gap": {
11
+ "value": "{space.l} 0 0",
12
+ "type": "spacing"
13
+ },
14
+ "hero-banner-heading": {
15
+ "value": "{typography.heading.xl}",
16
+ "type": "other"
17
+ },
18
+ "hero-banner-content": {
19
+ "value": "{typography.body.l}",
20
+ "type": "other"
21
+ }
22
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "icon-button-default-color": {
3
+ "value": "{color.interactive.default}",
4
+ "type": "color"
5
+ },
6
+ "icon-button-default-hover-color": {
7
+ "value": "{color.interactive.hover}",
8
+ "type": "color"
9
+ },
10
+ "icon-button-default-focus-color": {
11
+ "value": "{color.interactive.hover}",
12
+ "type": "color"
13
+ },
14
+ "icon-button-default-hover-color-bg": {
15
+ "value": "{color.greyscale.100}",
16
+ "type": "color"
17
+ },
18
+ "icon-button-default-disabled-color": {
19
+ "value": "{color.interactive.disabled}",
20
+ "type": "color"
21
+ },
22
+ "icon-button-light-color": {
23
+ "value": "{color.greyscale.white}",
24
+ "type": "color"
25
+ },
26
+ "icon-button-light-hover-color-bg": {
27
+ "value": "{color.greyscale.700}",
28
+ "type": "color"
29
+ },
30
+ "icon-button-light-disabled-color": {
31
+ "value": "{color.greyscale.500}",
32
+ "type": "color"
33
+ },
34
+ "icon-button-dark-color": {
35
+ "value": "{color.greyscale.black}",
36
+ "type": "color"
37
+ },
38
+ "icon-button-dark-hover-color-bg": {
39
+ "value": "{color.greyscale.100}",
40
+ "type": "color"
41
+ },
42
+ "icon-button-dark-disabled-color-bg": {
43
+ "value": "{color.greyscale.500}",
44
+ "type": "color"
45
+ },
46
+ "icon-button-destructive-color": {
47
+ "value": "{color.emergency.default}",
48
+ "type": "color"
49
+ },
50
+ "icon-button-destructive-hover-color-bg": {
51
+ "value": "{color.emergency.light}",
52
+ "type": "color"
53
+ },
54
+ "icon-button-destructive-disabled-color": {
55
+ "value": "{color.interactive.error-disabled}",
56
+ "type": "color"
57
+ },
58
+ "icon-button-large-border-radius": {
59
+ "value": "{borderRadius.xl}",
60
+ "type": "borderRadius"
61
+ },
62
+ "icon-button-medium-border-radius": {
63
+ "value": "{borderRadius.m}",
64
+ "type": "borderRadius"
65
+ },
66
+ "icon-button-large-padding": {
67
+ "value": "{space.xs}",
68
+ "type": "spacing"
69
+ },
70
+ "icon-button-medium-padding": {
71
+ "value": "{space.2xs}",
72
+ "type": "spacing"
73
+ }
74
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "text-input-border": {
3
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.700}",
4
+ "type": "other"
5
+ },
6
+ "text-input-border-disabled": {
7
+ "value": {
8
+ "width": "1px",
9
+ "style": "solid",
10
+ "color": "{color.greyscale.200}"
11
+ },
12
+ "type": "border"
13
+ },
14
+ "text-input-border-error": {
15
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.error}",
16
+ "type": "other"
17
+ },
18
+ "text-input-border-focus": {
19
+ "value": "0 0 0 {borderWidth.l} {color.interactive.focus}",
20
+ "type": "other"
21
+ },
22
+ "text-input-border-hover": {
23
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.hover}",
24
+ "type": "other"
25
+ },
26
+ "text-input-border-radius": {
27
+ "value": "{borderRadius.m}",
28
+ "type": "borderRadius"
29
+ },
30
+ "text-input-color-bg": {
31
+ "value": "{color.greyscale.white}",
32
+ "type": "color"
33
+ },
34
+ "text-input-color-bg-disabled": {
35
+ "value": "{color.greyscale.100}",
36
+ "type": "color"
37
+ },
38
+ "text-input-color-icon-disabled": {
39
+ "value": "{color.greyscale.500}",
40
+ "type": "color"
41
+ },
42
+ "text-input-color-text": {
43
+ "value": "{color.text.default}",
44
+ "type": "color"
45
+ },
46
+ "text-input-color-text-disabled": {
47
+ "value": "{color.text.secondary}",
48
+ "type": "color"
49
+ },
50
+ "text-input-color-text-placeholder": {
51
+ "value": "{color.text.secondary}",
52
+ "type": "color"
53
+ },
54
+ "text-input-lt-content-color-bg": {
55
+ "value": "{color.greyscale.100}",
56
+ "type": "color"
57
+ },
58
+ "text-input-lt-content-color-text": {
59
+ "value": "{color.text.default}",
60
+ "type": "color"
61
+ },
62
+ "text-input-padding": {
63
+ "value": "7px {text-input-padding-lr} 9px",
64
+ "type": "spacing"
65
+ },
66
+ "text-input-padding-lr": {
67
+ "value": "{space.s}",
68
+ "type": "spacing"
69
+ },
70
+ "text-input-space-btw-icon-text": {
71
+ "value": "{space.xs}",
72
+ "type": "spacing"
73
+ },
74
+ "text-input-size-icon": {
75
+ "value": "",
76
+ "type": "sizing"
77
+ },
78
+ "text-input-color-icon": {
79
+ "value": "",
80
+ "type": "color"
81
+ },
82
+ "text-input-transition": {
83
+ "value": "box-shadow 0.05s ease-in",
84
+ "type": "other"
85
+ },
86
+ "text-input-typography": {
87
+ "value": "{typography.body.m}",
88
+ "type": "other"
89
+ }
90
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "microsite-header-alpha-badge-color": {
3
+ "value": "{color.warning.default}",
4
+ "type": "color"
5
+ },
6
+ "microsite-header-alpha-badge-color-text": {
7
+ "value": "{color.text.default}",
8
+ "type": "color"
9
+ },
10
+ "microsite-header-beta-badge-color": {
11
+ "value": "{color.brand.default}",
12
+ "type": "color"
13
+ },
14
+ "microsite-header-beta-badge-color-text": {
15
+ "value": "{color.text.light}",
16
+ "type": "color"
17
+ },
18
+ "microsite-header-color-bg": {
19
+ "value": "{color.greyscale.100}",
20
+ "type": "color"
21
+ },
22
+ "microsite-header-color-links": {
23
+ "value": "{color.interactive.default}",
24
+ "type": "color"
25
+ },
26
+ "microsite-header-color-links-hover": {
27
+ "value": "{color.interactive.hover}",
28
+ "type": "color"
29
+ },
30
+ "microsite-header-color-version-number": {
31
+ "value": "{color.text.secondary}",
32
+ "type": "color"
33
+ },
34
+ "microsite-header-gap": {
35
+ "value": "{space.m}",
36
+ "type": "spacing"
37
+ },
38
+ "microsite-header-link-focus-border": {
39
+ "value": {
40
+ "width": "{borderWidth.l}",
41
+ "style": "solid",
42
+ "color": "{color.interactive.focus}"
43
+ },
44
+ "type": "border"
45
+ },
46
+ "microsite-header-padding-large-screen": {
47
+ "value": "{space.2xs} {space.3xl}",
48
+ "type": "spacing"
49
+ },
50
+ "microsite-header-padding-medium-screen": {
51
+ "value": "{space.2xs} {space.xl}",
52
+ "type": "spacing"
53
+ },
54
+ "microsite-header-padding-small-screen": {
55
+ "value": "{space.2xs} {space.m}",
56
+ "type": "spacing"
57
+ },
58
+ "microsite-header-typography": {
59
+ "value": "{typography.body.xs}",
60
+ "type": "other"
61
+ },
62
+ "microsite-header-typography-version-number": {
63
+ "value": "{fontSize.1}",
64
+ "type": "other"
65
+ }
66
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "modal-border-radius": {
3
+ "value": "{borderRadius.m}",
4
+ "type": "borderRadius"
5
+ },
6
+ "modal-callout-bar-padding": {
7
+ "value": "{space.xl}",
8
+ "type": "spacing"
9
+ },
10
+ "modal-callout-bar-padding-small-screen": {
11
+ "value": "{space.s} {space.s} {space.s} {space.l}",
12
+ "type": "spacing"
13
+ },
14
+ "modal-content-gap": {
15
+ "value": "{space.l}",
16
+ "type": "spacing"
17
+ },
18
+ "modal-content-gap-small-screen": {
19
+ "value": "{space.m}",
20
+ "type": "spacing"
21
+ },
22
+ "modal-header-typography": {
23
+ "value": "{typography.heading.m}",
24
+ "type": "other"
25
+ },
26
+ "modal-overlay-color": {
27
+ "value": "{color.greyscale.black}",
28
+ "type": "color"
29
+ },
30
+ "modal-padding": {
31
+ "value": "{space.xl}",
32
+ "type": "spacing"
33
+ },
34
+ "modal-padding-small-screen": {
35
+ "value": "{space.l}",
36
+ "type": "spacing"
37
+ },
38
+ "modal-shadow": {
39
+ "value": {
40
+ "x": "6",
41
+ "y": "6",
42
+ "blur": "6",
43
+ "spread": "6",
44
+ "color": "rgba(0,0,0,0.16)",
45
+ "type": "dropShadow"
46
+ },
47
+ "type": "boxShadow"
48
+ },
49
+ "modal-overlay-opacity": {
50
+ "value": "{opacity.background.modal}",
51
+ "type": "opacity"
52
+ }
53
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "notification-banner-emergency-color-bg": {
3
+ "value": "{color.emergency.default}",
4
+ "type": "color"
5
+ },
6
+ "notification-banner-emergency-color-icon": {
7
+ "value": "{color.greyscale.white}",
8
+ "type": "color"
9
+ },
10
+ "notification-banner-emergency-color-text": {
11
+ "value": "{color.text.light}",
12
+ "type": "color"
13
+ },
14
+ "notification-banner-event-color-bg": {
15
+ "value": "{color.info.default}",
16
+ "type": "color"
17
+ },
18
+ "notification-banner-event-color-icon": {
19
+ "value": "{color.greyscale.white}",
20
+ "type": "color"
21
+ },
22
+ "notification-banner-event-color-text": {
23
+ "value": "{color.text.light}",
24
+ "type": "color"
25
+ },
26
+ "notification-banner-gap": {
27
+ "value": "{space.m}",
28
+ "type": "spacing"
29
+ },
30
+ "notification-banner-important-color-bg": {
31
+ "value": "{color.warning.default}",
32
+ "type": "color"
33
+ },
34
+ "notification-banner-important-color-icon": {
35
+ "value": "{color.greyscale.black}",
36
+ "type": "color"
37
+ },
38
+ "notification-banner-important-color-text": {
39
+ "value": "{color.text.default}",
40
+ "type": "color"
41
+ },
42
+ "notification-banner-information-color-bg": {
43
+ "value": "{color.info.default}",
44
+ "type": "color"
45
+ },
46
+ "notification-banner-information-color-icon": {
47
+ "value": "{color.greyscale.white}",
48
+ "type": "color"
49
+ },
50
+ "notification-banner-information-color-text": {
51
+ "value": "{color.text.light}",
52
+ "type": "color"
53
+ },
54
+ "notification-banner-padding-lr-large-screen": {
55
+ "value": "{space.3xl}",
56
+ "type": "spacing"
57
+ },
58
+ "notification-banner-padding-lr-medium-screen": {
59
+ "value": "{space.l}",
60
+ "type": "spacing"
61
+ },
62
+ "notification-banner-padding-lr-small-screen": {
63
+ "value": "{space.m}",
64
+ "type": "spacing"
65
+ },
66
+ "notification-banner-padding-tb": {
67
+ "value": "{space.l}",
68
+ "type": "spacing"
69
+ },
70
+ "notification-banner-size-icon": {
71
+ "value": "{iconSize.4}",
72
+ "type": "sizing"
73
+ },
74
+ "notification-banner-text-size": {
75
+ "value": "{typography.body.m}",
76
+ "type": "other"
77
+ },
78
+ "notification-banner-custom-color-bg": {
79
+ "value": "{color.info.default}",
80
+ "type": "color"
81
+ },
82
+ "notification-banner-custom-color-icon": {
83
+ "value": "{color.greyscale.white}",
84
+ "type": "color"
85
+ },
86
+ "notification-banner-custom-color-text": {
87
+ "value": "{color.text.light}",
88
+ "type": "color"
89
+ }
90
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "popover-border-focus": {
3
+ "value": {
4
+ "width": "{borderWidth.l}",
5
+ "style": "solid",
6
+ "color": "{color.interactive.focus}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "popover-border-radius": {
11
+ "value": "{borderRadius.m}",
12
+ "type": "borderRadius"
13
+ },
14
+ "popover-color-bg": {
15
+ "value": "{color.greyscale.white}",
16
+ "type": "color"
17
+ },
18
+ "popover-padding": {
19
+ "value": "{space.s}",
20
+ "type": "spacing"
21
+ },
22
+ "popover-shadow": {
23
+ "value": {
24
+ "x": "0",
25
+ "y": "3",
26
+ "blur": "6",
27
+ "spread": "0",
28
+ "color": "rgba(0, 0, 0, 0.25)",
29
+ "type": "dropShadow"
30
+ },
31
+ "type": "boxShadow"
32
+ }
33
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "circular-progress-color-background": {
3
+ "value": "rgba(255, 255, 255, 0.9)",
4
+ "type": "color"
5
+ },
6
+ "circular-progress-large-margin-top": {
7
+ "value": "{space.xl}",
8
+ "type": "spacing"
9
+ },
10
+ "circular-progress-large-text": {
11
+ "value": "{typography.body.l}",
12
+ "type": "other"
13
+ },
14
+ "circular-progress-small-margin-top": {
15
+ "value": "{space.l}",
16
+ "type": "spacing"
17
+ },
18
+ "circular-progress-small-text": {
19
+ "value": "{typography.body.m}",
20
+ "type": "other"
21
+ }
22
+ }