@drivy/cobalt 0.25.1 → 0.26.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.
Files changed (63) hide show
  1. package/cjs/tokens/theme.js +86 -79
  2. package/cjs/tokens/theme.js.map +1 -1
  3. package/components/Callout/index.js +3 -1
  4. package/components/Callout/index.js.map +1 -1
  5. package/components/Flash/index.js +1 -1
  6. package/components/Flash/index.js.map +1 -1
  7. package/components/Rating/RatingIcons.js +2 -2
  8. package/components/Rating/RatingIcons.js.map +1 -1
  9. package/package.json +13 -13
  10. package/styles/components/BasicCell/index.scss +8 -6
  11. package/styles/components/BulletList/index.scss +2 -2
  12. package/styles/components/Buttons/GhostButton/index.scss +4 -4
  13. package/styles/components/Buttons/index.scss +5 -3
  14. package/styles/components/Calendar/CalendarRangePicker/index.scss +39 -17
  15. package/styles/components/Calendar/CalendarView/index.scss +10 -9
  16. package/styles/components/Callout/index.scss +37 -29
  17. package/styles/components/Card/index.scss +9 -10
  18. package/styles/components/Cell/index.scss +5 -4
  19. package/styles/components/Chip/index.scss +12 -15
  20. package/styles/components/EmptyState/index.scss +5 -5
  21. package/styles/components/Flash/index.scss +21 -7
  22. package/styles/components/Form/Autocomplete/index.scss +3 -3
  23. package/styles/components/Form/CheckablePill.scss +3 -3
  24. package/styles/components/Form/Checkmark.scss +3 -3
  25. package/styles/components/Form/ComposedField.scss +2 -2
  26. package/styles/components/Form/Fieldset.scss +6 -6
  27. package/styles/components/Form/Hint.scss +3 -3
  28. package/styles/components/Form/RadioWithDetails.scss +1 -1
  29. package/styles/components/Form/Select.scss +1 -1
  30. package/styles/components/Form/Slider.scss +7 -7
  31. package/styles/components/Form/Stepper.scss +2 -2
  32. package/styles/components/Form/TextArea.scss +2 -2
  33. package/styles/components/Form/TextInput.scss +1 -1
  34. package/styles/components/Form/ToggleSwitch.scss +4 -4
  35. package/styles/components/Form/field.scss +5 -5
  36. package/styles/components/Form/form.scss +2 -2
  37. package/styles/components/Helper/index.scss +1 -1
  38. package/styles/components/Icon/iconColors.scss +46 -42
  39. package/styles/components/Icon/index.scss +9 -2
  40. package/styles/components/Modal/index.scss +1 -1
  41. package/styles/components/Note/index.scss +2 -2
  42. package/styles/components/Pill/index.scss +3 -5
  43. package/styles/components/Popover/index.scss +1 -1
  44. package/styles/components/PriceTable/index.scss +1 -1
  45. package/styles/components/ProgressBar/index.scss +6 -5
  46. package/styles/components/Rating/index.scss +3 -3
  47. package/styles/components/TabBar/index.scss +9 -12
  48. package/styles/components/Tabs/index.scss +9 -11
  49. package/styles/components/Tag/index.scss +3 -2
  50. package/styles/core/_colors-map.scss +81 -74
  51. package/styles/core/card.scss +1 -0
  52. package/styles/core/color.scss +4 -0
  53. package/styles/core/global-variables.scss +1 -1
  54. package/styles/core/text.scss +29 -8
  55. package/styles/core/theme.scss +64 -57
  56. package/styles/core/typography.scss +14 -12
  57. package/styles/global/typography.scss +1 -1
  58. package/styles/index.scss +1 -1
  59. package/tokens/theme.js +86 -79
  60. package/tokens/theme.js.map +1 -1
  61. package/types/components/Icon/index.d.ts +1 -1
  62. package/types/tokens/index.d.ts +73 -66
  63. package/utilities.css +132 -108
@@ -2,11 +2,11 @@
2
2
 
3
3
  .cobalt- {
4
4
  &Hint {
5
- @include text-style-body;
5
+ @include c-text-body-md;
6
6
 
7
7
  position: relative;
8
8
 
9
- margin-top: spacing(extra-tight);
9
+ margin-top: spacing(xs);
10
10
  margin-left: 1px;
11
11
 
12
12
  display: flex;
@@ -23,7 +23,7 @@
23
23
  justify-content: center;
24
24
  align-items: flex-start;
25
25
  flex-shrink: 0;
26
- margin-right: spacing(extra-tight);
26
+ margin-right: spacing(xs);
27
27
  }
28
28
 
29
29
  &--success {
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .cobalt-radio-with-details__description {
55
- @include text-style-body;
55
+ @include c-text-body-md;
56
56
  color: color(grey, dark);
57
57
 
58
58
  transition: color 150ms ease-in-out;
@@ -11,7 +11,7 @@
11
11
  &__Input {
12
12
  @include form-input-base($self);
13
13
 
14
- padding-right: spacing(medium);
14
+ padding-right: spacing(lg);
15
15
 
16
16
  line-height: 20px;
17
17
 
@@ -5,15 +5,15 @@
5
5
  $self: &;
6
6
 
7
7
  @include withContext(".cobalt-FormField--withHint >") {
8
- padding-bottom: spacing(tight);
8
+ padding-bottom: spacing(sm);
9
9
  }
10
10
 
11
11
  width: 100%;
12
12
 
13
13
  [data-reach-slider-input][data-orientation="horizontal"] {
14
14
  height: 3px;
15
- padding-top: spacing(tight);
16
- padding-bottom: spacing(tight);
15
+ padding-top: spacing(sm);
16
+ padding-bottom: spacing(sm);
17
17
  width: 100%;
18
18
  }
19
19
 
@@ -26,19 +26,19 @@
26
26
  }
27
27
 
28
28
  [data-reach-slider-handle] {
29
- width: spacing(base);
30
- height: spacing(base);
29
+ width: spacing(md);
30
+ height: spacing(md);
31
31
  border-width: 0;
32
32
 
33
33
  background: color(white);
34
34
 
35
- box-shadow: elevation(light), 0 0 0 1px color(grey);
35
+ box-shadow: elevation(base), 0 0 0 1px color(grey);
36
36
  border-radius: 50%;
37
37
  }
38
38
 
39
39
  [data-reach-slider-handle]:not([aria-disabled]):focus {
40
40
  outline: none;
41
- box-shadow: elevation(light), 0 0 0 2px color(indigo);
41
+ box-shadow: elevation(base), 0 0 0 2px color(indigo);
42
42
  }
43
43
 
44
44
  [data-reach-slider-track][data-disabled] {
@@ -21,7 +21,7 @@
21
21
  display: flex;
22
22
  justify-content: center;
23
23
  align-items: center;
24
- margin: 0 spacing(tight);
24
+ margin: 0 spacing(sm);
25
25
  min-width: 96px;
26
26
 
27
27
  font-size: 32px;
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  &__Meta {
33
- margin-left: spacing(extra-tight);
33
+ margin-left: spacing(xs);
34
34
 
35
35
  font-size: 15px;
36
36
 
@@ -26,12 +26,12 @@
26
26
 
27
27
  &__RemainingChars {
28
28
  @include withContext(".cobalt-FormField--withHint") {
29
- bottom: spacing(base);
29
+ bottom: spacing(md);
30
30
  }
31
31
 
32
32
  position: absolute;
33
33
 
34
- bottom: spacing(extra-tight);
34
+ bottom: spacing(xs);
35
35
 
36
36
  width: 100%;
37
37
 
@@ -12,7 +12,7 @@
12
12
  &__Icon {
13
13
  position: absolute;
14
14
  top: 0;
15
- left: spacing(extra-tight);
15
+ left: spacing(xs);
16
16
 
17
17
  height: 100%;
18
18
  display: flex;
@@ -79,7 +79,7 @@ $toggle-switch-size-large: 28px;
79
79
 
80
80
  position: relative;
81
81
 
82
- margin-bottom: spacing(extra-tight);
82
+ margin-bottom: spacing(xs);
83
83
 
84
84
  align-items: center;
85
85
  flex-direction: row;
@@ -104,7 +104,7 @@ $toggle-switch-size-large: 28px;
104
104
 
105
105
  flex: 1;
106
106
 
107
- padding: 0 spacing(tight) 0 0;
107
+ padding: 0 spacing(sm) 0 0;
108
108
 
109
109
  font-weight: 400;
110
110
  font-family: font-family(base);
@@ -233,7 +233,7 @@ $toggle-switch-size-large: 28px;
233
233
  }
234
234
 
235
235
  .cobalt-Hint {
236
- margin: spacing(extra-tight) 0 0 1px;
236
+ margin: spacing(xs) 0 0 1px;
237
237
  }
238
238
 
239
239
  &--large {
@@ -252,7 +252,7 @@ $toggle-switch-size-large: 28px;
252
252
  }
253
253
 
254
254
  .cobalt-ToggleSwitchField__Label {
255
- padding: 0 0 0 spacing(tight);
255
+ padding: 0 0 0 spacing(sm);
256
256
  }
257
257
  }
258
258
  }
@@ -3,7 +3,7 @@ $formfield-maxwidth: 600px;
3
3
 
4
4
  @mixin form-field-container {
5
5
  @include withContext(".cobalt-FormField--withHint >") {
6
- padding-bottom: spacing(tight);
6
+ padding-bottom: spacing(sm);
7
7
  }
8
8
 
9
9
  width: 100%;
@@ -17,7 +17,7 @@ $formfield-maxwidth: 600px;
17
17
 
18
18
  .cobalt- {
19
19
  &FormField {
20
- margin: spacing(extra-tight) 0 spacing(tight) 0;
20
+ margin: spacing(xs) 0 spacing(sm) 0;
21
21
 
22
22
  min-width: $formfield-minwidth;
23
23
 
@@ -46,17 +46,17 @@ $formfield-maxwidth: 600px;
46
46
  }
47
47
 
48
48
  .cobalt-Hint {
49
- margin-top: -(spacing(extra-tight)); // to compensate the extra space added to animate the Tip
49
+ margin-top: -(spacing(xs)); // to compensate the extra space added to animate the Tip
50
50
 
51
51
  animation-name: cobalt-FormField__Hint--fade-in;
52
52
  animation-duration: 200ms;
53
53
  }
54
54
 
55
55
  & + .cobalt-FormField {
56
- margin-top: spacing(base);
56
+ margin-top: spacing(md);
57
57
 
58
58
  > .cobalt-FormField__Label {
59
- margin-top: spacing(extra-tight);
59
+ margin-top: spacing(xs);
60
60
  }
61
61
  }
62
62
  }
@@ -62,7 +62,7 @@ $form-element--error-color: color(red);
62
62
 
63
63
  color: color(graphite);
64
64
 
65
- box-shadow: elevation(light);
65
+ box-shadow: elevation(base);
66
66
  }
67
67
 
68
68
  &:not(:disabled):not(:read-only):focus {
@@ -81,7 +81,7 @@ $form-element--error-color: color(red);
81
81
 
82
82
  outline: none;
83
83
 
84
- box-shadow: elevation(light);
84
+ box-shadow: elevation(base);
85
85
  }
86
86
 
87
87
  &:disabled,
@@ -9,7 +9,7 @@
9
9
  border-radius: border-radius(xl);
10
10
 
11
11
  &__title {
12
- @include text-style-title-small;
12
+ @include c-text-title-sm;
13
13
  @include text-color(base);
14
14
  }
15
15
 
@@ -2,6 +2,32 @@
2
2
  /* GENERATED WHEN BUILDING COBALT */
3
3
  /*** DO NOT MODIFY IT DIRECTLY ****/
4
4
  /**********************************/
5
+ .cobalt-Icon--colorBase {
6
+ fill: var(--c-icon-base);
7
+ }
8
+
9
+ .cobalt-Icon--colorBaseInteractive {
10
+ fill: var(--c-icon-baseInteractive);
11
+ }
12
+
13
+ .cobalt-Icon--colorBaseInteractive:hover,
14
+ .cobalt-Icon--colorBaseInteractive:focus {
15
+ fill: var(--c-icon-baseInteractive--hover);
16
+ }
17
+
18
+ .cobalt-Icon--colorSubdued {
19
+ fill: var(--c-icon-subdued);
20
+ }
21
+
22
+ .cobalt-Icon--colorSubduedInteractive {
23
+ fill: var(--c-icon-subduedInteractive);
24
+ }
25
+
26
+ .cobalt-Icon--colorSubduedInteractive:hover,
27
+ .cobalt-Icon--colorSubduedInteractive:focus {
28
+ fill: var(--c-icon-subduedInteractive--hover);
29
+ }
30
+
5
31
  .cobalt-Icon--colorAccent {
6
32
  fill: var(--c-icon-accent);
7
33
  }
@@ -28,25 +54,8 @@
28
54
  fill: var(--c-icon-accentAltInteractive--hover);
29
55
  }
30
56
 
31
- .cobalt-Icon--colorBase {
32
- fill: var(--c-icon-base);
33
- }
34
-
35
- .cobalt-Icon--colorBaseInteractive {
36
- fill: var(--c-icon-baseInteractive);
37
- }
38
-
39
- .cobalt-Icon--colorBaseInteractive:hover,
40
- .cobalt-Icon--colorBaseInteractive:focus {
41
- fill: var(--c-icon-baseInteractive--hover);
42
- }
43
-
44
- .cobalt-Icon--colorConnect {
45
- fill: var(--c-icon-connect);
46
- }
47
-
48
- .cobalt-Icon--colorDriver {
49
- fill: var(--c-icon-driver);
57
+ .cobalt-Icon--colorInfo {
58
+ fill: var(--c-icon-info);
50
59
  }
51
60
 
52
61
  .cobalt-Icon--colorError {
@@ -57,43 +66,38 @@
57
66
  fill: var(--c-icon-errorAlt);
58
67
  }
59
68
 
60
- .cobalt-Icon--colorInfo {
61
- fill: var(--c-icon-info);
62
- }
63
-
64
- .cobalt-Icon--colorInfoAlt {
65
- fill: var(--c-icon-infoAlt);
69
+ .cobalt-Icon--colorSuccess {
70
+ fill: var(--c-icon-success);
66
71
  }
67
72
 
68
- .cobalt-Icon--colorInversed {
69
- fill: var(--c-icon-inversed);
73
+ .cobalt-Icon--colorSuccessAlt {
74
+ fill: var(--c-icon-successAlt);
70
75
  }
71
76
 
72
- .cobalt-Icon--colorOwner {
73
- fill: var(--c-icon-owner);
77
+ .cobalt-Icon--colorConnect {
78
+ fill: var(--c-icon-connect);
74
79
  }
75
80
 
76
- .cobalt-Icon--colorSubdued {
77
- fill: var(--c-icon-subdued);
81
+ .cobalt-Icon--colorDriver {
82
+ fill: var(--c-icon-driver);
78
83
  }
79
84
 
80
- .cobalt-Icon--colorSubduedInteractive {
81
- fill: var(--c-icon-subduedInteractive);
85
+ .cobalt-Icon--colorOwner {
86
+ fill: var(--c-icon-owner);
82
87
  }
83
88
 
84
- .cobalt-Icon--colorSubduedInteractive:hover,
85
- .cobalt-Icon--colorSubduedInteractive:focus {
86
- fill: var(--c-icon-subduedInteractive--hover);
89
+ .cobalt-Icon--colorWarning {
90
+ fill: var(--c-icon-warning);
87
91
  }
88
92
 
89
- .cobalt-Icon--colorSuccess {
90
- fill: var(--c-icon-success);
93
+ .cobalt-Icon--colorInfoAlt {
94
+ fill: var(--c-icon-infoAlt);
91
95
  }
92
96
 
93
- .cobalt-Icon--colorSuccessAlt {
94
- fill: var(--c-icon-successAlt);
97
+ .cobalt-Icon--colorInversed {
98
+ fill: var(--c-icon-inversed);
95
99
  }
96
100
 
97
- .cobalt-Icon--colorWarning {
98
- fill: var(--c-icon-warning);
101
+ .cobalt-Icon--colorDisabled {
102
+ fill: var(--c-icon-disabled);
99
103
  }
@@ -24,18 +24,25 @@
24
24
  }
25
25
 
26
26
  &Icon--contained {
27
+ @include bg-color(secondary);
27
28
  height: 40px;
28
29
  width: 40px;
29
30
  padding: math.div(40px - 24px, 2);
30
31
 
31
32
  border-radius: 50%;
32
- background: #fff;
33
- box-shadow: elevation(light);
33
+ box-shadow: elevation(base);
34
34
  }
35
35
 
36
36
  &Icon--size16 {
37
37
  height: 16px;
38
38
  width: 16px;
39
+
40
+ &.cobalt-Icon--contained {
41
+ height: 28px;
42
+ width: 28px;
43
+
44
+ padding: math.div(28px - 16px, 2);
45
+ }
39
46
  }
40
47
 
41
48
  &Icon--size20 {
@@ -43,7 +43,7 @@ $reach-ui-dialog-margin-top: 10vh;
43
43
  &[data-reach-dialog-content] {
44
44
  bottom: 0;
45
45
 
46
- max-height: calc(100% - #{spacing(loose)});
46
+ max-height: calc(100% - #{spacing(xl)});
47
47
 
48
48
  border-radius: 16px 16px 0 0;
49
49
  }
@@ -1,7 +1,7 @@
1
1
  .cobalt- {
2
2
  &Note {
3
- @include text-style-body;
4
- @include text-style--bodySubdued;
3
+ @include c-text-body-md;
4
+ @include text-color(info);
5
5
  @include bg-color(info);
6
6
 
7
7
  display: inline-block;
@@ -20,7 +20,7 @@ $group-item-spacing: spacing(xs);
20
20
  &Pill--large {
21
21
  $pill-height: 40px;
22
22
  height: $pill-height;
23
- padding: spacing(xs) spacing();
23
+ padding: spacing(xs) spacing(md);
24
24
 
25
25
  border-radius: $pill-height;
26
26
  }
@@ -30,10 +30,8 @@ $group-item-spacing: spacing(xs);
30
30
  }
31
31
 
32
32
  &Pill--overlayed {
33
- @include text-color(inversed);
34
-
35
- // FIXME NEW COLORS: this background doesn't match any semantic color
36
- background-color: rgba(color(graphite), 0.5);
33
+ @include bg-color(accentAlt);
34
+ @include text-color(accentAlt);
37
35
  }
38
36
 
39
37
  &Pill__Icon {
@@ -4,7 +4,7 @@
4
4
 
5
5
  [data-theme~="cobalt-popover"] {
6
6
  &.tippy-box {
7
- box-shadow: elevation(strong);
7
+ box-shadow: elevation(lg);
8
8
  }
9
9
 
10
10
  .tippy-content {
@@ -1,6 +1,6 @@
1
1
  .cobalt- {
2
2
  &PriceTable__Row {
3
- @include text-style-body;
3
+ @include c-text-body-md;
4
4
 
5
5
  display: flex;
6
6
  justify-content: space-between;
@@ -6,12 +6,13 @@
6
6
  }
7
7
 
8
8
  &ProgressBar__Progression {
9
- @include text-style-title;
9
+ @include c-text-title-md;
10
10
  @include text-color(infoAlt);
11
11
  }
12
12
 
13
13
  &ProgressBar__Title {
14
- @include text-style-title-tiny;
14
+ @include c-text-title-sm;
15
+ @include text-color(base);
15
16
  }
16
17
 
17
18
  &ProgressBar__CompletedCheckbox {
@@ -21,7 +22,7 @@
21
22
  }
22
23
 
23
24
  &ProgressBar__Container {
24
- @include bg-color(neutral);
25
+ @include fill-bg-color(subdued);
25
26
  position: relative;
26
27
 
27
28
  margin-top: spacing(sm);
@@ -33,7 +34,7 @@
33
34
  }
34
35
 
35
36
  &ProgressBar__Foreground {
36
- @include semantic-color(secondary, fill, background-color);
37
+ @include fill-bg-color(secondary);
37
38
  position: absolute;
38
39
  left: 0;
39
40
  top: 0;
@@ -44,7 +45,7 @@
44
45
  }
45
46
 
46
47
  &ProgressBar__Tick {
47
- @include bg-color(neutral);
48
+ @include fill-bg-color(secondary);
48
49
  position: absolute;
49
50
  top: -6px;
50
51
  right: 0;
@@ -10,9 +10,9 @@
10
10
  }
11
11
 
12
12
  .cobalt-rating__label {
13
+ @include text-color(subdued);
13
14
  line-height: 14px;
14
15
  font-size: 14px;
15
- color: color(graphite, light);
16
16
  }
17
17
 
18
18
  .cobalt-rating-input {
@@ -81,8 +81,8 @@
81
81
  &:not(:hover):not(:focus-visible) input:focus {
82
82
  // focus feedback with keyboard navigation only
83
83
  & + .cobalt-Icon {
84
- border-radius: spacing(unit);
85
- box-shadow: 0 0 0 1px color(turquoise);
84
+ @include border(accent);
85
+ border-radius: spacing("2xs");
86
86
  }
87
87
  }
88
88
 
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  &TabBar__ScrollControl {
10
- flex: 0 0 spacing(medium);
10
+ flex: 0 0 spacing(lg);
11
11
  display: flex;
12
12
  }
13
13
 
@@ -41,6 +41,7 @@
41
41
  }
42
42
 
43
43
  &TabScroller--underlined:after {
44
+ @include fill-bg-color(base);
44
45
  position: absolute;
45
46
  bottom: 0;
46
47
 
@@ -48,7 +49,6 @@
48
49
  height: 1px;
49
50
 
50
51
  content: "";
51
- background-color: color(grey);
52
52
  }
53
53
 
54
54
  &TabScroller__ScrollArea {
@@ -77,14 +77,17 @@
77
77
  }
78
78
 
79
79
  &Tab {
80
+ @include c-text-section-heading;
81
+ @include bg-color(secondaryInteractive);
82
+
80
83
  position: relative;
81
84
  z-index: zx("above");
82
85
 
83
86
  display: flex;
84
87
  flex: 1 0 auto;
85
88
  justify-content: center;
86
- height: 17 * spacing(unit);
87
- padding: 0 spacing();
89
+ height: 17 * spacing("2xs");
90
+ padding: 0 spacing(md);
88
91
 
89
92
  box-sizing: border-box;
90
93
  border: 0;
@@ -94,10 +97,6 @@
94
97
  white-space: nowrap;
95
98
  font-size: 16px;
96
99
  line-height: 1;
97
- text-transform: uppercase;
98
- color: color(graphite, light);
99
- font-family: font-family(brand);
100
- font-weight: 700;
101
100
 
102
101
  outline: none;
103
102
  background: none;
@@ -126,15 +125,13 @@
126
125
  &:hover,
127
126
  &:focus {
128
127
  text-decoration: inherit;
129
-
130
- background: color(grey, lighter);
131
128
  }
132
129
 
133
130
  &[aria-selected="true"] {
134
- color: color(indigo, dark);
131
+ @include text-color(base);
135
132
 
136
133
  &:after {
137
- background: color(purple);
134
+ @include fill-bg-color(accent);
138
135
 
139
136
  transform: scaleX(1);
140
137
  }
@@ -3,6 +3,7 @@
3
3
  $scrollButtonWidth: 2rem;
4
4
 
5
5
  .cobalt-tabs {
6
+ @include bg-color(secondary);
6
7
  position: relative;
7
8
  }
8
9
 
@@ -13,7 +14,7 @@ $scrollButtonWidth: 2rem;
13
14
 
14
15
  width: $scrollButtonWidth;
15
16
  // Tab height
16
- height: calc(1rem + #{spacing() * 2});
17
+ height: calc(1rem + #{spacing(md) * 2});
17
18
  padding: 0;
18
19
  border: 0;
19
20
 
@@ -40,8 +41,8 @@ $scrollButtonWidth: 2rem;
40
41
  .cobalt-tabs__nav-prev {
41
42
  background: linear-gradient(
42
43
  270deg,
43
- rgba(255, 255, 255, 0) 0,
44
- rgba(255, 255, 255, 1) 30%
44
+ transparent,
45
+ var(--c-background-secondary) 30%
45
46
  );
46
47
 
47
48
  &:hover .cobalt-tabs__nav-icon,
@@ -55,8 +56,8 @@ $scrollButtonWidth: 2rem;
55
56
 
56
57
  background: linear-gradient(
57
58
  90deg,
58
- rgba(255, 255, 255, 0) 0,
59
- rgba(255, 255, 255, 1) 30%
59
+ transparent,
60
+ var(--c-background-secondary) 30%
60
61
  );
61
62
 
62
63
  &:hover .cobalt-tabs__nav-icon,
@@ -101,7 +102,7 @@ $scrollButtonWidth: 2rem;
101
102
  }
102
103
 
103
104
  .cobalt-tabs__label {
104
- @include text-color(subdued);
105
+ @include c-text-section-heading;
105
106
  @include bg-color(secondaryInteractive);
106
107
  position: relative;
107
108
 
@@ -109,7 +110,7 @@ $scrollButtonWidth: 2rem;
109
110
  flex: 1 0 auto;
110
111
  justify-content: center;
111
112
  align-items: center;
112
- padding: spacing();
113
+ padding: spacing(md);
113
114
  border: 0;
114
115
 
115
116
  text-align: center;
@@ -117,9 +118,6 @@ $scrollButtonWidth: 2rem;
117
118
  white-space: nowrap;
118
119
  font-size: 1rem;
119
120
  line-height: 1;
120
- text-transform: uppercase;
121
- font-family: font-family(brand);
122
- font-weight: 700;
123
121
 
124
122
  outline: none;
125
123
  background: none;
@@ -148,7 +146,7 @@ $scrollButtonWidth: 2rem;
148
146
  @include text-color(base);
149
147
 
150
148
  &:after {
151
- @include semantic-color(accent, fill, background-color);
149
+ @include fill-bg-color(accent);
152
150
 
153
151
  transform: scaleX(1);
154
152
  }
@@ -1,6 +1,7 @@
1
1
  .cobalt- {
2
2
  &Tag {
3
3
  @include bg-color(neutral);
4
+ @include text-color(base);
4
5
  display: inline-block;
5
6
 
6
7
  padding: spacing("2xs") spacing(xs);
@@ -13,11 +14,11 @@
13
14
  }
14
15
 
15
16
  &Tag--muted {
16
- @include text-color(subdued);
17
- @include bg-color(neutralAlt);
17
+ opacity: 0.5;
18
18
  }
19
19
 
20
20
  &Tag--important {
21
+ // TOFIX Move to errorAlt for bg and text
21
22
  @include text-color(error);
22
23
 
23
24
  background-color: lighten(color(red), 24);