@volverjs/style 0.1.12-beta.1 → 0.1.12-beta.3

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.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/volverjs/style/issues"
26
26
  },
27
- "version": "0.1.12-beta.1",
27
+ "version": "0.1.12-beta.3",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
package/src/export.scss CHANGED
@@ -445,6 +445,10 @@
445
445
  #{'background-image__' + $key}: $value;
446
446
  }
447
447
 
448
+ @each $key, $value in $gradient {
449
+ #{'gradient__' + $key}: $value;
450
+ }
451
+
448
452
  // #endregion
449
453
 
450
454
  // ============================================================== */
@@ -496,6 +500,11 @@
496
500
  #{'brightness__' + $key}: $value;
497
501
  }
498
502
 
503
+ // contrast
504
+ @each $key, $value in $contrast {
505
+ #{'contrast__' + $key}: $value;
506
+ }
507
+
499
508
  // saturation
500
509
  @each $key, $value in $saturation {
501
510
  #{'saturation__' + $key}: $value;
@@ -2,4 +2,5 @@
2
2
 
3
3
  :where(:host, :root, .theme) {
4
4
  @include spread-map-into-props($background-image, $prefix: bg);
5
+ @include spread-map-into-props($gradient, $prefix: gradient);
5
6
  }
@@ -58,4 +58,230 @@ $background-image: (
58
58
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($color-word)})' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E"),
59
59
  close:
60
60
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20L4 4m16 0L4 20'/%3E%3C/svg%3E"),
61
+ noise-1:
62
+ url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
63
+ noise-2:
64
+ url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
65
+ noise-3:
66
+ url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
67
+ noise-4:
68
+ url("data:image/svg+xml,%3Csvg viewBox='0 0 2056 2056' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
69
+ noise-5:
70
+ url("data:image/svg+xml,%3Csvg viewBox='0 0 2056 2056' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
71
+ ) !default;
72
+
73
+ // gradient
74
+ $gradient: (
75
+ brand:
76
+ linear-gradient(
77
+ to bottom right,
78
+ var(--color-brand-darken-3),
79
+ var(--color-brand),
80
+ var(--color-brand-lighten-3)
81
+ ),
82
+ accent:
83
+ linear-gradient(
84
+ to bottom right,
85
+ var(--color-accent-darken-3),
86
+ var(--color-accent),
87
+ var(--color-accent-lighten-3)
88
+ ),
89
+ info:
90
+ linear-gradient(
91
+ to bottom right,
92
+ var(--color-info-darken-3),
93
+ var(--color-info),
94
+ var(--color-info-lighten-3)
95
+ ),
96
+ success:
97
+ linear-gradient(
98
+ to bottom right,
99
+ var(--color-success-darken-3),
100
+ var(--color-success),
101
+ var(--color-success-lighten-3)
102
+ ),
103
+ warning:
104
+ linear-gradient(
105
+ to bottom right,
106
+ var(--color-warning-darken-3),
107
+ var(--color-warning),
108
+ var(--color-warning-lighten-3)
109
+ ),
110
+ danger:
111
+ linear-gradient(
112
+ to bottom right,
113
+ var(--color-danger-darken-3),
114
+ var(--color-danger),
115
+ var(--color-danger-lighten-3)
116
+ ),
117
+ gray:
118
+ linear-gradient(
119
+ to bottom right,
120
+ var(--color-gray-darken-3),
121
+ var(--color-gray),
122
+ var(--color-gray-lighten-3)
123
+ ),
124
+ 1:
125
+ linear-gradient(
126
+ to bottom right,
127
+ #1f005c,
128
+ #5b0060,
129
+ #870160,
130
+ #ac255e,
131
+ #ca485c,
132
+ #e16b5c,
133
+ #f39060,
134
+ #ffb56b
135
+ ),
136
+ 2: linear-gradient(to bottom right, #48005c, #8300e2, #a269ff),
137
+ 3: #{radial-gradient(
138
+ circle at top right,
139
+ hsl(180deg 100% 50%),
140
+ hsl(180deg 100% 50% / 0%)
141
+ ),
142
+ radial-gradient(
143
+ circle at bottom left,
144
+ hsl(328deg 100% 54%),
145
+ hsl(328deg 100% 54% / 0%)
146
+ )},
147
+ 4: linear-gradient(to bottom right, #00f5a0, #00d9f5),
148
+ 5: conic-gradient(from -270deg at 75% 110%, fuchsia, floralwhite),
149
+ 6: conic-gradient(from -90deg at top left, black, white),
150
+ 7: linear-gradient(to bottom right, #72c6ef, #004e8f),
151
+ 8: conic-gradient(from 90deg at 50% 0%, #111, 50%, #222, #111),
152
+ 9: conic-gradient(from 0.5turn at bottom center, lightblue, white),
153
+ 10:
154
+ conic-gradient(
155
+ from 90deg at 40% -25%,
156
+ #ffd700,
157
+ #f79d03,
158
+ #ee6907,
159
+ #e6390a,
160
+ #de0d0d,
161
+ #d61039,
162
+ #cf1261,
163
+ #c71585,
164
+ #cf1261,
165
+ #d61039,
166
+ #de0d0d,
167
+ #ee6907,
168
+ #f79d03,
169
+ #ffd700,
170
+ #ffd700,
171
+ #ffd700
172
+ ),
173
+ 11: conic-gradient(at bottom left, deeppink, cyan),
174
+ 12:
175
+ conic-gradient(
176
+ from 90deg at 25% -10%,
177
+ #ff4500,
178
+ #d3f340,
179
+ #7bee85,
180
+ #afeeee,
181
+ #7bee85
182
+ ),
183
+ 13:
184
+ radial-gradient(
185
+ circle at 50% 200%,
186
+ #000142,
187
+ #3b0083,
188
+ #b300c3,
189
+ #ff059f,
190
+ #ff4661,
191
+ #ffad86,
192
+ #fff3c7
193
+ ),
194
+ 14: conic-gradient(at top right, lime, cyan),
195
+ 15: linear-gradient(to bottom right, #c7d2fe, #fecaca, #fef3c7),
196
+ 16: radial-gradient(circle at 50% -250%, #374151, #111827, #000),
197
+ 17: conic-gradient(from -90deg at 50% -25%, blue, blueviolet),
198
+ 18: #{linear-gradient(
199
+ 0deg,
200
+ hsla(0deg 100% 50% / 80%),
201
+ hsla(0deg 100% 50% / 0%) 75%
202
+ ),
203
+ linear-gradient(
204
+ 60deg,
205
+ hsla(60deg 100% 50% / 80%),
206
+ hsla(60deg 100% 50% / 0%) 75%,
207
+ ),
208
+ linear-gradient(
209
+ 120deg,
210
+ hsla(120deg 100% 50% / 80%),
211
+ hsla(120deg 100% 50% / 0%) 75%,
212
+ ),
213
+ linear-gradient(
214
+ 180deg,
215
+ hsla(180deg 100% 50% / 80%),
216
+ hsla(180deg 100% 50% / 0%) 75%,
217
+ ),
218
+ linear-gradient(
219
+ 240deg,
220
+ hsla(240deg 100% 50% / 80%),
221
+ hsla(240deg 100% 50% / 0%) 75%,
222
+ ),
223
+ linear-gradient(
224
+ 300deg,
225
+ hsla(300deg 100% 50% / 80%),
226
+ hsla(300deg 100% 50% / 0%) 75%
227
+ )},
228
+ 19: linear-gradient(to bottom right, #ffe259, #ffa751),
229
+ 20:
230
+ conic-gradient(
231
+ from -135deg at -10% center,
232
+ #ffa500,
233
+ #ff7715,
234
+ #ff522a,
235
+ #ff3f47,
236
+ #ff5482,
237
+ #ff69b4
238
+ ),
239
+ 21:
240
+ conic-gradient(
241
+ from -90deg at 25% 115%,
242
+ #f00,
243
+ #f06,
244
+ #f0c,
245
+ #c0f,
246
+ #60f,
247
+ #00f,
248
+ #00f,
249
+ #00f,
250
+ #00f
251
+ ),
252
+ 22: linear-gradient(to bottom right, #acb6e5, #86fde8),
253
+ 23: linear-gradient(to bottom right, #536976, #292e49),
254
+ 24:
255
+ conic-gradient(
256
+ from 0.5turn at 0% 0%,
257
+ #00c476,
258
+ 10%,
259
+ #82b0ff,
260
+ 90%,
261
+ #00c476
262
+ ),
263
+ 25: conic-gradient(at 125% 50%, #b78cf7, #ff7c94, #ffcf0d, #ff7c94, #b78cf7),
264
+ 26: linear-gradient(to bottom right, #9796f0, #fbc7d4),
265
+ 27: conic-gradient(from 0.5turn at bottom left, deeppink, rebeccapurple),
266
+ 28: conic-gradient(from -90deg at 50% 105%, white, orchid),
267
+ 29: #{radial-gradient(
268
+ circle at top right,
269
+ hsl(250deg 100% 85%),
270
+ hsl(250deg 100% 85% / 0%)
271
+ ),
272
+ radial-gradient(
273
+ circle at bottom left,
274
+ hsl(220deg 90% 75%),
275
+ hsl(220deg 90% 75% / 0%)
276
+ )},
277
+ 30: #{radial-gradient(
278
+ circle at top right,
279
+ hsl(150deg 100% 50%),
280
+ hsl(150deg 100% 50% / 0%)
281
+ ),
282
+ radial-gradient(
283
+ circle at bottom left,
284
+ hsl(150deg 100% 84%),
285
+ hsl(150deg 100% 84% / 0%)
286
+ )},
61
287
  ) !default;
@@ -23,6 +23,21 @@ $brightness: (
23
23
  125: brightness(1.25),
24
24
  150: brightness(1.5),
25
25
  200: brightness(2),
26
+ 250: brightness(2.5),
27
+ 500: brightness(5),
28
+ 1000: brightness(10),
29
+ ) !default;
30
+
31
+ // contrast
32
+ $contrast: (
33
+ 0: contrast(0),
34
+ 50: contrast(0.5),
35
+ 75: contrast(0.75),
36
+ 100: contrast(1),
37
+ 125: contrast(1.25),
38
+ 150: contrast(1.5),
39
+ 200: brightness(2),
40
+ 300: brightness(3),
26
41
  ) !default;
27
42
 
28
43
  // saturation
@@ -37,9 +37,11 @@ $vv-dropdown: (
37
37
  display: block,
38
38
  min-width: 0,
39
39
  align-items: center,
40
- min-height: var(--spacing-50),
40
+ min-height: var(--input-min-height),
41
41
  background-color: var(--color-surface-2),
42
- padding: var(--spacing-sm),
42
+ padding: var(--input-spacing-top) var(--input-spacing-right)
43
+ var(--input-spacing-bottom) var(--input-spacing-left),
44
+ font-size: var(--input-font-size),
43
45
  pseudo: (
44
46
  search-cancel-button: (
45
47
  -webkit-appearance: none,
@@ -3,7 +3,7 @@
3
3
  // background-attachment
4
4
  @include spread-map-into-utilities(
5
5
  $map: $background-attachment,
6
- $class: 'bg',
6
+ $class: bg,
7
7
  $attribute: 'background-attachment',
8
8
  $zero-specificity: $zero-specificity-for-utilities
9
9
  );
@@ -11,7 +11,7 @@
11
11
  // background-clip
12
12
  @include spread-map-into-utilities(
13
13
  $map: $background-clip,
14
- $class: 'bg-clip',
14
+ $class: bg-clip,
15
15
  $attribute: 'background-clip',
16
16
  $zero-specificity: $zero-specificity-for-utilities
17
17
  );
@@ -19,7 +19,7 @@
19
19
  // background-origin
20
20
  @include spread-map-into-utilities(
21
21
  $map: $background-origin,
22
- $class: 'bg-origin',
22
+ $class: bg-origin,
23
23
  $attribute: 'background-origin',
24
24
  $zero-specificity: $zero-specificity-for-utilities
25
25
  );
@@ -27,7 +27,7 @@
27
27
  // background-position
28
28
  @include spread-map-into-utilities(
29
29
  $map: $background-position,
30
- $class: 'bg',
30
+ $class: bg,
31
31
  $attribute: 'background-position',
32
32
  $zero-specificity: $zero-specificity-for-utilities
33
33
  );
@@ -55,3 +55,12 @@
55
55
  $attribute: background-image,
56
56
  $zero-specificity: $zero-specificity-for-utilities
57
57
  );
58
+
59
+ // background gradients
60
+ @include spread-map-into-utilities(
61
+ $map: $gradient,
62
+ $class: bg-gradient,
63
+ $attribute: background-image,
64
+ $prop: gradient,
65
+ $zero-specificity: $zero-specificity-for-utilities
66
+ );