webcoreui 0.1.0 → 0.3.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 (93) hide show
  1. package/README.md +37 -1
  2. package/astro.d.ts +12 -0
  3. package/astro.js +12 -0
  4. package/components/Accordion/accordion.module.scss +1 -2
  5. package/components/Alert/Alert.tsx +4 -1
  6. package/components/Alert/alert.module.scss +3 -3
  7. package/components/Avatar/avatar.module.scss +2 -0
  8. package/components/Badge/badge.module.scss +1 -1
  9. package/components/Button/button.module.scss +2 -2
  10. package/components/Button/button.ts +1 -1
  11. package/components/Card/card.module.scss +0 -1
  12. package/components/Checkbox/checkbox.module.scss +4 -4
  13. package/components/Collapsible/Collapsible.astro +63 -0
  14. package/components/Collapsible/Collapsible.svelte +48 -0
  15. package/components/Collapsible/Collapsible.tsx +54 -0
  16. package/components/Collapsible/collapsible.module.scss +29 -0
  17. package/components/Collapsible/collapsible.ts +14 -0
  18. package/components/Icon/map.ts +2 -0
  19. package/components/Input/input.module.scss +2 -2
  20. package/components/Menu/Menu.astro +7 -3
  21. package/components/Menu/Menu.svelte +11 -3
  22. package/components/Menu/Menu.tsx +7 -1
  23. package/components/Menu/menu.module.scss +4 -1
  24. package/components/Menu/menu.ts +1 -0
  25. package/components/Modal/Modal.astro +70 -0
  26. package/components/Modal/Modal.svelte +71 -0
  27. package/components/Modal/Modal.tsx +76 -0
  28. package/components/Modal/modal.module.scss +103 -0
  29. package/components/Modal/modal.ts +18 -0
  30. package/components/Popover/Popover.astro +23 -0
  31. package/components/Popover/Popover.svelte +21 -0
  32. package/components/Popover/Popover.tsx +27 -0
  33. package/components/Popover/popover.module.scss +51 -0
  34. package/components/Popover/popover.ts +8 -0
  35. package/components/Progress/progress.module.scss +3 -3
  36. package/components/Radio/radio.module.scss +1 -2
  37. package/components/Rating/Rating.astro +2 -2
  38. package/components/Rating/Rating.svelte +2 -2
  39. package/components/Rating/Rating.tsx +2 -2
  40. package/components/Rating/rating.module.scss +1 -1
  41. package/components/Sheet/Sheet.astro +29 -0
  42. package/components/Sheet/Sheet.svelte +24 -0
  43. package/components/Sheet/Sheet.tsx +32 -0
  44. package/components/Sheet/sheet.module.scss +68 -0
  45. package/components/Sheet/sheet.ts +10 -0
  46. package/components/Slider/Slider.astro +44 -0
  47. package/components/Slider/Slider.svelte +42 -0
  48. package/components/Slider/Slider.tsx +48 -0
  49. package/components/Slider/slider.module.scss +68 -0
  50. package/components/Slider/slider.ts +20 -0
  51. package/components/Switch/switch.module.scss +1 -1
  52. package/components/Table/Table.astro +6 -1
  53. package/components/Table/Table.svelte +3 -1
  54. package/components/Table/Table.tsx +7 -1
  55. package/components/Table/table.module.scss +11 -1
  56. package/components/Table/table.ts +1 -0
  57. package/components/Tabs/tabs.module.scss +6 -1
  58. package/components/Textarea/Textarea.astro +44 -0
  59. package/components/Textarea/Textarea.svelte +45 -0
  60. package/components/Textarea/Textarea.tsx +50 -0
  61. package/components/Textarea/textarea.module.scss +36 -0
  62. package/components/Textarea/textarea.ts +18 -0
  63. package/components/ThemeSwitcher/ThemeSwitcher.astro +1 -0
  64. package/components/ThemeSwitcher/ThemeSwitcher.svelte +2 -1
  65. package/components/ThemeSwitcher/ThemeSwitcher.tsx +2 -1
  66. package/components/Timeline/timeline.module.scss +4 -4
  67. package/components/TimelineItem/TimelineItem.tsx +1 -6
  68. package/components/TimelineItem/timelineitem.module.scss +2 -3
  69. package/components/TimelineItem/timelineitem.ts +5 -0
  70. package/components/Toast/Toast.svelte +11 -6
  71. package/icons/close.svg +3 -0
  72. package/icons.d.ts +1 -0
  73. package/icons.js +1 -0
  74. package/index.d.ts +69 -0
  75. package/index.js +4 -0
  76. package/package.json +2 -1
  77. package/react.d.ts +14 -2
  78. package/react.js +12 -0
  79. package/scss/config/color-palette.scss +1 -0
  80. package/scss/config/mixins.scss +152 -155
  81. package/scss/config/typography.scss +8 -9
  82. package/scss/global/theme.scss +71 -38
  83. package/scss/global/tooltip.scss +5 -3
  84. package/scss/global/utility.scss +76 -58
  85. package/scss/resets.scss +10 -5
  86. package/scss/setup.scss +2 -2
  87. package/svelte.d.ts +12 -0
  88. package/svelte.js +12 -0
  89. package/utils/debounce.ts +24 -0
  90. package/utils/interpolate.ts +23 -0
  91. package/utils/modal.ts +59 -0
  92. package/utils/popover.ts +201 -0
  93. package/utils/toast.ts +0 -6
@@ -3,27 +3,6 @@
3
3
  @use 'sass:list';
4
4
  @use 'sass:string';
5
5
 
6
- @mixin transition($args...) {
7
- $property: all;
8
- $speed: .3s;
9
-
10
- @each $arg in $args {
11
- @if (meta.type-of($arg) == 'number') {
12
- $speed: $arg;
13
- } @else {
14
- $property: $arg;
15
- }
16
- }
17
-
18
- transition: $property $speed cubic-bezier(0.4, 0.0, 0.2, 1);
19
- }
20
-
21
- @mixin media($breakpoint: 'xs') {
22
- @media (min-width: #{map.get($breakpoints, $breakpoint)}) {
23
- @content;
24
- }
25
- }
26
-
27
6
  @mixin background($arg) {
28
7
  background: map.get($colorPalette, '#{$arg}') or $arg;
29
8
  }
@@ -71,122 +50,95 @@
71
50
  @mixin border-radius($args...) {
72
51
  $borderRadius: map.get($radius, 'md');
73
52
  $position: null;
74
- $side: (
75
- top: ('top-left', 'top-right'),
76
- bottom: ('bottom-left', 'bottom-right'),
77
- left: ('top-left', 'bottom-left'),
78
- right: ('top-right', 'bottom-right')
79
- );
80
-
53
+
81
54
  @each $arg in $args {
82
- @if (map.get($radius, $arg)) {
83
- $borderRadius: map.get($radius, $arg);
84
- }
85
-
86
- @if (map.get($side, $arg)) {
87
- $position: map.get($side, $arg);
88
- }
55
+ @if (map.get($radius, $arg)) {
56
+ $borderRadius: map.get($radius, $arg);
57
+ }
58
+
59
+ $side: (
60
+ top: $borderRadius $borderRadius 0 0,
61
+ bottom: 0 0 $borderRadius $borderRadius,
62
+ left: $borderRadius 0 0 $borderRadius,
63
+ right: 0 $borderRadius $borderRadius 0,
64
+ diagonal: $borderRadius 0,
65
+ reverse-diagonal: 0 $borderRadius
66
+ );
67
+
68
+ @if (map.get($side, $arg)) {
69
+ $position: map.get($side, $arg);
70
+ }
89
71
  }
72
+
73
+ border-radius: $position or $borderRadius;
74
+ }
90
75
 
91
- @if ($position) {
92
- @each $key in $position {
93
- border-#{$key}-radius: $borderRadius;
94
- }
95
- } @else {
96
- border-radius: $borderRadius;
97
- }
76
+ @mixin layer($stack: 'default') {
77
+ z-index: #{map.get($layers, $stack)};
98
78
  }
99
79
 
100
- @mixin visibility($args...) {
80
+ @mixin layout($args...) {
81
+ $layouts: (flex, inline-flex, grid, inline-grid);
82
+ $alignments: (
83
+ vertical: (
84
+ 'v-center': center,
85
+ 'v-start': flex-start,
86
+ 'v-end': flex-end,
87
+ 'v-baseline': baseline,
88
+ 'v-stretch': stretch
89
+ ),
90
+ horizontal: (
91
+ 'h-center': center,
92
+ 'h-start': flex-start,
93
+ 'h-end': flex-end,
94
+ 'h-between': space-between,
95
+ 'h-around': space-around,
96
+ 'h-evenly': space-evenly,
97
+ 'h-stretch': stretch
98
+ )
99
+ );
100
+
101
101
  @each $arg in $args {
102
- @if list.index($displayValues, $arg) {
102
+ @if (list.index($layouts, $arg)) {
103
103
  display: $arg;
104
104
  }
105
105
 
106
- @if list.index($overflowValues, $arg) {
107
- overflow: $arg;
108
- }
109
-
110
- @if (meta.type-of($arg) == 'number') {
111
- opacity: $arg;
106
+ @if (map.get($spacing, $arg)) {
107
+ gap: map.get($spacing, $arg);
112
108
  }
113
- }
114
- }
115
-
116
- @mixin layer($stack: 'default') {
117
- z-index: #{map.get($layers, $stack)};
118
- }
119
-
120
- @mixin size($args...) {
121
- $singlePrefix: string.slice(list.nth(#{$args}, 1), 1, 1);
122
- $isSingle: list.length($args) == 1
123
- and $singlePrefix != 'w'
124
- and $singlePrefix != 'h';
125
-
126
- @if ($isSingle) {
127
- width: $args;
128
- height: $args;
129
- } @else {
130
- @each $arg in $args {
131
- @if (meta.type-of($arg) == string) {
132
- $prefix: string.slice($arg, 1, 1);
133
- $value: string.slice($arg, 2, -1);
134
109
 
135
- @if ($prefix == 'w') {
136
- width: string.unquote($value);
137
- }
138
-
139
- @if ($prefix == 'h') {
140
- height: string.unquote($value);
141
- }
142
- } @else {
143
- @if (index($args, $arg) == 1) {
144
- width: $arg;
145
- }
110
+ @if (meta.type-of($arg) == 'string') {
111
+ @if (string.index($arg, 'v-')) {
112
+ align-items: map.get(map.get($alignments, vertical), $arg)
113
+ }
146
114
 
147
- @if (index($args, $arg) == 2) {
148
- height: $arg;
149
- }
115
+ @if (string.index($arg, 'h-')) {
116
+ justify-content: map.get(map.get($alignments, horizontal), $arg)
150
117
  }
151
118
  }
152
- }
153
- }
154
-
155
- @mixin typography($args...) {
156
- @each $arg in $args {
157
- $color: map.get($colorPalette, '#{$arg}');
158
- $type: map.get($fontTypes, '#{$arg}');
159
- $size: map.get($fontSizes, '#{$arg}');
160
- $height: map.get($lineHeights, '#{$arg}');
161
- $decoration: map.get($decorations, '#{$arg}');
162
-
163
- @if ($color) {
164
- color: $color;
165
- }
166
-
167
- @if ($type) {
168
- font-family: $type;
169
- }
170
119
 
171
- @if ($size) {
172
- font-size: $size;
120
+ @if ($arg == 'center') {
121
+ align-items: center;
122
+ justify-content: center;
173
123
  }
174
124
 
175
- @if list.index($fontWeights, $arg) {
176
- font-weight: $arg;
125
+ @if (list.index($flexDirectionValues, $arg)) {
126
+ flex-direction: $arg;
177
127
  }
178
128
 
179
- @if list.index($textAlignValues, $arg) {
180
- text-align: $arg;
129
+ @if (meta.type-of($arg) == 'number') {
130
+ grid-template-columns: repeat($arg, minmax(0, 1fr));
181
131
  }
182
132
 
183
- @if ($decoration) {
184
- text-decoration: $decoration;
133
+ @if (list.index($flexWrapValues, $arg)) {
134
+ flex-wrap: $arg;
185
135
  }
136
+ }
137
+ }
186
138
 
187
- @if ($height or (meta.type-of($arg) == 'number' and $arg < 100)) {
188
- line-height: $height or $arg;
189
- }
139
+ @mixin media($breakpoint: 'xs') {
140
+ @media (min-width: #{map.get($breakpoints, $breakpoint)}) {
141
+ @content;
190
142
  }
191
143
  }
192
144
 
@@ -230,6 +182,41 @@
230
182
  }
231
183
  }
232
184
 
185
+ @mixin size($args...) {
186
+ $singlePrefix: string.slice(list.nth(#{$args}, 1), 1, 1);
187
+ $isSingle: list.length($args) == 1
188
+ and $singlePrefix != 'w'
189
+ and $singlePrefix != 'h';
190
+
191
+ @if ($isSingle) {
192
+ width: $args;
193
+ height: $args;
194
+ } @else {
195
+ @each $arg in $args {
196
+ @if (meta.type-of($arg) == string) {
197
+ $prefix: string.slice($arg, 1, 1);
198
+ $value: string.slice($arg, 2, -1);
199
+
200
+ @if ($prefix == 'w') {
201
+ width: string.unquote($value);
202
+ }
203
+
204
+ @if ($prefix == 'h') {
205
+ height: string.unquote($value);
206
+ }
207
+ } @else {
208
+ @if (index($args, $arg) == 1) {
209
+ width: $arg;
210
+ }
211
+
212
+ @if (index($args, $arg) == 2) {
213
+ height: $arg;
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+
233
220
  @mixin spacing($args...) {
234
221
  $margin: (0 0 0 0);
235
222
  $padding: (0 0 0 0);
@@ -342,61 +329,71 @@
342
329
  }
343
330
  }
344
331
 
345
- @mixin layout($args...) {
346
- $layouts: (flex, inline-flex, grid, inline-grid);
347
- $alignments: (
348
- vertical: (
349
- 'v-center': center,
350
- 'v-start': flex-start,
351
- 'v-end': flex-end,
352
- 'v-baseline': baseline,
353
- 'v-stretch': stretch
354
- ),
355
- horizontal: (
356
- 'h-center': center,
357
- 'h-start': flex-start,
358
- 'h-end': flex-end,
359
- 'h-between': space-between,
360
- 'h-around': space-around,
361
- 'h-evenly': space-evenly,
362
- 'h-stretch': stretch
363
- )
364
- );
332
+ @mixin transition($args...) {
333
+ $property: all;
334
+ $speed: .3s;
365
335
 
366
336
  @each $arg in $args {
367
- @if (list.index($layouts, $arg)) {
368
- display: $arg;
337
+ @if (meta.type-of($arg) == 'number') {
338
+ $speed: $arg;
339
+ } @else {
340
+ $property: $arg;
369
341
  }
342
+ }
370
343
 
371
- @if (map.get($spacing, $arg)) {
372
- gap: map.get($spacing, $arg);
344
+ transition: $property $speed cubic-bezier(0.4, 0.0, 0.2, 1);
345
+ }
346
+
347
+ @mixin typography($args...) {
348
+ @each $arg in $args {
349
+ $color: map.get($colorPalette, '#{$arg}');
350
+ $type: map.get($fontTypes, '#{$arg}');
351
+ $size: map.get($fontSizes, '#{$arg}');
352
+ $height: map.get($lineHeights, '#{$arg}');
353
+ $decoration: map.get($decorations, '#{$arg}');
354
+
355
+ @if ($color) {
356
+ color: $color;
373
357
  }
374
358
 
375
- @if (meta.type-of($arg) == 'string') {
376
- @if (string.index($arg, 'v-')) {
377
- align-items: map.get(map.get($alignments, vertical), $arg)
378
- }
379
-
380
- @if (string.index($arg, 'h-')) {
381
- justify-content: map.get(map.get($alignments, horizontal), $arg)
382
- }
359
+ @if ($type) {
360
+ font-family: $type;
383
361
  }
384
362
 
385
- @if ($arg == 'center') {
386
- align-items: center;
387
- justify-content: center;
363
+ @if ($size) {
364
+ font-size: $size;
388
365
  }
389
366
 
390
- @if (list.index($flexDirectionValues, $arg)) {
391
- flex-direction: $arg;
367
+ @if list.index($fontWeights, $arg) {
368
+ font-weight: $arg;
392
369
  }
393
370
 
394
- @if (meta.type-of($arg) == 'number') {
395
- grid-template-columns: repeat($arg, minmax(0, 1fr));
371
+ @if list.index($textAlignValues, $arg) {
372
+ text-align: $arg;
396
373
  }
397
374
 
398
- @if (list.index($flexWrapValues, $arg)) {
399
- flex-wrap: $arg;
375
+ @if ($decoration) {
376
+ text-decoration: $decoration;
377
+ }
378
+
379
+ @if ($height or (meta.type-of($arg) == 'number' and $arg < 100)) {
380
+ line-height: $height or $arg;
381
+ }
382
+ }
383
+ }
384
+
385
+ @mixin visibility($args...) {
386
+ @each $arg in $args {
387
+ @if list.index($displayValues, $arg) {
388
+ display: $arg;
389
+ }
390
+
391
+ @if list.index($overflowValues, $arg) {
392
+ overflow: $arg;
393
+ }
394
+
395
+ @if (meta.type-of($arg) == 'number') {
396
+ opacity: $arg;
400
397
  }
401
398
  }
402
399
  }
@@ -4,15 +4,14 @@ $fontTypes: (
4
4
  ) !default;
5
5
 
6
6
  $fontSizes: (
7
- 'xxs': 10px,
8
- 'xs': 12px,
9
- 'sm': 14px,
10
- 'md': 16px,
11
- 'default': 18px,
12
- 'lg': 21px,
13
- 'xl': 24px,
14
- '2xl': 28px,
15
- '3xl': 32px
7
+ 'xs': 10px,
8
+ 'sm': 12px,
9
+ 'md': 14px,
10
+ 'default': 16px,
11
+ 'lg': 18px,
12
+ 'xl': 21px,
13
+ '2xl': 24px,
14
+ '3xl': 28px
16
15
  ) !default;
17
16
 
18
17
  $lineHeights: (
@@ -7,7 +7,7 @@
7
7
  --w-color-primary: #FFF;
8
8
  --w-color-primary-10: #DDD;
9
9
  --w-color-primary-20: #BBB;
10
- --w-color-primary-30: #555;
10
+ --w-color-primary-30: #757575;
11
11
  --w-color-primary-40: #333;
12
12
  --w-color-primary-50: #252525;
13
13
  --w-color-primary-60: #111;
@@ -22,9 +22,10 @@
22
22
  --w-color-warning: #FF9F43;
23
23
  --w-color-warning-accent: #f7AA61;
24
24
  --w-color-warning-fg: #000;
25
- --w-color-alert: #E73F40;
25
+ --w-color-alert: #de3233;
26
26
  --w-color-alert-accent: #EE5253;
27
27
  --w-color-alert-fg: #FFF;
28
+ --w-color-overlay: #0000009e;
28
29
  }
29
30
  }
30
31
 
@@ -49,9 +50,10 @@
49
50
  --w-color-warning: #FF9F43;
50
51
  --w-color-warning-accent: #f7AA61;
51
52
  --w-color-warning-fg: #000;
52
- --w-color-alert: #E73F40;
53
+ --w-color-alert: #de3233;
53
54
  --w-color-alert-accent: #EE5253;
54
55
  --w-color-alert-fg: #FFF;
56
+ --w-color-overlay: #0000009e;
55
57
  }
56
58
  }
57
59
 
@@ -61,78 +63,109 @@
61
63
  --w-color-primary: #FFF;
62
64
  --w-color-primary-10: #EEE;
63
65
  --w-color-primary-20: #a5b7cf;
64
- --w-color-primary-30: #516580;
66
+ --w-color-primary-30: #667f9e;
65
67
  --w-color-primary-40: #2d4463;
66
68
  --w-color-primary-50: #20344e;
67
69
  --w-color-primary-60: #101a2d;
68
70
  --w-color-primary-70: #061321;
69
71
 
70
- --w-color-info: #1058b6;
71
- --w-color-info-accent: #176ee0;
72
- --w-color-info-fg: #FFF;
73
- --w-color-success: #10ac95;
72
+ --w-color-info: #57a0ff;
73
+ --w-color-info-accent: #71afff;
74
+ --w-color-info-fg: #000;
75
+ --w-color-success: #10b59c;
74
76
  --w-color-success-accent: #1DD1A1;
75
77
  --w-color-success-fg: #000;
76
78
  --w-color-warning: #FF9F43;
77
- --w-color-warning-accent: #f7AA61;
79
+ --w-color-warning-accent: #feb570;
78
80
  --w-color-warning-fg: #000;
79
- --w-color-alert: #E73F40;
80
- --w-color-alert-accent: #EE5253;
81
+ --w-color-alert: #ed3b3c;
82
+ --w-color-alert-accent: #fb6161;
81
83
  --w-color-alert-fg: #FFF;
84
+ --w-color-overlay: #0017239e;
82
85
  }
83
86
  }
84
87
 
85
- @if $theme == green {
88
+ @if $theme == 'vintage' {
86
89
  #{$selector} {
87
90
  --w-color-scheme: dark;
88
- --w-color-primary: #FFF;
89
- --w-color-primary-10: #EEE;
90
- --w-color-primary-20: #b7ffe4;
91
- --w-color-primary-30: #dad7cd;
92
- --w-color-primary-40: #10AC84;
93
- --w-color-primary-50: #4d6e4c;
94
- --w-color-primary-60: #315037;
95
- --w-color-primary-70: #22392d;
91
+ --w-color-primary: #000;
92
+ --w-color-primary-10: #111;
93
+ --w-color-primary-20: #6b4430;
94
+ --w-color-primary-30: #d6ccc2;
95
+ --w-color-primary-40: #cbb39a;
96
+ --w-color-primary-50: #e8d0b7;
97
+ --w-color-primary-60: #f5e6d5;
98
+ --w-color-primary-70: #f5ebe0;
96
99
 
97
- --w-color-info: #0ABDE3;
100
+ --w-color-info: #6d95d1;
98
101
  --w-color-info-accent: #48DBFB;
99
102
  --w-color-info-fg: #000;
100
- --w-color-success: #10AC84;
103
+ --w-color-success: #85c8ba;
101
104
  --w-color-success-accent: #1DD1A1;
102
105
  --w-color-success-fg: #000;
103
- --w-color-warning: #FF9F43;
106
+ --w-color-warning: #e79d6b;
104
107
  --w-color-warning-accent: #f7AA61;
105
108
  --w-color-warning-fg: #000;
106
- --w-color-alert: #E73F40;
109
+ --w-color-alert: #bf6170;
107
110
  --w-color-alert-accent: #EE5253;
108
111
  --w-color-alert-fg: #FFF;
112
+ --w-color-overlay: #0000009e;
109
113
  }
110
114
  }
111
115
 
112
- @if $theme == beige {
116
+ @if $theme == 'amber' {
113
117
  #{$selector} {
114
118
  --w-color-scheme: dark;
115
- --w-color-primary: #000;
116
- --w-color-primary-10: #111;
117
- --w-color-primary-20: #97725c;
118
- --w-color-primary-30: #d6ccc2;
119
- --w-color-primary-40: #e3d5ca;
120
- --w-color-primary-50: #ecddcd;
121
- --w-color-primary-60: #f1e6da;
122
- --w-color-primary-70: #f5ebe0;
119
+ --w-color-primary: #FFF;
120
+ --w-color-primary-10: #DDD;
121
+ --w-color-primary-20: #FFF3DB;
122
+ --w-color-primary-30: #757575;
123
+ --w-color-primary-40: #232323;
124
+ --w-color-primary-50: #312e31;
125
+ --w-color-primary-60: #1b1b1b;
126
+ --w-color-primary-70: #111;
123
127
 
124
- --w-color-info: #0ABDE3;
128
+ --w-color-info: #78dcdc;
125
129
  --w-color-info-accent: #48DBFB;
126
130
  --w-color-info-fg: #000;
127
- --w-color-success: #10AC84;
128
- --w-color-success-accent: #1DD1A1;
131
+ --w-color-success: #a9dc62;
132
+ --w-color-success-accent: #97da3b;
129
133
  --w-color-success-fg: #000;
130
- --w-color-warning: #FF9F43;
134
+ --w-color-warning: #FCBA28;
131
135
  --w-color-warning-accent: #f7AA61;
132
136
  --w-color-warning-fg: #000;
133
- --w-color-alert: #E73F40;
137
+ --w-color-alert: #ff6188;
138
+ --w-color-alert-accent: #EE5253;
139
+ --w-color-alert-fg: #000;
140
+ --w-color-overlay: #0000009e;
141
+ }
142
+ }
143
+
144
+ @if $theme == 'synthwave' {
145
+ #{$selector} {
146
+ --w-color-scheme: dark;
147
+ --w-color-primary: #FFF;
148
+ --w-color-primary-10: #EEE;
149
+ --w-color-primary-20: #fad5c0;
150
+ --w-color-primary-30: #eabfff;
151
+ --w-color-primary-40: #8212ba;
152
+ --w-color-primary-50: #9D2BD6;
153
+ --w-color-primary-60: #0f1b33;
154
+ --w-color-primary-70: #030d1e;
155
+
156
+ --w-color-info: #1c98ff;
157
+ --w-color-info-accent: #6be4ff;
158
+ --w-color-info-fg: #000;
159
+ --w-color-success: #83e300;
160
+ --w-color-success-accent: #b7ff51;
161
+ --w-color-success-fg: #000;
162
+ --w-color-warning: #FF9F43;
163
+ --w-color-warning-accent: #ffb672;
164
+ --w-color-warning-fg: #000;
165
+ --w-color-alert: #ff3333;
134
166
  --w-color-alert-accent: #EE5253;
135
167
  --w-color-alert-fg: #FFF;
168
+ --w-color-overlay: #13002cc2;
136
169
  }
137
170
  }
138
171
  }
@@ -8,6 +8,8 @@
8
8
 
9
9
  [data-tooltip] {
10
10
  @include position(relative);
11
+ @include typography(normal);
12
+
11
13
  display: inline-block;
12
14
 
13
15
  &::before,
@@ -24,7 +26,7 @@
24
26
  &::before {
25
27
  @include border-radius(md);
26
28
  @include position(absolute);
27
- @include typography(sm, hlg);
29
+ @include typography(md, hlg);
28
30
  @include background(var(--w-tooltip-background));
29
31
  @include size(wmax-content);
30
32
  @include spacing(px-xs);
@@ -94,7 +96,7 @@
94
96
  @include border(5px, top, transparent);
95
97
  @include border(5px, bottom, transparent);
96
98
 
97
- top: calc(50% - 2.5px);
99
+ top: calc(50%);
98
100
  border-left: 5px solid var(--w-tooltip-background);
99
101
  transform: translate(10px, -50%);
100
102
  }
@@ -123,7 +125,7 @@
123
125
  @include border(5px, top, transparent);
124
126
  @include border(5px, bottom, transparent);
125
127
 
126
- top: calc(50% - 2.5px);
128
+ top: calc(50%);
127
129
  border-right: 5px solid var(--w-tooltip-background);
128
130
  transform: translate(-10px, -50%);
129
131
  }