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

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.2",
28
28
  "engines": {
29
29
  "node": ">= 12.x"
30
30
  },
@@ -114,6 +114,8 @@
114
114
  "./scss/utilities": "./src/utilities/index.scss",
115
115
  "./utilities/grid": "./dist/utilities/grid.css",
116
116
  "./scss/utilities/grid": "./src/utilities/grid.scss",
117
+ "./utilities/gradients": "./dist/utilities/gradients.css",
118
+ "./scss/utilities/gradients": "./src/utilities/gradients.scss",
117
119
  "./utilities/flexbox": "./dist/utilities/flexbox.css",
118
120
  "./scss/utilities/flexbox": "./src/utilities/flexbox.scss",
119
121
  "./utilities/filters": "./dist/utilities/filters.css",
@@ -142,6 +144,8 @@
142
144
  "./scss/props/input": "./src/props/input.scss",
143
145
  "./props": "./dist/props.css",
144
146
  "./scss/props": "./src/props/index.scss",
147
+ "./props/gradient": "./dist/props/gradient.css",
148
+ "./scss/props/gradient": "./src/props/gradient.scss",
145
149
  "./props/filters": "./dist/props/filters.css",
146
150
  "./scss/props/filters": "./src/props/filters.scss",
147
151
  "./props/effects": "./dist/props/effects.css",
package/src/export.scss CHANGED
@@ -247,6 +247,19 @@
247
247
 
248
248
  // #endregion
249
249
 
250
+ // #region GRADIENT
251
+ @each $size, $value in $gradient {
252
+ gradient__#{$size}: $value;
253
+ }
254
+ @each $size, $value in $noise {
255
+ noise__#{$size}: $value;
256
+ }
257
+ @each $size, $value in $noise-filter {
258
+ noise-filter__#{$size}: $value;
259
+ }
260
+
261
+ // #endregion
262
+
250
263
  // ============================================================== */
251
264
  // #region SPACING
252
265
  // spacing & spacing-dynamic
@@ -0,0 +1,7 @@
1
+ @use '../context' as *;
2
+
3
+ :where(:host, :root, .theme) {
4
+ @include spread-map-into-props($gradient, $prefix: gradient);
5
+ @include spread-map-into-props($noise, $prefix: noise);
6
+ @include spread-map-into-props($noise-filter, $prefix: noise-filter);
7
+ }
@@ -4,6 +4,7 @@
4
4
  @use 'colors';
5
5
  @use 'effects';
6
6
  @use 'filters';
7
+ @use 'gradient';
7
8
  @use 'input';
8
9
  @use 'layout';
9
10
  @use 'media';
@@ -0,0 +1,201 @@
1
+ // Noise
2
+ $noise: (
3
+ 1:
4
+ 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"),
5
+ 2:
6
+ 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"),
7
+ 3:
8
+ 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"),
9
+ 4:
10
+ 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"),
11
+ 5:
12
+ 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"),
13
+ ) !default;
14
+
15
+ // Noise filter
16
+ $noise-filter: (
17
+ 1: contrast(300%) brightness(100%),
18
+ 2: contrast(200%) brightness(150%),
19
+ 3: contrast(200%) brightness(250%),
20
+ 4: contrast(200%) brightness(500%),
21
+ 5: contrast(200%) brightness(1000%),
22
+ ) !default;
23
+ $gradient: (
24
+ brand:
25
+ linear-gradient(
26
+ to bottom right,
27
+ var(--color-brand-darken-3),
28
+ var(--color-brand),
29
+ var(--color-brand-lighten-3)
30
+ ),
31
+ accent:
32
+ linear-gradient(
33
+ to bottom right,
34
+ var(--color-accent-darken-3),
35
+ var(--color-accent),
36
+ var(--color-accent-lighten-3)
37
+ ),
38
+ 1:
39
+ linear-gradient(
40
+ to bottom right,
41
+ #1f005c,
42
+ #5b0060,
43
+ #870160,
44
+ #ac255e,
45
+ #ca485c,
46
+ #e16b5c,
47
+ #f39060,
48
+ #ffb56b
49
+ ),
50
+ 2: linear-gradient(to bottom right, #48005c, #8300e2, #a269ff),
51
+ 3: #{radial-gradient(
52
+ circle at top right,
53
+ hsl(180deg 100% 50%),
54
+ hsl(180deg 100% 50% / 0%)
55
+ ),
56
+ radial-gradient(
57
+ circle at bottom left,
58
+ hsl(328deg 100% 54%),
59
+ hsl(328deg 100% 54% / 0%)
60
+ )},
61
+ 4: linear-gradient(to bottom right, #00f5a0, #00d9f5),
62
+ 5: conic-gradient(from -270deg at 75% 110%, fuchsia, floralwhite),
63
+ 6: conic-gradient(from -90deg at top left, black, white),
64
+ 7: linear-gradient(to bottom right, #72c6ef, #004e8f),
65
+ 8: conic-gradient(from 90deg at 50% 0%, #111, 50%, #222, #111),
66
+ 9: conic-gradient(from 0.5turn at bottom center, lightblue, white),
67
+ 10:
68
+ conic-gradient(
69
+ from 90deg at 40% -25%,
70
+ #ffd700,
71
+ #f79d03,
72
+ #ee6907,
73
+ #e6390a,
74
+ #de0d0d,
75
+ #d61039,
76
+ #cf1261,
77
+ #c71585,
78
+ #cf1261,
79
+ #d61039,
80
+ #de0d0d,
81
+ #ee6907,
82
+ #f79d03,
83
+ #ffd700,
84
+ #ffd700,
85
+ #ffd700
86
+ ),
87
+ 11: conic-gradient(at bottom left, deeppink, cyan),
88
+ 12:
89
+ conic-gradient(
90
+ from 90deg at 25% -10%,
91
+ #ff4500,
92
+ #d3f340,
93
+ #7bee85,
94
+ #afeeee,
95
+ #7bee85
96
+ ),
97
+ 13:
98
+ radial-gradient(
99
+ circle at 50% 200%,
100
+ #000142,
101
+ #3b0083,
102
+ #b300c3,
103
+ #ff059f,
104
+ #ff4661,
105
+ #ffad86,
106
+ #fff3c7
107
+ ),
108
+ 14: conic-gradient(at top right, lime, cyan),
109
+ 15: linear-gradient(to bottom right, #c7d2fe, #fecaca, #fef3c7),
110
+ 16: radial-gradient(circle at 50% -250%, #374151, #111827, #000),
111
+ 17: conic-gradient(from -90deg at 50% -25%, blue, blueviolet),
112
+ 18: #{linear-gradient(
113
+ 0deg,
114
+ hsla(0deg 100% 50% / 80%),
115
+ hsla(0deg 100% 50% / 0%) 75%
116
+ ),
117
+ linear-gradient(
118
+ 60deg,
119
+ hsla(60deg 100% 50% / 80%),
120
+ hsla(60deg 100% 50% / 0%) 75%,
121
+ ),
122
+ linear-gradient(
123
+ 120deg,
124
+ hsla(120deg 100% 50% / 80%),
125
+ hsla(120deg 100% 50% / 0%) 75%,
126
+ ),
127
+ linear-gradient(
128
+ 180deg,
129
+ hsla(180deg 100% 50% / 80%),
130
+ hsla(180deg 100% 50% / 0%) 75%,
131
+ ),
132
+ linear-gradient(
133
+ 240deg,
134
+ hsla(240deg 100% 50% / 80%),
135
+ hsla(240deg 100% 50% / 0%) 75%,
136
+ ),
137
+ linear-gradient(
138
+ 300deg,
139
+ hsla(300deg 100% 50% / 80%),
140
+ hsla(300deg 100% 50% / 0%) 75%
141
+ )},
142
+ 19: linear-gradient(to bottom right, #ffe259, #ffa751),
143
+ 20:
144
+ conic-gradient(
145
+ from -135deg at -10% center,
146
+ #ffa500,
147
+ #ff7715,
148
+ #ff522a,
149
+ #ff3f47,
150
+ #ff5482,
151
+ #ff69b4
152
+ ),
153
+ 21:
154
+ conic-gradient(
155
+ from -90deg at 25% 115%,
156
+ #f00,
157
+ #f06,
158
+ #f0c,
159
+ #c0f,
160
+ #60f,
161
+ #00f,
162
+ #00f,
163
+ #00f,
164
+ #00f
165
+ ),
166
+ 22: linear-gradient(to bottom right, #acb6e5, #86fde8),
167
+ 23: linear-gradient(to bottom right, #536976, #292e49),
168
+ 24:
169
+ conic-gradient(
170
+ from 0.5turn at 0% 0%,
171
+ #00c476,
172
+ 10%,
173
+ #82b0ff,
174
+ 90%,
175
+ #00c476
176
+ ),
177
+ 25: conic-gradient(at 125% 50%, #b78cf7, #ff7c94, #ffcf0d, #ff7c94, #b78cf7),
178
+ 26: linear-gradient(to bottom right, #9796f0, #fbc7d4),
179
+ 27: conic-gradient(from 0.5turn at bottom left, deeppink, rebeccapurple),
180
+ 28: conic-gradient(from -90deg at 50% 105%, white, orchid),
181
+ 29: #{radial-gradient(
182
+ circle at top right,
183
+ hsl(250deg 100% 85%),
184
+ hsl(250deg 100% 85% / 0%)
185
+ ),
186
+ radial-gradient(
187
+ circle at bottom left,
188
+ hsl(220deg 90% 75%),
189
+ hsl(220deg 90% 75% / 0%)
190
+ )},
191
+ 30: #{radial-gradient(
192
+ circle at top right,
193
+ hsl(150deg 100% 50%),
194
+ hsl(150deg 100% 50% / 0%)
195
+ ),
196
+ radial-gradient(
197
+ circle at bottom left,
198
+ hsl(150deg 100% 84%),
199
+ hsl(150deg 100% 84% / 0%)
200
+ )},
201
+ ) !default;
@@ -6,6 +6,7 @@
6
6
  @forward 'effects';
7
7
  @forward 'filters';
8
8
  @forward 'flexbox';
9
+ @forward 'gradient';
9
10
  @forward 'grid';
10
11
  @forward 'input';
11
12
  @forward 'interactivity';
@@ -0,0 +1,11 @@
1
+ @use 'sass:map';
2
+ @use '../context' as *;
3
+
4
+ // background gradients
5
+ @include spread-map-into-utilities(
6
+ $map: $gradient,
7
+ $class: bg-gradient,
8
+ $attribute: background,
9
+ $prop: gradient,
10
+ $zero-specificity: $zero-specificity-for-utilities
11
+ );
@@ -4,6 +4,7 @@
4
4
  @forward 'effects';
5
5
  @forward 'filters';
6
6
  @forward 'flexbox';
7
+ @forward 'gradients';
7
8
  @forward 'grid';
8
9
  @forward 'interactivity';
9
10
  @forward 'layout';