lapikit 0.6.4 → 0.6.6

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.
@@ -44,22 +44,30 @@
44
44
  let elevationState = $derived(useElevation(elevation));
45
45
  let contentType = $derived(label && label.trim().length > 0 ? 'label' : children);
46
46
  let displayLabel = $derived(label?.trim() ?? '');
47
+
48
+ let resolvedStyle = $derived(
49
+ [
50
+ componentStyle,
51
+ color ? `--kit-avatar-fg:${color && `var(--kit-color-${color})`}` : '',
52
+ background ? `--kit-avatar-bg:${background && `var(--kit-color-${background})`}` : ''
53
+ ]
54
+ .filter(Boolean)
55
+ .join('; ')
56
+ );
47
57
  </script>
48
58
 
49
59
  <svelte:element
50
60
  this={'div'}
51
61
  bind:this={ref}
52
62
  class={componentClass}
53
- style={componentStyle}
63
+ style={resolvedStyle}
54
64
  data-type={contentType}
55
- data-size={contentType === 'label' ? size : undefined}
56
- data-density={contentType === 'label' ? density : undefined}
65
+ data-size={size}
66
+ data-density={density}
57
67
  data-rounded={rounded}
58
68
  data-elevation={elevationState.base}
59
69
  data-elevation-hover={elevationState.hover}
60
70
  data-elevation-active={elevationState.active}
61
- style:--kit-avatar-fg={color && `var(--kit-color-${color})`}
62
- style:--kit-avatar-bg={background && `var(--kit-color-${background})`}
63
71
  {...restProps}
64
72
  >
65
73
  {#if contentType === 'label'}
@@ -74,9 +82,8 @@
74
82
  display: inline-flex;
75
83
  align-items: center;
76
84
  justify-content: center;
77
- width: calc(var(--kit-avatar-h) * var(--kit-avatar-density-h-scale));
78
- height: calc(var(--kit-avatar-h) * var(--kit-avatar-density-h-scale));
79
- padding: calc(var(--kit-avatar-px) * var(--kit-avatar-density-scale));
85
+ width: calc(var(--kit-avatar-h) + var(--kit-avatar-density-offset) / 2);
86
+ height: calc(var(--kit-avatar-h) + var(--kit-avatar-density-offset) / 2);
80
87
  overflow: hidden;
81
88
  background: var(--kit-color-surface-3);
82
89
  color: var(--kit-color-text);
@@ -143,21 +150,14 @@
143
150
  * density
144
151
  * @link ...
145
152
  */
146
- .kit-avatar[data-density='none'] {
147
- --kit-avatar-density-scale: 0;
148
- --kit-avatar-density-h-scale: 0;
149
- }
150
153
  .kit-avatar[data-density='compact'] {
151
- --kit-avatar-density-scale: 0.8;
152
- --kit-avatar-density-h-scale: 0.92;
154
+ --kit-avatar-density-offset: var(--kit-density-compact);
153
155
  }
154
156
  .kit-avatar[data-density='default'] {
155
- --kit-avatar-density-scale: 1;
156
- --kit-avatar-density-h-scale: 1;
157
+ --kit-avatar-density-offset: var(--kit-density-default);
157
158
  }
158
159
  .kit-avatar[data-density='comfortable'] {
159
- --kit-list-density-scale: 1.1;
160
- --kit-avatar-density-h-scale: 1.15;
160
+ --kit-avatar-density-offset: var(--kit-density-comfortable);
161
161
  }
162
162
 
163
163
  /**
@@ -165,33 +165,28 @@
165
165
  * @link nothing...
166
166
  */
167
167
  .kit-avatar[data-size='xs'] {
168
- --kit-avatar-h: 28px;
169
- --kit-avatar-px: 10px;
170
- --kit-avatar-gap: 4px;
171
- --kit-avatar-font: 0.75rem;
168
+ --kit-avatar-h: 32px;
169
+ --kit-avatar-gap: var(--kit-space-compact);
170
+ --kit-avatar-font: var(--kit-font-xs);
172
171
  }
173
172
  .kit-avatar[data-size='sm'] {
174
- --kit-avatar-h: 32px;
175
- --kit-avatar-px: 12px;
176
- --kit-avatar-gap: 6px;
177
- --kit-avatar-font: 0.875rem;
173
+ --kit-avatar-h: 40px;
174
+ --kit-avatar-gap: var(--kit-space-default);
175
+ --kit-avatar-font: var(--kit-font-sm);
178
176
  }
179
177
  .kit-avatar[data-size='md'] {
180
- --kit-avatar-h: 40px;
181
- --kit-avatar-px: 16px;
182
- --kit-avatar-gap: 8px;
183
- --kit-avatar-font: 1rem;
178
+ --kit-avatar-h: 48px;
179
+ --kit-avatar-gap: var(--kit-space-default);
180
+ --kit-avatar-font: var(--kit-font-md);
184
181
  }
185
182
  .kit-avatar[data-size='lg'] {
186
- --kit-avatar-h: 48px;
187
- --kit-avatar-px: 20px;
188
- --kit-avatar-gap: 10px;
189
- --kit-avatar-font: 1.125rem;
183
+ --kit-avatar-h: 56px;
184
+ --kit-avatar-gap: var(--kit-space-default);
185
+ --kit-avatar-font: var(--kit-font-lg);
190
186
  }
191
187
  .kit-avatar[data-size='xl'] {
192
- --kit-avatar-h: 56px;
193
- --kit-avatar-px: 24px;
194
- --kit-avatar-gap: 12px;
195
- --kit-avatar-font: 1.25rem;
188
+ --kit-avatar-h: 64px;
189
+ --kit-avatar-gap: var(--kit-space-comfortable);
190
+ --kit-avatar-font: var(--kit-font-xl);
196
191
  }
197
192
  </style>
@@ -72,6 +72,16 @@
72
72
  if (tag !== 'button') return type;
73
73
  return type ?? 'button';
74
74
  });
75
+
76
+ let resolvedStyle = $derived(
77
+ [
78
+ componentStyle,
79
+ color ? `--kit-btn-fg:${color && `var(--kit-color-${color})`}` : '',
80
+ background ? `--kit-btn-bg:${background && `var(--kit-color-${background})`}` : ''
81
+ ]
82
+ .filter(Boolean)
83
+ .join('; ')
84
+ );
75
85
  </script>
76
86
 
77
87
  {#if isInput}
@@ -79,7 +89,7 @@
79
89
  this={inputWrapperTag}
80
90
  bind:this={ref}
81
91
  class={componentClass}
82
- style={componentStyle}
92
+ style={resolvedStyle}
83
93
  data-size={size}
84
94
  data-variant={variant}
85
95
  data-loading={loading}
@@ -99,8 +109,6 @@
99
109
  component: 'btn',
100
110
  disabled: noRipple || disabled
101
111
  }}
102
- style:--kit-btn-fg={color && `var(--kit-color-${color})`}
103
- style:--kit-btn-bg={background && `var(--kit-color-${background})`}
104
112
  >
105
113
  {#if variant === 'outline'}
106
114
  <span class="outline"></span>
@@ -122,7 +130,7 @@
122
130
  this={tag}
123
131
  bind:this={ref}
124
132
  class={componentClass}
125
- style={componentStyle}
133
+ style={resolvedStyle}
126
134
  type={resolvedType()}
127
135
  href={resolvedHref}
128
136
  data-size={size}
@@ -145,8 +153,6 @@
145
153
  component: 'btn',
146
154
  disabled: noRipple || disabled
147
155
  }}
148
- style:--kit-btn-fg={color && `var(--kit-color-${color})`}
149
- style:--kit-btn-bg={background && `var(--kit-color-${background})`}
150
156
  {...restProps}
151
157
  >
152
158
  {#if variant === 'outline'}
@@ -214,8 +220,8 @@
214
220
  font-family: var(--kit-font);
215
221
  background: var(--kit-btn-bg);
216
222
  color: var(--kit-btn-fg);
217
- height: calc(var(--kit-btn-h) * var(--kit-btn-density-h-scale));
218
- padding-inline: calc(var(--kit-btn-px) * var(--kit-btn-density-scale));
223
+ height: calc(var(--kit-btn-h) + var(--kit-btn-density-offset) / 2);
224
+ padding-inline: calc(var(--kit-btn-p) + var(--kit-btn-density-offset) / 2);
219
225
  border-radius: var(--kit-btn-radius);
220
226
  text-decoration: none;
221
227
  white-space: nowrap;
@@ -260,7 +266,7 @@
260
266
  }
261
267
 
262
268
  :is(.kit-btn:focus-visible, .kit-btn:has(> input:focus-visible)) {
263
- outline: 2px solid var(--kit-focus);
269
+ outline: 2px solid var(--kit-color-focus);
264
270
  outline-offset: 2px;
265
271
  }
266
272
 
@@ -345,8 +351,8 @@
345
351
  }
346
352
 
347
353
  .kit-btn[data-icon='true'] {
348
- width: max(28px, calc(var(--kit-btn-h) * var(--kit-btn-density-h-scale)));
349
- min-width: max(28px, calc(var(--kit-btn-h) * var(--kit-btn-density-h-scale)));
354
+ width: max(28px, calc(var(--kit-btn-h) + var(--kit-btn-density-offset) / 2));
355
+ min-width: max(28px, calc(var(--kit-btn-h) + var(--kit-btn-density-offset) / 2));
350
356
  padding-inline: 0;
351
357
  }
352
358
 
@@ -382,19 +388,19 @@
382
388
  * @link nothing...
383
389
  */
384
390
  .kit-btn[data-size='xs'] {
385
- --kit-btn-h: 28px;
386
- --kit-btn-px: 10px;
387
- --kit-btn-gap: 4px;
388
- --kit-btn-font: 0.75rem;
391
+ --kit-btn-h: 24px;
392
+ --kit-btn-p: 8px;
393
+ --kit-btn-gap: var(--kit-space-compact);
394
+ --kit-btn-font: 12px;
389
395
  }
390
396
  .kit-btn[data-size='xs'] :global(.kit-icon:not([data-size])) {
391
397
  --kit-icon-current-size: var(--kit-icon-size-xs);
392
398
  }
393
399
  .kit-btn[data-size='sm'] {
394
400
  --kit-btn-h: 32px;
395
- --kit-btn-px: 12px;
396
- --kit-btn-gap: 6px;
397
- --kit-btn-font: 0.875rem;
401
+ --kit-btn-p: 12px;
402
+ --kit-btn-gap: var(--kit-space-default);
403
+ --kit-btn-font: 13px;
398
404
  }
399
405
  .kit-btn[data-size='sm'] :global(.kit-icon:not([data-size])) {
400
406
  --kit-icon-current-size: var(--kit-icon-size-sm);
@@ -402,9 +408,9 @@
402
408
 
403
409
  .kit-btn[data-size='md'] {
404
410
  --kit-btn-h: 40px;
405
- --kit-btn-px: 16px;
406
- --kit-btn-gap: 8px;
407
- --kit-btn-font: 1rem;
411
+ --kit-btn-p: 16px;
412
+ --kit-btn-gap: var(--kit-space-default);
413
+ --kit-btn-font: 14px;
408
414
  }
409
415
  .kit-btn[data-size='md'] :global(.kit-icon:not([data-size])) {
410
416
  --kit-icon-current-size: var(--kit-icon-size-md);
@@ -412,9 +418,9 @@
412
418
 
413
419
  .kit-btn[data-size='lg'] {
414
420
  --kit-btn-h: 48px;
415
- --kit-btn-px: 20px;
416
- --kit-btn-gap: 10px;
417
- --kit-btn-font: 1.125rem;
421
+ --kit-btn-p: 20px;
422
+ --kit-btn-gap: var(--kit-space-default);
423
+ --kit-btn-font: 16px;
418
424
  }
419
425
  .kit-btn[data-size='lg'] :global(.kit-icon:not([data-size])) {
420
426
  --kit-icon-current-size: var(--kit-icon-size-lg);
@@ -422,9 +428,9 @@
422
428
 
423
429
  .kit-btn[data-size='xl'] {
424
430
  --kit-btn-h: 56px;
425
- --kit-btn-px: 24px;
426
- --kit-btn-gap: 12px;
427
- --kit-btn-font: 1.25rem;
431
+ --kit-btn-p: 24px;
432
+ --kit-btn-gap: var(--kit-space-comfortable);
433
+ --kit-btn-font: 17px;
428
434
  }
429
435
  .kit-btn[data-size='xl'] :global(.kit-icon:not([data-size])) {
430
436
  --kit-icon-current-size: var(--kit-icon-size-xl);
@@ -434,21 +440,14 @@
434
440
  * density
435
441
  * @link no links
436
442
  */
437
- .kit-btn[data-density='none'] {
438
- --kit-btn-density-scale: 0;
439
- --kit-btn-density-h-scale: 0;
440
- }
441
443
  .kit-btn[data-density='compact'] {
442
- --kit-btn-density-scale: 0.9;
443
- --kit-btn-density-h-scale: 0.92;
444
+ --kit-btn-density-offset: var(--kit-density-compact);
444
445
  }
445
446
  .kit-btn[data-density='default'] {
446
- --kit-btn-density-scale: 1;
447
- --kit-btn-density-h-scale: 1;
447
+ --kit-btn-density-offset: var(--kit-density-default);
448
448
  }
449
449
  .kit-btn[data-density='comfortable'] {
450
- --kit-btn-density-scale: 1.1;
451
- --kit-btn-density-h-scale: 1.15;
450
+ --kit-btn-density-offset: var(--kit-density-comfortable);
452
451
  }
453
452
 
454
453
  /**
@@ -55,13 +55,23 @@
55
55
  styleProps
56
56
  })
57
57
  );
58
+
59
+ let resolvedStyle = $derived(
60
+ [
61
+ componentStyle,
62
+ color ? `--kit-card-fg:${color && `var(--kit-color-${color})`}` : '',
63
+ background ? `--kit-card-bg:${background && `var(--kit-color-${background})`}` : ''
64
+ ]
65
+ .filter(Boolean)
66
+ .join('; ')
67
+ );
58
68
  </script>
59
69
 
60
70
  <svelte:element
61
71
  this={tag}
62
72
  bind:this={ref}
63
73
  class={componentClass}
64
- style={componentStyle}
74
+ style={resolvedStyle}
65
75
  href={resolvedHref}
66
76
  type={resolvedType}
67
77
  disabled={resolvedDisabled}
@@ -80,8 +90,6 @@
80
90
  component: 'card',
81
91
  disabled: noRipple || disabled || !isInteractive
82
92
  }}
83
- style:--kit-card-fg={color && `var(--kit-color-${color})`}
84
- style:--kit-card-bg={background && `var(--kit-color-${background})`}
85
93
  {...restProps}
86
94
  >
87
95
  {#if variant === 'outline'}
@@ -102,7 +110,7 @@
102
110
  border-radius: var(--kit-card-radius);
103
111
  border: 0;
104
112
  box-sizing: border-box;
105
- padding: calc(10px * var(--kit-card-density-scale));
113
+ padding: calc(10px + var(--kit-card-density-offset) / 2);
106
114
  transition:
107
115
  background 140ms ease,
108
116
  color 140ms ease,
@@ -149,20 +157,17 @@
149
157
  * density
150
158
  * @link https://lapikit.dev/docs/components/card#density
151
159
  */
152
- .kit-card[data-density='none'] {
153
- --kit-card-density-scale: 0;
154
- }
155
160
  .kit-card[data-density='compact'] {
156
161
  --kit-card-gap: var(--kit-space-compact);
157
- --kit-card-density-scale: 0.8;
162
+ --kit-card-density-offset: var(--kit-density-compact);
158
163
  }
159
164
  .kit-card[data-density='default'] {
160
165
  --kit-card-gap: var(--kit-space-default);
161
- --kit-card-density-scale: 1;
166
+ --kit-card-density-offset: var(--kit-density-default);
162
167
  }
163
168
  .kit-card[data-density='comfortable'] {
164
169
  --kit-card-gap: var(--kit-space-comfortable);
165
- --kit-card-density-scale: 1.15;
170
+ --kit-card-density-offset: var(--kit-density-comfortable);
166
171
  }
167
172
 
168
173
  /**
@@ -217,7 +222,7 @@
217
222
  }
218
223
 
219
224
  .kit-card[data-interactive='true'][data-disabled='false']:focus-visible {
220
- outline: 2px solid var(--kit-focus);
225
+ outline: 2px solid var(--kit-color-focus);
221
226
  outline-offset: 2px;
222
227
  }
223
228
 
@@ -48,6 +48,6 @@
48
48
  .kit-card-actions {
49
49
  display: inline-flex;
50
50
  align-items: center;
51
- gap: var(--kit-space-1);
51
+ gap: var(--kit-card-gap);
52
52
  }
53
53
  </style>
@@ -11,6 +11,7 @@
11
11
  style: styleAttr = '',
12
12
  's-class': sClass,
13
13
  's-style': sStyle,
14
+ color,
14
15
  ...rest
15
16
  }: CardContentProps = $props();
16
17
 
@@ -32,13 +33,19 @@
32
33
  styleProps
33
34
  })
34
35
  );
36
+
37
+ let resolvedStyle = $derived(
38
+ [componentStyle, color ? `--kit-card-content-fg:${color && `var(--kit-color-${color})`}` : '']
39
+ .filter(Boolean)
40
+ .join('; ')
41
+ );
35
42
  </script>
36
43
 
37
44
  <svelte:element
38
45
  this={is}
39
46
  bind:this={ref}
40
47
  class={componentClass}
41
- style={componentStyle}
48
+ style={resolvedStyle}
42
49
  {...restProps}
43
50
  >
44
51
  {@render children?.()}
@@ -46,6 +53,7 @@
46
53
 
47
54
  <style>
48
55
  .kit-card-content {
56
+ color: var(--kit-card-content-fg, --kit-card-fg);
49
57
  display: block;
50
58
  line-height: 1.45;
51
59
  }
@@ -11,6 +11,7 @@
11
11
  style: styleAttr = '',
12
12
  's-class': sClass,
13
13
  's-style': sStyle,
14
+ color,
14
15
  ...rest
15
16
  }: CardTitleProps = $props();
16
17
 
@@ -32,13 +33,19 @@
32
33
  styleProps
33
34
  })
34
35
  );
36
+
37
+ let resolvedStyle = $derived(
38
+ [componentStyle, color ? `--kit-card-title-fg:${color && `var(--kit-color-${color})`}` : '']
39
+ .filter(Boolean)
40
+ .join('; ')
41
+ );
35
42
  </script>
36
43
 
37
44
  <svelte:element
38
45
  this={is}
39
46
  bind:this={ref}
40
47
  class={componentClass}
41
- style={componentStyle}
48
+ style={resolvedStyle}
42
49
  {...restProps}
43
50
  >
44
51
  {@render children?.()}
@@ -49,7 +56,7 @@
49
56
  display: flex;
50
57
  align-items: center;
51
58
  gap: var(--kit-card-gap);
52
-
59
+ color: var(--kit-card-title-fg, --kit-card-fg);
53
60
  font-weight: 600;
54
61
  line-height: 1.3;
55
62
  }
@@ -87,6 +87,16 @@
87
87
  const resolvedDisabled = $derived((tag === 'button' && isLocked) || undefined);
88
88
 
89
89
  const resolvedType = $derived(tag !== 'button' ? type : (type ?? 'button'));
90
+
91
+ let resolvedStyle = $derived(
92
+ [
93
+ componentStyle,
94
+ color ? `--kit-chip-fg:${color && `var(--kit-color-${color})`}` : '',
95
+ background ? `--kit-chip-bg:${background && `var(--kit-color-${background})`}` : ''
96
+ ]
97
+ .filter(Boolean)
98
+ .join('; ')
99
+ );
90
100
  </script>
91
101
 
92
102
  {#if isInput}
@@ -94,7 +104,7 @@
94
104
  this={inputWrapperTag}
95
105
  bind:this={ref}
96
106
  class={componentClass}
97
- style={componentStyle}
107
+ style={resolvedStyle}
98
108
  data-size={size}
99
109
  data-variant={variant}
100
110
  data-rounded={rounded}
@@ -114,8 +124,6 @@
114
124
  component: 'chip',
115
125
  disabled: noRipple || isLocked
116
126
  }}
117
- style:--kit-chip-fg={color && `var(--kit-color-${color})`}
118
- style:--kit-chip-bg={background && `var(--kit-color-${background})`}
119
127
  >
120
128
  {#if variant === 'outline'}
121
129
  <span class="outline"></span>
@@ -143,7 +151,7 @@
143
151
  this={tag}
144
152
  bind:this={ref}
145
153
  class={componentClass}
146
- style={componentStyle}
154
+ style={resolvedStyle}
147
155
  type={resolvedType}
148
156
  href={resolvedHref}
149
157
  data-size={size}
@@ -167,8 +175,8 @@
167
175
  component: 'chip',
168
176
  disabled: noRipple || !isInteractive
169
177
  }}
170
- style:--kit-chip-fg={color && `var(--kit-color-${color})`}
171
- style:--kit-chip-bg={background && `var(--kit-color-${background})`}
178
+ // style:--kit-chip-fg={color && `var(--kit-color-${color})`}
179
+ // style:--kit-chip-bg={background && `var(--kit-color-${background})`}
172
180
  {...restProps}
173
181
  >
174
182
  {#if variant === 'outline'}
@@ -235,8 +243,8 @@
235
243
  font-family: var(--kit-font);
236
244
  background: var(--kit-chip-bg);
237
245
  color: var(--kit-chip-fg);
238
- height: calc(var(--kit-chip-h) * var(--kit-chip-density-h-scale));
239
- padding-inline: calc(var(--kit-chip-px) * var(--kit-chip-density-scale));
246
+ height: calc(var(--kit-chip-h) + var(--kit-chip-density-offset) / 2);
247
+ padding-inline: calc(var(--kit-chip-p) + var(--kit-chip-density-offset) / 2);
240
248
  border-radius: var(--kit-chip-radius);
241
249
  text-decoration: none;
242
250
  white-space: nowrap;
@@ -273,7 +281,7 @@
273
281
  }
274
282
 
275
283
  :is(.kit-chip:focus-visible, .kit-chip:has(> input:focus-visible)) {
276
- outline: 2px solid var(--kit-focus);
284
+ outline: 2px solid var(--kit-color-focus);
277
285
  outline-offset: 2px;
278
286
  }
279
287
 
@@ -386,19 +394,19 @@
386
394
  * @link nothing...
387
395
  */
388
396
  .kit-chip[data-size='xs'] {
389
- --kit-chip-h: 24px;
390
- --kit-chip-px: 8px;
391
- --kit-chip-gap: 4px;
392
- --kit-chip-font: 0.75rem;
397
+ --kit-chip-h: 20px;
398
+ --kit-chip-p: 8px;
399
+ --kit-chip-gap: var(--kit-space-compact);
400
+ --kit-chip-font: 11px;
393
401
  }
394
402
  .kit-chip[data-size='xs'] :global(.kit-icon:not([data-size])) {
395
403
  --kit-icon-current-size: var(--kit-icon-size-xs);
396
404
  }
397
405
  .kit-chip[data-size='sm'] {
398
- --kit-chip-h: 28px;
399
- --kit-chip-px: 10px;
400
- --kit-chip-gap: 6px;
401
- --kit-chip-font: 0.875rem;
406
+ --kit-chip-h: 24px;
407
+ --kit-chip-p: 10px;
408
+ --kit-chip-gap: var(--kit-space-default);
409
+ --kit-chip-font: 12px;
402
410
  }
403
411
  .kit-chip[data-size='sm'] :global(.kit-icon:not([data-size])) {
404
412
  --kit-icon-current-size: var(--kit-icon-size-sm);
@@ -406,9 +414,9 @@
406
414
 
407
415
  .kit-chip[data-size='md'] {
408
416
  --kit-chip-h: 32px;
409
- --kit-chip-px: 12px;
410
- --kit-chip-gap: 8px;
411
- --kit-chip-font: 1rem;
417
+ --kit-chip-p: 12px;
418
+ --kit-chip-gap: var(--kit-space-default);
419
+ --kit-chip-font: 13px;
412
420
  }
413
421
  .kit-chip[data-size='md'] :global(.kit-icon:not([data-size])) {
414
422
  --kit-icon-current-size: var(--kit-icon-size-md);
@@ -416,9 +424,9 @@
416
424
 
417
425
  .kit-chip[data-size='lg'] {
418
426
  --kit-chip-h: 36px;
419
- --kit-chip-px: 14px;
420
- --kit-chip-gap: 10px;
421
- --kit-chip-font: 1.125rem;
427
+ --kit-chip-p: 14px;
428
+ --kit-chip-gap: var(--kit-space-default);
429
+ --kit-chip-font: 14px;
422
430
  }
423
431
  .kit-chip[data-size='lg'] :global(.kit-icon:not([data-size])) {
424
432
  --kit-icon-current-size: var(--kit-icon-size-lg);
@@ -426,9 +434,9 @@
426
434
 
427
435
  .kit-chip[data-size='xl'] {
428
436
  --kit-chip-h: 40px;
429
- --kit-chip-px: 16px;
430
- --kit-chip-gap: 12px;
431
- --kit-chip-font: 1.25rem;
437
+ --kit-chip-p: 16px;
438
+ --kit-chip-gap: var(--kit-space-comfortable);
439
+ --kit-chip-font: 15px;
432
440
  }
433
441
  .kit-chip[data-size='xl'] :global(.kit-icon:not([data-size])) {
434
442
  --kit-icon-current-size: var(--kit-icon-size-xl);
@@ -438,21 +446,14 @@
438
446
  * density
439
447
  * @link no links
440
448
  */
441
- .kit-chip[data-density='none'] {
442
- --kit-chip-density-scale: 0;
443
- --kit-chip-density-h-scale: 0;
444
- }
445
449
  .kit-chip[data-density='compact'] {
446
- --kit-chip-density-scale: 0.9;
447
- --kit-chip-density-h-scale: 0.92;
450
+ --kit-chip-density-offset: var(--kit-density-compact);
448
451
  }
449
452
  .kit-chip[data-density='default'] {
450
- --kit-chip-density-scale: 1;
451
- --kit-chip-density-h-scale: 1;
453
+ --kit-chip-density-offset: var(--kit-density-default);
452
454
  }
453
455
  .kit-chip[data-density='comfortable'] {
454
- --kit-chip-density-scale: 1.1;
455
- --kit-chip-density-h-scale: 1.15;
456
+ --kit-chip-density-offset: var(--kit-density-comfortable);
456
457
  }
457
458
 
458
459
  /**