@snyk-mktg/brand-ui 2.5.9 → 2.5.10-canary.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 (81) hide show
  1. package/dist/css/bundle.css +82 -1
  2. package/dist/css/bundle.css.map +1 -1
  3. package/dist/css/components.css +82 -1
  4. package/dist/css/components.css.map +1 -1
  5. package/dist/css/evo-bundle.css +31 -1
  6. package/dist/css/evo-bundle.css.map +1 -1
  7. package/dist/css/labs-bundle.css +31 -1
  8. package/dist/css/labs-bundle.css.map +1 -1
  9. package/dist/scss/base/_baseline.scss +9 -4
  10. package/dist/scss/base/_color.scss +2 -17
  11. package/dist/scss/base/_layout.scss +35 -10
  12. package/dist/scss/base/_links.scss +3 -1
  13. package/dist/scss/base/decorations/_backgrounds.scss +21 -53
  14. package/dist/scss/base/decorations/_markers.scss +28 -26
  15. package/dist/scss/base/mixins/_accessibility.scss +6 -0
  16. package/dist/scss/base/mixins/_color-mode.scss +12 -0
  17. package/dist/scss/base/mixins/_glass.scss +36 -12
  18. package/dist/scss/base/mixins/_gradient-border.scss +49 -0
  19. package/dist/scss/base/mixins/index.scss +1 -0
  20. package/dist/scss/base/variables/_colors.scss +39 -33
  21. package/dist/scss/base/variables/_effects.scss +5 -5
  22. package/dist/scss/base/variables/_themes.scss +18 -18
  23. package/dist/scss/base/variables/_typography.scss +49 -57
  24. package/dist/scss/base.scss +3 -1
  25. package/dist/scss/components/atoms/_badge.scss +1 -1
  26. package/dist/scss/components/atoms/_button.scss +17 -115
  27. package/dist/scss/components/atoms/_checkbox.scss +12 -2
  28. package/dist/scss/components/atoms/_dropdown.scss +3 -3
  29. package/dist/scss/components/atoms/_feature-checkmark.scss +3 -1
  30. package/dist/scss/components/atoms/_icons.scss +6 -3
  31. package/dist/scss/components/atoms/_tabs.scss +4 -4
  32. package/dist/scss/components/atoms/_tag.scss +3 -2
  33. package/dist/scss/components/atoms/triggers/_filter.scss +1 -1
  34. package/dist/scss/components/molecules/_announcements.scss +15 -7
  35. package/dist/scss/components/molecules/_pagination.scss +5 -5
  36. package/dist/scss/components/molecules/_search.scss +1 -11
  37. package/dist/scss/components/molecules/_share-this.scss +2 -1
  38. package/dist/scss/components/molecules/_table-of-contents.scss +4 -4
  39. package/dist/scss/components/molecules/_tables.scss +59 -2
  40. package/dist/scss/components/molecules/cards/_card-bg-image.scss +1 -1
  41. package/dist/scss/components/molecules/cards/_card.scss +11 -6
  42. package/dist/scss/components/organisms/_footer.scss +1 -1
  43. package/dist/scss/components/organisms/_glossary.scss +7 -0
  44. package/dist/scss/components/organisms/_navigation.scss +5 -5
  45. package/dist/scss/components/organisms/_split-content.scss +0 -4
  46. package/dist/scss/components/organisms/_sub-navigation.scss +1 -1
  47. package/dist/scss/components/organisms/ctas/_basic-cta.scss +6 -4
  48. package/dist/scss/components/organisms/ctas/_body-cta.scss +16 -6
  49. package/dist/scss/components/organisms/ctas/_footer-cta.scss +20 -1
  50. package/dist/scss/components/organisms/heroes/_hero-case-study.scss +4 -7
  51. package/dist/scss/evo/_components.scss +1 -1
  52. package/dist/scss/evo/base/variables/_typography.scss +2 -0
  53. package/dist/scss/evo/components/atoms/_button.scss +92 -4
  54. package/dist/scss/evo/components/molecules/_share-this.scss +44 -0
  55. package/dist/scss/evo/components/molecules/cards/_card.scss +3 -0
  56. package/dist/scss/evo/components/organisms/_footer.scss +14 -0
  57. package/dist/scss/evo/components/organisms/ctas/_basic-cta.scss +1 -0
  58. package/dist/scss/labs/_components.scss +1 -1
  59. package/dist/scss/labs/base/_baseline.scss +2 -0
  60. package/dist/scss/labs/base/variables/_colors.scss +8 -0
  61. package/dist/scss/labs/base/variables/_typography.scss +44 -0
  62. package/dist/scss/labs/components/atoms/_button.scss +12 -0
  63. package/dist/scss/labs/components/atoms/triggers/_play.scss +1 -1
  64. package/dist/scss/labs/components/molecules/_pagination.scss +5 -0
  65. package/dist/scss/labs/components/molecules/_table-of-contents.scss +14 -1
  66. package/dist/scss/labs/components/molecules/cards/_card-bg-image.scss +7 -0
  67. package/dist/scss/labs/components/molecules/cards/_card.scss +10 -0
  68. package/dist/scss/labs/components/organisms/ctas/_basic-cta.scss +2 -0
  69. package/dist/scss/labs/utilities/_rich-text.scss +13 -0
  70. package/dist/scss/utilities/_rich-text.scss +1 -1
  71. package/package.json +3 -2
  72. package/dist/js/helpers/caseFormats.test.d.ts +0 -1
  73. package/dist/js/helpers/caseFormats.test.js +0 -59
  74. package/dist/js/helpers/classnames.test.d.ts +0 -1
  75. package/dist/js/helpers/classnames.test.js +0 -13
  76. package/dist/js/helpers/getInitials.test.d.ts +0 -1
  77. package/dist/js/helpers/getInitials.test.js +0 -29
  78. package/dist/js/helpers/grid.test.d.ts +0 -1
  79. package/dist/js/helpers/grid.test.js +0 -44
  80. package/dist/js/helpers/range.test.d.ts +0 -1
  81. package/dist/js/helpers/range.test.js +0 -24
@@ -27,11 +27,11 @@ body {
27
27
  body {
28
28
  font-size: 1rem;
29
29
  font-family: map.get($brandui-font-family, roboto), sans-serif;
30
- color: brandui-color-labels(ui-body);
30
+ color: brandui-color-labels(ui-text);
31
31
 
32
32
  &.dark-mode,
33
33
  & .dark-mode {
34
- color: brandui-color-labels(ui-body-dark);
34
+ color: brandui-color-labels(ui-text-dark);
35
35
  }
36
36
  -webkit-font-smoothing: antialiased;
37
37
  }
@@ -118,6 +118,11 @@ b {
118
118
  font-weight: 700;
119
119
  }
120
120
 
121
+ strong:not(a strong),
122
+ b:not(a b) {
123
+ @include colors.color-mode(color, brandui-color-labels(ui-body), brandui-color-labels(ui-body-dark));
124
+ }
125
+
121
126
  code:not([class]) {
122
127
  border-width: 0.0625rem;
123
128
  border-style: solid;
@@ -128,8 +133,8 @@ code:not([class]) {
128
133
  padding: 0 0.1875rem;
129
134
  position: relative;
130
135
  word-break: break-word;
131
- @include colors.color-mode(background-color, brandui-color-labels(neutral-5), brandui-color-labels(neutral-2));
132
- @include colors.color-mode(border-color, RGBA(brandi-rgb-labels(neutral-4), 0.1), RGBA(brandui-rgb-labels(neutral-2), 0.9));
136
+ @include colors.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
137
+ @include colors.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.1), RGBA(brandui-rgb-labels(ui-stroke-dark), 0.1));
133
138
  @include colors.color-mode(color, brandui-color-labels(fail), brandui-color-labels(fail-dark));
134
139
  }
135
140
 
@@ -10,7 +10,7 @@ $color-elements: (
10
10
  'background-color': 'bg',
11
11
  'border-color': 'border',
12
12
  );
13
- $action-colors: ('action', 'action-secondary');
13
+ $action-colors: ('action', 'action-secondary', 'action-tertiary');
14
14
  $state-colors: ('success', 'info', 'alert', 'warning', 'fail');
15
15
  $label-colors: (
16
16
  'default',
@@ -45,18 +45,7 @@ $label-colors: (
45
45
 
46
46
  .txt-ui-hero {
47
47
  max-width: max-content;
48
- @include colors.gradient-mode(
49
- background-image,
50
- 'linear',
51
- 140deg,
52
- RGBA(brandui-rgb-labels(ui-headline), 1),
53
- RGBA(brandui-rgb-labels(ui-headline), 0.5),
54
- RGBA(brandui-rgb-labels(ui-headline-dark), 1),
55
- RGBA(brandui-rgb-labels(ui-headline-dark), 0.7)
56
- ) {
57
- background-clip: text;
58
- color: transparent;
59
- }
48
+ @include colors.color-mode(color, brandui-color-labels(ui-headline), brandui-color-labels(ui-headline-dark));
60
49
  }
61
50
 
62
51
  .txt-theme-solid {
@@ -132,10 +121,6 @@ $label-colors: (
132
121
  @include theme.theme-gradient(background, linear, 140deg, gradient-secondary);
133
122
  }
134
123
 
135
- .spotlight {
136
- @include theme.theme-color(background-color, spotlight);
137
- }
138
-
139
124
  .bg-gradient-midnight-overlay {
140
125
  height: 130%;
141
126
  background: linear-gradient(
@@ -4,8 +4,11 @@
4
4
  @use '../base/variables/sizing' as *;
5
5
  @use '../base/variables/effects' as *;
6
6
  @use '../base/mixins/breakpoints' as breaks;
7
+ @use '../base/mixins/color-mode' as color;
7
8
  @use '../base/mixins/glass' as glass;
9
+ @use '../base/mixins/gradient-border' as gradient;
8
10
  @use '../base/functions' as *;
11
+ @use './decorations/backgrounds' as *;
9
12
 
10
13
  $position-spaces: (none, hairline, thin, slim, extra-small, small, medium, large, extra-large, huge);
11
14
 
@@ -67,6 +70,10 @@ $position-spaces: (none, hairline, thin, slim, extra-small, small, medium, large
67
70
  align-items: center;
68
71
  text-align: center;
69
72
 
73
+ &.solo-title {
74
+ margin-bottom: 0;
75
+ }
76
+
70
77
  &-left-aligned {
71
78
  @extend .section-intro;
72
79
  align-items: start;
@@ -93,16 +100,34 @@ $position-spaces: (none, hairline, thin, slim, extra-small, small, medium, large
93
100
  margin-right: auto;
94
101
  }
95
102
 
96
- .brandui-container,
97
- .content-block {
98
- &.bg-boxed {
99
- padding: map.get($brandui-padding, extra-large);
100
- border-width: 0.1875rem;
101
- border-style: solid;
102
- border-radius: map.get($brandui-radius, large);
103
- box-shadow: map.get($brandui-shadow, outline);
104
- @include glass.bg-glass;
105
- @include glass.border-glass;
103
+ .bg-boxed {
104
+ padding: map.get($brandui-padding, extra-large);
105
+ display: flex;
106
+ flex-direction: column;
107
+ position: relative;
108
+ border-width: 0.1875rem;
109
+ border-style: solid;
110
+ border-width: map.get($brandui-padding, 'hairline');
111
+ border-radius: map.get($brandui-radius, 'small');
112
+ transition: map.get($brandui-transition, 'fast');
113
+ overflow: hidden;
114
+
115
+ @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
116
+ @include glass.bg-glass(true, ui-fill);
117
+ @include glass.border-glass(ui-stroke);
118
+
119
+ &-decorated {
120
+ border: 0;
121
+ border-radius: map.get($brandui-radius, 'small');
122
+ @include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
123
+ @include glass.bg-glass(true, ui-fill);
124
+ @include gradient.gradient-border;
125
+ }
126
+ &-decorations {
127
+ position: absolute;
128
+ z-index: 1;
129
+ inset: 2px;
130
+ overflow: hidden;
106
131
  }
107
132
  }
108
133
 
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  &:hover {
41
- @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
41
+ @include color.color-mode(color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
42
42
  }
43
43
  }
44
44
 
@@ -59,6 +59,8 @@
59
59
 
60
60
  &:hover,
61
61
  &:focus {
62
+ @include color.color-mode('color', brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
63
+ @include color.color-mode-pseudo('&::after', 'color', brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
62
64
  &::after {
63
65
  transform: translateX(-0.25rem);
64
66
  }
@@ -4,81 +4,49 @@
4
4
  .decoration-bg {
5
5
  pointer-events: none;
6
6
 
7
- &.circuit-tracks {
7
+ &.dot-wave {
8
8
  position: absolute;
9
- width: brandui-col-spacing(16);
10
- background: transparent url('#{$brandui-images}decorations/decoration-bg-circuit-track.svg') center no-repeat;
9
+ inset: 0;
11
10
  background-size: contain;
12
11
  mix-blend-mode: screen;
13
12
  z-index: -1;
14
13
  padding-bottom: 28rem;
15
14
 
15
+ &-1 {
16
+ background: transparent url('#{$brandui-images}decorations/decoration-bg-dot-wave.svg') center no-repeat;
17
+ }
18
+
19
+ &-2 {
20
+ background: transparent url('#{$brandui-images}decorations/decoration-bg-dot-wave-2.svg') center no-repeat;
21
+ }
22
+
23
+ &-3 {
24
+ background: transparent url('#{$brandui-images}decorations/decoration-bg-dot-wave-3.svg') center no-repeat;
25
+ }
26
+
16
27
  // Tracks positon
17
28
  &-top-right {
18
29
  top: 0;
19
30
  right: -40rem;
20
31
  }
21
32
  &-bottom-right {
22
- bottom: -5rem;
33
+ bottom: -10rem;
23
34
  right: -40rem;
35
+ transform: rotate(180deg);
24
36
  }
25
37
  &-top-left {
26
- top: 0;
27
- left: -40rem;
28
- transform: rotate(180deg);
38
+ top: -60rem;
39
+ left: -50rem;
29
40
  }
30
41
  &-bottom-left {
31
42
  bottom: -5rem;
32
43
  left: -40rem;
33
44
  transform: rotate(180deg);
34
45
  }
35
- }
36
-
37
- &.code-lines {
38
- position: absolute;
39
- width: brandui-col-spacing(6);
40
- padding-bottom: 24rem;
41
- background-size: contain;
42
- z-index: -2;
43
-
44
- // Lines positon
45
- &-top-right {
46
- top: 0;
47
- right: -8rem;
48
- transform: rotate(180deg);
49
- }
50
- &-bottom-right {
51
- bottom: 0;
52
- right: -8rem;
53
- transform: rotate(180deg);
54
- }
55
- &-top-left {
56
- top: 0;
57
- left: -8rem;
58
- }
59
- &-bottom-left {
60
- bottom: 0;
61
- left: -8rem;
62
- }
63
46
 
64
- // Lines colors
65
- &-primary {
66
- background: transparent url('#{$brandui-images}decorations/decoration-bg-code-lines-primary.svg') center no-repeat;
67
- }
68
- &-secondary {
69
- background: transparent url('#{$brandui-images}decorations/decoration-bg-code-lines-secondary.svg') center no-repeat;
47
+ &-center-right {
48
+ top: 30rem;
49
+ right: -26rem;
70
50
  }
71
- &-tertiary {
72
- background: transparent url('#{$brandui-images}decorations/decoration-bg-code-lines-tertiary.svg') center no-repeat;
73
- }
74
- }
75
-
76
- &.hex-pattern {
77
- position: absolute;
78
- inset: 0;
79
- background: transparent url('#{$brandui-images}decorations/decoration-bg-hex-pattern.svg') center no-repeat;
80
- background-size: contain;
81
- transform: scale(1.5);
82
- z-index: -2;
83
51
  }
84
52
  }
@@ -3,6 +3,8 @@
3
3
  @use '../../base/mixins/color-mode' as colors;
4
4
  @use '../../base/functions' as *;
5
5
 
6
+ // TODO, remove once we have confirmed that new brand is real
7
+
6
8
  /**
7
9
  * Note >> The markers are all PNGs that use the Cloudinary transformations
8
10
  * to add the proper color-mode color and then convert to SVG. This is the
@@ -10,30 +12,30 @@
10
12
  * See the Transformation Center in Cloudinary for the custom marker
11
13
  * transformations.
12
14
  */
13
- @each $marker-key, $marker-url in $brandui-marker-highlight-styles {
14
- .marker-highlight-#{$marker-key} {
15
- color: inherit;
16
- background-color: transparent;
17
- position: relative;
18
- display: inline;
19
- // Adds a little space around the text relative to the font size
20
- padding: 0.1em 0.3em;
21
- background-position: 100%;
22
- background-size: 100% 100%;
23
- background-repeat: no-repeat;
24
- @include colors.color-mode(background-image, url('#{$brandui-marker-light}#{$marker-url}'), url('#{$brandui-marker-dark}#{$marker-url}'));
25
- }
26
- }
15
+ // @each $marker-key, $marker-url in $brandui-marker-highlight-styles {
16
+ // .marker-highlight-#{$marker-key} {
17
+ // color: inherit;
18
+ // background-color: transparent;
19
+ // position: relative;
20
+ // display: inline;
21
+ // // Adds a little space around the text relative to the font size
22
+ // padding: 0.1em 0.3em;
23
+ // background-position: 100%;
24
+ // background-size: 100% 100%;
25
+ // background-repeat: no-repeat;
26
+ // @include colors.color-mode(background-image, url('#{$brandui-marker-light}#{$marker-url}'), url('#{$brandui-marker-dark}#{$marker-url}'));
27
+ // }
28
+ // }
27
29
 
28
- @each $marker-key, $marker-url in $brandui-marker-line-styles {
29
- .marker-line-#{$marker-key} {
30
- max-width: brandui-col-spacing(2);
31
- width: 100%;
32
- height: 3rem;
33
- position: relative;
34
- display: block;
35
- background-size: 100%;
36
- background-repeat: no-repeat;
37
- @include colors.color-mode(background-image, url('#{$brandui-marker-light}#{$marker-url}'), url('#{$brandui-marker-dark}#{$marker-url}'));
38
- }
39
- }
30
+ // @each $marker-key, $marker-url in $brandui-marker-line-styles {
31
+ // .marker-line-#{$marker-key} {
32
+ // max-width: brandui-col-spacing(2);
33
+ // width: 100%;
34
+ // height: 3rem;
35
+ // position: relative;
36
+ // display: block;
37
+ // background-size: 100%;
38
+ // background-repeat: no-repeat;
39
+ // @include colors.color-mode(background-image, url('#{$brandui-marker-light}#{$marker-url}'), url('#{$brandui-marker-dark}#{$marker-url}'));
40
+ // }
41
+ // }
@@ -3,3 +3,9 @@
3
3
  @content;
4
4
  }
5
5
  }
6
+
7
+ @mixin prefers-dark {
8
+ @media (prefers-color-scheme: dark) {
9
+ @content;
10
+ }
11
+ }
@@ -1,3 +1,5 @@
1
+ @use './../functions' as *;
2
+ @use './accessibility' as a11y;
1
3
  /* Mixins for light/dark modes */
2
4
  @mixin color-mode($property, $light-value, $dark-value) {
3
5
  // Default light mode
@@ -11,6 +13,12 @@
11
13
  #{$property}: $dark-value;
12
14
  @content;
13
15
  }
16
+
17
+ // Uncomment this when we are ready to offer dark mode toggle support
18
+ // @include a11y.prefers-dark {
19
+ // #{$property}: $dark-value;
20
+ // @content;
21
+ // }
14
22
  }
15
23
 
16
24
  // Because mixins can sometime be invalid when chaining to pseudo-classes, we need to manually do this
@@ -79,3 +87,7 @@
79
87
  @content;
80
88
  }
81
89
  }
90
+
91
+ @mixin transparent-border($property: border-color, $light-value: 'ui-body', $dark-value: 'ui-body-dark', $opacity: 0.3) {
92
+ @include color-mode($property, RGBA(brandui-rgb-labels($light-value), 0.3), RGBA(brandui-rgb-labels($dark-value), $opacity));
93
+ }
@@ -1,36 +1,60 @@
1
1
  @use '../../base/mixins/color-mode' as color;
2
2
  @use '../../base/functions' as *;
3
3
 
4
- @mixin bg-glass($dense: false) {
4
+ @mixin bg-glass($dense: false, $color-label: default) {
5
5
  @if $dense {
6
- backdrop-filter: blur(1.5rem);
7
- -webkit-backdrop-filter: blur(1.5rem);
8
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(default), 0.8), RGBA(brandui-rgb-labels(default-dark), 0.8));
6
+ & {
7
+ backdrop-filter: blur(1.5rem);
8
+ -webkit-backdrop-filter: blur(1.5rem);
9
+ }
10
+ @include color.color-mode(
11
+ background-color,
12
+ RGBA(brandui-rgb-labels(#{$color-label}), 0.8),
13
+ RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.8)
14
+ );
9
15
  } @else {
10
- backdrop-filter: blur(1rem);
11
- -webkit-backdrop-filter: blur(1rem);
12
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(default), 0.5), RGBA(brandui-rgb-labels(default-dark), 0.5));
16
+ & {
17
+ backdrop-filter: blur(1rem);
18
+ -webkit-backdrop-filter: blur(1rem);
19
+ }
20
+ @include color.color-mode(
21
+ background-color,
22
+ RGBA(brandui-rgb-labels(#{$color-label}), 0.5),
23
+ RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.5)
24
+ );
13
25
  }
14
26
 
15
27
  &.group {
16
28
  &:hover,
17
29
  &:focus {
18
30
  @if $dense {
19
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(default), 0.5), RGBA(brandui-rgb-labels(default-dark), 0.5));
31
+ @include color.color-mode(
32
+ background-color,
33
+ RGBA(brandui-rgb-labels(#{$color-label}), 0.5),
34
+ RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.5)
35
+ );
20
36
  } @else {
21
- @include color.color-mode(background-color, RGBA(brandui-rgb-labels(default), 0.3), RGBA(brandui-rgb-labels(default-dark), 0.3));
37
+ @include color.color-mode(
38
+ background-color,
39
+ RGBA(brandui-rgb-labels(#{$color-label}), 0.3),
40
+ RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.3)
41
+ );
22
42
  }
23
43
  }
24
44
  }
25
45
  }
26
46
 
27
- @mixin border-glass {
28
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(default), 0.7), RGBA(brandui-rgb-labels(default-dark), 0.7));
47
+ @mixin border-glass($color-label: default) {
48
+ @include color.color-mode(border-color, RGBA(brandui-rgb-labels(#{$color-label}), 0.3), RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.3));
29
49
 
30
50
  &.group {
31
51
  &:hover,
32
52
  &:focus {
33
- @include color.color-mode(border-color, RGBA(brandui-rgb-labels(default), 0.3), RGBA(brandui-rgb-labels(default-dark), 0.3));
53
+ @include color.color-mode(
54
+ border-color,
55
+ RGBA(brandui-rgb-labels(#{$color-label}), 0.3),
56
+ RGBA(brandui-rgb-labels(#{$color-label}-dark), 0.3)
57
+ );
34
58
  }
35
59
  }
36
60
  }
@@ -0,0 +1,49 @@
1
+ @use 'sass:map';
2
+ @use '../../base/variables/sizing' as *;
3
+ @use '../../base/variables/effects' as *;
4
+ @use '../../base/mixins/page-theme' as theme;
5
+ @use '../../base/mixins/breakpoints' as break;
6
+ @use '../../base/mixins/color-mode' as color;
7
+ @use '../../base/functions' as *;
8
+
9
+ @mixin gradient-border {
10
+ :first-child {
11
+ z-index: 2;
12
+ }
13
+ @include color.gradient-mode-pseudo(
14
+ '&:before',
15
+ 'background',
16
+ 'linear',
17
+ '90deg',
18
+ brandui-color-labels(neutral-2),
19
+ brandui-color-labels(neutral-3),
20
+ brandui-color-labels(neutral-3),
21
+ brandui-color-labels(neutral-2)
22
+ ) {
23
+ content: '';
24
+ position: absolute;
25
+ top: 1px;
26
+ left: 1px;
27
+ right: 1px;
28
+ bottom: 1px;
29
+ z-index: 0;
30
+ border-radius: map.get($brandui-radius, 'small');
31
+
32
+ @include break.max-mobile {
33
+ margin: 0;
34
+ }
35
+ }
36
+
37
+ &:after {
38
+ content: '';
39
+ z-index: 0;
40
+ position: absolute;
41
+ inset: 2px;
42
+ border-radius: map.get($brandui-radius, 'small');
43
+
44
+ @include break.max-mobile {
45
+ margin: 0;
46
+ }
47
+ }
48
+ @include color.color-mode-pseudo('&:after', background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
49
+ }
@@ -4,3 +4,4 @@
4
4
  @use '../../base/mixins/glass' as *;
5
5
  @use '../../base/mixins/breakpoints' as *;
6
6
  @use '../../base/mixins/typography' as *;
7
+ @use '../../base/mixins/gradient-border' as *;
@@ -31,16 +31,18 @@ $evoui-colors: (
31
31
  /* Color variables */
32
32
  $brandui-colors: (
33
33
  'dark-purple': #441c99,
34
- 'purple': #9043c6,
34
+ 'purple': #8d1ff4,
35
35
  'lavender': #c481f3,
36
+ 'lavender-light': #d6a7f7,
36
37
  'black': #000,
37
38
  'space': #01011e,
38
39
  'midnight': #030328,
39
40
  'ocean': #181846,
41
+ 'dark-grey': #181818,
40
42
  'dawn': #383f76,
41
- 'steel': #555463,
43
+ 'steel': #c0c0c0,
42
44
  'smoke': #6d6d9c,
43
- 'snow': #f6f7fb,
45
+ 'snow': #e9e9e9,
44
46
  'white': #fff,
45
47
  'rose': #c82d53,
46
48
  'salmon': #f97a99,
@@ -73,49 +75,53 @@ $brandui-colors: map.merge($brandui-colors, $custom-theme);
73
75
 
74
76
  // 2.0 Standardized color labels for theming
75
77
  $brandui-color-labels: (
76
- 'default': map.get($brandui-colors, 'white'),
77
- 'default-dark': map.get($brandui-colors, 'midnight'),
78
- 'ui-headline': map.get($brandui-colors, 'midnight'),
79
- 'ui-headline-dark': map.get($brandui-colors, 'white'),
80
- 'ui-body': map.get($brandui-colors, 'dawn'),
81
- 'ui-body-dark': map.get($brandui-colors, 'snow'),
82
- 'ui-fill': map.get($brandui-colors, 'white'),
83
- 'ui-fill-dark': map.get($brandui-colors, 'midnight'),
84
- 'ui-stroke': map.get($brandui-colors, 'smoke'),
85
- 'ui-stroke-dark': map.get($brandui-colors, 'dawn'),
86
- 'ui-text': map.get($brandui-colors, 'dawn'),
78
+ 'default': map.get($brandui-colors, 'snow'),
79
+ 'default-dark': map.get($brandui-colors, 'black'),
80
+ 'ui-headline': map.get($brandui-colors, 'black'),
81
+ 'ui-headline-dark': map.get($brandui-colors, 'snow'),
82
+ 'ui-body': map.get($brandui-colors, 'black'),
83
+ 'ui-body-dark': map.get($brandui-colors, 'steel'),
84
+ 'ui-fill': map.get($brandui-colors, 'steel'),
85
+ 'ui-fill-dark': map.get($brandui-colors, 'dark-grey'),
86
+ 'ui-stroke': map.get($brandui-colors, 'dark-grey'),
87
+ 'ui-stroke-dark': map.get($brandui-colors, 'steel'),
88
+ 'ui-text': map.get($brandui-colors, 'black'),
87
89
  'ui-text-dark': map.get($brandui-colors, 'snow'),
88
- 'action': map.get($brandui-colors, 'electric-blue'),
89
- 'action-dark': map.get($brandui-colors, 'periwinkle'),
90
- 'action-outline': map.get($brandui-colors, 'sky'),
91
- 'action-contrast': map.get($brandui-colors, 'white'),
92
- 'action-contrast-dark': map.get($brandui-colors, 'midnight'),
93
- 'action-secondary': map.get($brandui-colors, 'deep-sea'),
94
- 'action-secondary-dark': map.get($brandui-colors, 'electric-blue-dark'),
95
- 'action-secondary-contrast': map.get($brandui-colors, 'white'),
96
- 'action-secondary-contrast-dark': map.get($brandui-colors, 'midnight'),
90
+ 'action': map.get($brandui-colors, 'black'),
91
+ 'action-dark': map.get($brandui-colors, 'snow'),
92
+ 'action-outline': map.get($brandui-colors, 'snow'),
93
+ 'action-contrast': map.get($brandui-colors, 'snow'),
94
+ 'action-contrast-dark': map.get($brandui-colors, 'black'),
95
+ 'action-secondary': map.get($brandui-colors, 'snow'),
96
+ 'action-secondary-dark': map.get($brandui-colors, 'black'),
97
+ 'action-secondary-contrast': map.get($brandui-colors, 'black'),
98
+ 'action-secondary-contrast-dark': map.get($brandui-colors, 'snow'),
99
+ 'action-tertiary': map.get($brandui-colors, 'dark-purple'),
100
+ 'action-tertiary-dark': map.get($brandui-colors, 'lavender'),
101
+ 'action-tertiary-contrast': map.get($brandui-colors, 'black'),
102
+ 'action-tertiary-contrast-dark': map.get($brandui-colors, 'black'),
97
103
  'info': map.get($brandui-colors, 'dark-purple'),
98
104
  'info-dark': map.get($brandui-colors, 'lavender'),
99
- 'info-contrast': map.get($brandui-colors, 'white'),
105
+ 'info-contrast': map.get($brandui-colors, 'snow'),
100
106
  'info-contrast-dark': map.get($brandui-colors, 'midnight'),
101
107
  'success': map.get($brandui-colors, 'dark-teal'),
102
108
  'success-dark': map.get($brandui-colors, 'vibe'),
103
- 'success-contrast': map.get($brandui-colors, 'white'),
109
+ 'success-contrast': map.get($brandui-colors, 'snow'),
104
110
  'success-contrast-dark': map.get($brandui-colors, 'midnight'),
105
111
  'warning': map.get($brandui-colors, 'autumn'),
106
112
  'warning-dark': map.get($brandui-colors, 'tiger'),
107
- 'warning-contrast': map.get($brandui-colors, 'white'),
113
+ 'warning-contrast': map.get($brandui-colors, 'snow'),
108
114
  'warning-contrast-dark': map.get($brandui-colors, 'midnight'),
109
115
  'fail': map.get($brandui-colors, 'rose'),
110
116
  'fail-dark': map.get($brandui-colors, 'salmon'),
111
- 'fail-contrast': map.get($brandui-colors, 'white'),
117
+ 'fail-contrast': map.get($brandui-colors, 'snow'),
112
118
  'fail-contrast-dark': map.get($brandui-colors, 'midnight'),
113
- 'neutral-1': map.get($brandui-colors, 'midnight'),
114
- 'neutral-2': map.get($brandui-colors, 'ocean'),
115
- 'neutral-3': map.get($brandui-colors, 'dawn'),
116
- 'neutral-4': map.get($brandui-colors, 'smoke'),
117
- 'neutral-5': map.get($brandui-colors, 'snow'),
118
- 'neutral-6': map.get($brandui-colors, 'white'),
119
+ 'neutral-1': map.get($brandui-colors, 'black'),
120
+ 'neutral-2': map.get($brandui-colors, 'dark-purple'),
121
+ 'neutral-3': map.get($brandui-colors, 'bubblegum'),
122
+ 'neutral-4': map.get($brandui-colors, 'lavender-light'),
123
+ 'neutral-5': map.get($brandui-colors, 'steel'),
124
+ 'neutral-6': map.get($brandui-colors, 'snow'),
119
125
  ) !default;
120
126
 
121
127
  $brandui-tag-colors: (
@@ -1,10 +1,10 @@
1
1
  /* Effects */
2
2
  $brandui-shadow: (
3
- far: 0 1.875rem 3.125rem RGBA(109, 109, 156, 0.3),
4
- mid: 0 0.625rem 0.938rem RGBA(109, 109, 156, 0.25),
5
- near: 0 0.1875rem 0.313rem RGBA(109, 109, 156, 0.15),
6
- faint: 0 0.1875rem 0.313rem RGBA(109, 109, 156, 0.05),
7
- outline: 0 1px 3px 1px RGBA(109, 109, 156, 0.3),
3
+ far: 0 0 3.75rem RGBA(68, 28, 153, 0.4),
4
+ mid: 0 0.625rem 0.938rem RGBA(68, 28, 153, 0.25),
5
+ near: 0 0.1875rem 0.313rem RGBA(68, 28, 153, 0.15),
6
+ faint: 0 0.1875rem 0.313rem RGBA(68, 28, 153, 0.05),
7
+ outline: 0 1px 3px 1px RGBA(68, 28, 153, 0.3),
8
8
  ) !default;
9
9
 
10
10
  $brandui-radius: (