@snyk-mktg/brand-ui 2.3.10 → 2.3.12

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.
@@ -56,6 +56,11 @@
56
56
  inset: 0;
57
57
  }
58
58
 
59
+ &-center-left {
60
+ top: 50%;
61
+ left: 0;
62
+ }
63
+
59
64
  // Glow colors
60
65
  &-theme-solid {
61
66
  &-primary {
@@ -66,7 +66,7 @@ $brandui-default-themes: (
66
66
  ),
67
67
  gradient-tertiary: (
68
68
  start: map.get($brandui-colors, 'purple'),
69
- end: map.get($brandui-colors, 'bubble-gum'),
69
+ end: map.get($brandui-colors, 'bubblegum'),
70
70
  ),
71
71
  ),
72
72
  ),
@@ -92,8 +92,8 @@ $brandui-default-themes: (
92
92
  end: map.get($evoui-colors, 'white'),
93
93
  ),
94
94
  gradient-primary: (
95
- start: map.get($evoui-colors, 'orange'),
96
- end: map.get($evoui-colors, 'pink'),
95
+ start: map.get($evoui-colors, 'purple'),
96
+ end: map.get($evoui-colors, 'light-blue'),
97
97
  ),
98
98
  gradient-secondary: (
99
99
  start: map.get($evoui-colors, 'blue'),
@@ -110,7 +110,7 @@ $brandui-default-themes: (
110
110
  solid: map.get($evoui-colors, 'white'),
111
111
  solid-primary: map.get($evoui-colors, 'orange'),
112
112
  solid-secondary: map.get($evoui-colors, 'pink'),
113
- solid-tertiary: map.get($evoui-colors, 'blue'),
113
+ solid-tertiary: map.get($evoui-colors, 'light-blue'),
114
114
  contrast: map.get($evoui-colors, 'black'),
115
115
  base: map.get($evoui-colors, 'black'),
116
116
  spotlight: map.get($evoui-colors, 'grey'),
@@ -121,16 +121,16 @@ $brandui-default-themes: (
121
121
  end: map.get($evoui-colors, 'white'),
122
122
  ),
123
123
  gradient-primary: (
124
- start: map.get($evoui-colors, 'orange'),
124
+ start: map.get($evoui-colors, 'light-blue'),
125
125
  end: map.get($evoui-colors, 'pink'),
126
126
  ),
127
127
  gradient-secondary: (
128
- start: map.get($evoui-colors, 'blue'),
129
- end: map.get($evoui-colors, 'light-blue'),
128
+ start: map.get($evoui-colors, 'orange'),
129
+ end: map.get($evoui-colors, 'pink'),
130
130
  ),
131
131
  gradient-tertiary: (
132
- start: map.get($evoui-colors, 'purple'),
133
- end: map.get($evoui-colors, 'pink'),
132
+ start: map.get($evoui-colors, 'red'),
133
+ end: map.get($evoui-colors, 'orange'),
134
134
  ),
135
135
  ),
136
136
  ),
@@ -6,7 +6,6 @@
6
6
  @use '../../scss/base/spacing' as *;
7
7
  @use '../../scss/base/sizing' as *;
8
8
  @use '../../scss/base/decorations/decorations' as *;
9
- @use '../../scss/base/decorations/glows' as *;
10
9
  @use '../../scss/base/decorations/flourishes' as *;
11
10
  @use '../../scss/base/decorations/markers' as *;
12
11
  @use '../../scss/base/decorations/separators' as *;
@@ -25,6 +24,7 @@
25
24
 
26
25
  // @use './base/variables/colors' as *;
27
26
  @use './base/baseline' as *;
27
+ @use './base/decorations/glows' as *;
28
28
  @use './base/layout' as *;
29
29
  @use './base/typography' as *;
30
30
  @use './base/decorations/backgrounds' as *;
@@ -8,6 +8,10 @@
8
8
  .brandui-container {
9
9
  z-index: 1;
10
10
  position: relative;
11
+
12
+ &:has(.decoration-bg) {
13
+ z-index: 0;
14
+ }
11
15
  }
12
16
 
13
17
  .brandui-section {
@@ -0,0 +1,60 @@
1
+ @use '../../../base/decorations/glows' as *;
2
+ @use '../../../base/mixins/page-theme' as theme;
3
+ @use '../../../base/mixins/breakpoints' as break;
4
+ @use '../../../base/functions' as *;
5
+
6
+ .decoration-glow {
7
+ &:before {
8
+ mix-blend-mode: normal; // This blends with color of .decoration-glow background color
9
+ }
10
+ &.glow {
11
+ &-theme-solid {
12
+ &-primary {
13
+ @include theme.theme-color-pseudo('&:before', background-color, solid-primary);
14
+ }
15
+ &-secondary {
16
+ @include theme.theme-color-pseudo('&:before', background-color, solid-secondary);
17
+ }
18
+ &-tertiary {
19
+ @include theme.theme-color-pseudo('&:before', background-color, solid-tertiary);
20
+ }
21
+ }
22
+
23
+ &-theme-blend {
24
+ &-primary {
25
+ @include theme.theme-gradient-pseudo('&:before', background, linear, to right, gradient-primary, 0.5, 0.7);
26
+
27
+ &-flipped {
28
+ @include theme.theme-gradient-pseudo('&:before', background, linear, to left, gradient-primary, 0.5, 0.7);
29
+ }
30
+ }
31
+ &-secondary {
32
+ @include theme.theme-gradient-pseudo('&:before', background, linear, to right, gradient-secondary, 0.6, 0.6);
33
+ }
34
+ &-tertiary {
35
+ @include theme.theme-gradient-pseudo('&:before', background, linear, to bottom, gradient-tertiary, 0.5, 0.5);
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ .cursor-glow {
42
+ @include break.min-mobile {
43
+ position: fixed;
44
+ top: 0;
45
+ left: 0;
46
+ width: 500px;
47
+ height: 500px;
48
+ border-radius: 50%;
49
+ /* Center the glow on the cursor's actual position */
50
+ transform: translate(-50%, -50%);
51
+
52
+ /* This ensures the glow doesn't block clicks or text selection on elements underneath it */
53
+ pointer-events: none;
54
+
55
+ z-index: 9999;
56
+ transition: transform 0.2s ease-out; /* Optional: smooths movement slightly */
57
+
58
+ background: radial-gradient(circle, RGBA(brandui-rgb-labels(action-secondary), 0.1) 0%, RGBA(brandui-rgb-labels(action-secondary), 0) 80%);
59
+ }
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snyk-mktg/brand-ui",
3
- "version": "2.3.10",
3
+ "version": "2.3.12",
4
4
  "description": "The official style library for Snyk’s BrandUI Design System",
5
5
  "scripts": {
6
6
  "dev:css": "gulp devCss",