@deepfuture/dui-theme-default 0.0.2 → 0.0.4

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 (63) hide show
  1. package/README.md +9 -1
  2. package/components/accordion-item.js +11 -10
  3. package/components/alert-dialog-popup.js +9 -17
  4. package/components/avatar.js +2 -2
  5. package/components/badge.js +55 -29
  6. package/components/breadcrumb-ellipsis.js +1 -1
  7. package/components/breadcrumb-link.js +2 -2
  8. package/components/breadcrumb-page.js +1 -1
  9. package/components/breadcrumb-separator.js +1 -1
  10. package/components/breadcrumb.js +3 -2
  11. package/components/button.js +88 -51
  12. package/components/calendar.js +24 -21
  13. package/components/checkbox-group.js +1 -1
  14. package/components/checkbox.js +10 -9
  15. package/components/collapsible.js +11 -10
  16. package/components/combobox.js +65 -19
  17. package/components/command-empty.js +3 -2
  18. package/components/command-group.js +3 -2
  19. package/components/command-input.js +4 -3
  20. package/components/command-item.js +6 -5
  21. package/components/command-list.js +1 -1
  22. package/components/command-separator.js +1 -1
  23. package/components/command-shortcut.js +3 -2
  24. package/components/command.js +2 -2
  25. package/components/data-table.js +20 -19
  26. package/components/dialog-popup.js +9 -17
  27. package/components/dropzone.js +10 -9
  28. package/components/input.js +13 -12
  29. package/components/menu-item.js +11 -9
  30. package/components/menu.js +19 -1
  31. package/components/number-field.js +13 -11
  32. package/components/popover-popup.js +25 -1
  33. package/components/preview-card-popup.js +26 -1
  34. package/components/progress.js +2 -2
  35. package/components/radio.js +11 -10
  36. package/components/scroll-area.js +9 -9
  37. package/components/select.js +62 -10
  38. package/components/sidebar-group-label.js +2 -2
  39. package/components/sidebar-menu-button.js +6 -14
  40. package/components/sidebar-provider.js +6 -14
  41. package/components/sidebar.js +1 -1
  42. package/components/slider.js +8 -7
  43. package/components/switch.js +12 -11
  44. package/components/tab.js +10 -9
  45. package/components/tabs-indicator.js +3 -3
  46. package/components/tabs-panel.js +3 -2
  47. package/components/textarea.js +11 -10
  48. package/components/toggle-group.js +0 -1
  49. package/components/toggle.js +28 -11
  50. package/components/tooltip-popup.js +29 -1
  51. package/components/trunc.js +3 -3
  52. package/index.d.ts +4 -0
  53. package/index.js +6 -0
  54. package/package.json +14 -2
  55. package/prose.d.ts +2 -0
  56. package/prose.js +4 -0
  57. package/tokens-raw.js +1 -1
  58. package/tokens.css +95 -72
  59. package/tokens.js +3 -2
  60. package/types.d.ts +18 -0
  61. package/types.js +8 -0
  62. package/typography.d.ts +104 -0
  63. package/typography.js +103 -0
@@ -12,29 +12,30 @@ export const checkboxStyles = css `
12
12
  (var(--line-height-normal) * 1em - var(--checkbox-size)) / 2
13
13
  );
14
14
  border-radius: var(--radius-sm);
15
+ transition-property: background, border-color, box-shadow, filter, transform;
15
16
  transition-duration: var(--duration-fast);
16
17
  }
17
18
 
18
19
  [part="root"][data-unchecked] {
19
- border: var(--border-width-thin) solid var(--input);
20
+ border: var(--border-width-thin) solid var(--border);
20
21
  background: transparent;
21
22
  }
22
23
 
23
24
  [part="root"][data-checked],
24
25
  [part="root"][data-indeterminate] {
25
- background: var(--primary);
26
- border: var(--border-width-thin) solid var(--primary);
26
+ background: var(--accent);
27
+ border: var(--border-width-thin) solid var(--accent);
27
28
  }
28
29
 
29
30
  [part="root"][data-disabled] {
30
- opacity: 0.5;
31
+ opacity: 0.4;
31
32
  }
32
33
 
33
34
  [part="root"]:focus-visible {
34
35
  outline: none;
35
36
  box-shadow:
36
- 0 0 0 var(--space-0_5) var(--background),
37
- 0 0 0 var(--space-1) var(--ring);
37
+ 0 0 0 var(--focus-ring-offset) var(--background),
38
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
38
39
  }
39
40
 
40
41
  [part="root"][data-invalid] {
@@ -43,11 +44,11 @@ export const checkboxStyles = css `
43
44
  }
44
45
 
45
46
  [part="indicator"] {
46
- color: var(--primary-foreground);
47
+ color: oklch(from var(--accent) 0.98 0.01 h);
47
48
  }
48
49
 
49
50
  .Icon {
50
- width: 12px;
51
- height: 12px;
51
+ width: var(--space-3);
52
+ height: var(--space-3);
52
53
  }
53
54
  `;
@@ -1,4 +1,5 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const collapsibleStyles = css `
3
4
  /* ── Trigger ── */
4
5
 
@@ -6,32 +7,32 @@ export const collapsibleStyles = css `
6
7
  gap: var(--space-4);
7
8
  padding-block: var(--space-2);
8
9
  padding-inline: var(--space-4);
9
- color: var(--foreground);
10
+ color: var(--text-1);
10
11
  font-family: var(--font-sans);
11
12
  font-weight: var(--font-weight-semibold);
12
- font-size: var(--font-size-sm);
13
+ ${type("sm")}
13
14
  height: var(--component-height-md);
14
- line-height: var(--line-height-normal);
15
15
  border-radius: var(--radius-sm);
16
+ transition-property: background, box-shadow, filter, transform;
16
17
  transition-duration: var(--duration-fast);
17
18
  transition-timing-function: var(--ease-out-3);
18
19
  }
19
20
 
20
21
  @media (hover: hover) {
21
22
  [part="trigger"]:hover {
22
- background: color-mix(in oklch, var(--muted) 50%, transparent);
23
+ background: oklch(from var(--foreground) l c h / 0.05);
23
24
  }
24
25
  }
25
26
 
26
27
  [part="trigger"]:focus-visible {
27
28
  box-shadow:
28
- 0 0 0 var(--space-0_5) var(--background),
29
- 0 0 0 var(--space-1) var(--ring);
29
+ 0 0 0 var(--focus-ring-offset) var(--background),
30
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
30
31
  z-index: 1;
31
32
  }
32
33
 
33
34
  [part="trigger"][data-disabled] {
34
- opacity: 0.5;
35
+ opacity: 0.4;
35
36
  }
36
37
 
37
38
  /* ── Indicator ── */
@@ -39,6 +40,7 @@ export const collapsibleStyles = css `
39
40
  [part="indicator"] {
40
41
  width: var(--space-4);
41
42
  height: var(--space-4);
43
+ transition-property: transform;
42
44
  transition-duration: var(--duration-fast);
43
45
  transition-timing-function: var(--ease-out-3);
44
46
  }
@@ -62,10 +64,9 @@ export const collapsibleStyles = css `
62
64
  [part="content"] {
63
65
  padding: var(--space-1) var(--space-4) var(--space-3);
64
66
  font-family: var(--font-sans);
65
- font-size: var(--font-size-sm);
67
+ ${type("sm")}
66
68
  font-weight: var(--font-weight-regular);
67
- line-height: var(--line-height-normal);
68
- color: color-mix(in oklch, var(--foreground) 80%, transparent);
69
+ color: var(--text-2);
69
70
  }
70
71
 
71
72
  /* ── Reduced motion ── */
@@ -1,40 +1,40 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const comboboxStyles = css `
3
4
  /* ---- Chips (multi-select container) ---- */
4
5
 
5
6
  .Chips {
6
7
  gap: var(--space-1);
7
- border: var(--border-width-thin) solid var(--input);
8
+ border: var(--border-width-thin) solid var(--border);
8
9
  border-radius: var(--radius-md);
9
10
  padding: var(--space-1) var(--space-8) var(--space-1) var(--space-1_5);
10
11
  min-height: var(--component-height-md);
11
- background: var(--input-bg);
12
+ background: var(--sunken);
12
13
  transition-property: border-color, box-shadow;
13
14
  transition-duration: var(--duration-fast);
14
15
  }
15
16
 
16
17
  .Chips:focus-within:has(:focus-visible) {
17
18
  box-shadow:
18
- 0 0 0 var(--space-0_5) var(--background),
19
- 0 0 0 var(--space-1) var(--ring);
19
+ 0 0 0 var(--focus-ring-offset) var(--background),
20
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
20
21
  }
21
22
 
22
23
  .Chips[data-disabled] {
23
- opacity: 0.5;
24
+ opacity: 0.4;
24
25
  }
25
26
 
26
27
  /* ---- Input ---- */
27
28
 
28
29
  .Input {
29
30
  height: var(--component-height-md);
30
- color: var(--foreground);
31
+ color: var(--text-1);
31
32
  font-family: var(--font-sans);
32
- font-size: var(--font-size-sm);
33
- line-height: var(--line-height-normal);
33
+ ${type("sm")}
34
34
  }
35
35
 
36
36
  .Input::placeholder {
37
- color: var(--muted-foreground);
37
+ color: var(--text-3);
38
38
  }
39
39
 
40
40
  /* Single-select input wrapper */
@@ -42,27 +42,27 @@ export const comboboxStyles = css `
42
42
  width: 100%;
43
43
  min-height: var(--component-height-md);
44
44
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-2);
45
- border: var(--border-width-thin) solid var(--input);
45
+ border: var(--border-width-thin) solid var(--border);
46
46
  border-radius: var(--radius-md);
47
47
  transition-property: border-color, box-shadow;
48
48
  transition-duration: var(--duration-fast);
49
- background: var(--input-bg);
49
+ background: var(--sunken);
50
50
  }
51
51
 
52
52
  .InputWrapper .Input:focus-visible {
53
53
  box-shadow:
54
- 0 0 0 var(--space-0_5) var(--background),
55
- 0 0 0 var(--space-1) var(--ring);
54
+ 0 0 0 var(--focus-ring-offset) var(--background),
55
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
56
56
  }
57
57
 
58
58
  .InputWrapper .Input[data-disabled] {
59
- opacity: 0.5;
59
+ opacity: 0.4;
60
60
  }
61
61
 
62
62
  .Arrow {
63
63
  --icon-size: var(--space-4);
64
64
  right: var(--space-3);
65
- color: var(--foreground);
65
+ color: var(--text-1);
66
66
  }
67
67
 
68
68
  /* Multi-select input (inside chips) */
@@ -75,10 +75,10 @@ export const comboboxStyles = css `
75
75
 
76
76
  .Chip {
77
77
  gap: var(--space-1);
78
- background: var(--secondary);
79
- color: var(--secondary-foreground);
78
+ background: oklch(from var(--foreground) l c h / 0.05);
79
+ color: var(--text-1);
80
80
  border-radius: var(--radius-sm);
81
- font-size: var(--font-size-xs);
81
+ ${type("xs")}
82
82
  padding: var(--space-0_5) var(--space-0_5) var(--space-0_5) var(--space-2);
83
83
  }
84
84
 
@@ -92,8 +92,54 @@ export const comboboxStyles = css `
92
92
  .ChipRemove:hover {
93
93
  background: color-mix(
94
94
  in oklch,
95
- var(--secondary-foreground) 15%,
95
+ var(--text-1) 15%,
96
96
  transparent
97
97
  );
98
98
  }
99
+
100
+ /* ---- Popup (rendered in portal shadow root) ---- */
101
+
102
+ .Popup {
103
+ background: var(--surface-3);
104
+ border: var(--border-width-thin) solid var(--border);
105
+ border-radius: var(--radius-md);
106
+ box-shadow: var(--shadow-md);
107
+ transition-duration: var(--duration-fast);
108
+ transition-timing-function: var(--ease-out-3);
109
+ }
110
+
111
+ .Popup[data-starting-style],
112
+ .Popup[data-ending-style] {
113
+ transform: translateY(calc(var(--space-1) * -1));
114
+ }
115
+
116
+ .List {
117
+ padding: var(--space-1);
118
+ }
119
+
120
+ .Item {
121
+ gap: var(--space-2);
122
+ padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
123
+ border-radius: var(--radius-sm);
124
+ ${type("sm")}
125
+ font-family: var(--font-sans);
126
+ color: var(--text-1);
127
+ }
128
+
129
+ .Item:hover,
130
+ .Item[data-highlighted] {
131
+ background: oklch(from var(--foreground) l c h / 0.05);
132
+ color: var(--text-1);
133
+ }
134
+
135
+ .ItemIndicator {
136
+ --icon-size: var(--space-3_5);
137
+ }
138
+
139
+ .Empty {
140
+ padding: var(--space-3);
141
+ ${type("sm")}
142
+ color: var(--text-2);
143
+ text-align: center;
144
+ }
99
145
  `;
@@ -1,8 +1,9 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const commandEmptyStyles = css `
3
4
  .Empty {
4
5
  padding: var(--space-6);
5
- font-size: var(--font-size-sm);
6
- color: var(--muted-foreground);
6
+ ${type("sm")}
7
+ color: var(--text-2);
7
8
  }
8
9
  `;
@@ -1,4 +1,5 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const commandGroupStyles = css `
3
4
  .Group {
4
5
  padding: var(--space-1_5);
@@ -6,8 +7,8 @@ export const commandGroupStyles = css `
6
7
 
7
8
  .Heading {
8
9
  padding: var(--space-1_5) var(--space-2);
9
- font-size: var(--font-size-xs);
10
+ ${type("xs")}
10
11
  font-weight: var(--font-weight-medium);
11
- color: var(--muted-foreground);
12
+ color: var(--text-2);
12
13
  }
13
14
  `;
@@ -1,4 +1,5 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const commandInputStyles = css `
3
4
  .InputWrapper {
4
5
  gap: var(--space-2);
@@ -7,7 +8,7 @@ export const commandInputStyles = css `
7
8
  }
8
9
 
9
10
  .SearchIcon {
10
- color: var(--muted-foreground);
11
+ color: var(--text-2);
11
12
  width: var(--space-4);
12
13
  height: var(--space-4);
13
14
  }
@@ -15,10 +16,10 @@ export const commandInputStyles = css `
15
16
  .Input {
16
17
  height: var(--component-height-lg);
17
18
  border-radius: var(--radius-md);
18
- font-size: var(--font-size-sm);
19
+ ${type("sm")}
19
20
  }
20
21
 
21
22
  .Input::placeholder {
22
- color: var(--muted-foreground);
23
+ color: var(--text-3);
23
24
  }
24
25
  `;
@@ -1,24 +1,25 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const commandItemStyles = css `
3
4
  .Item {
4
5
  gap: var(--space-2);
5
6
  border-radius: var(--radius-sm);
6
7
  padding: var(--space-1_5) var(--space-2);
7
- font-size: var(--font-size-sm);
8
+ ${type("sm")}
8
9
  font-weight: var(--font-weight-medium);
9
10
  }
10
11
 
11
12
  .Item[data-selected] {
12
- background: var(--secondary);
13
- color: var(--foreground);
13
+ background: oklch(from var(--foreground) l c h / 0.05);
14
+ color: var(--text-1);
14
15
  }
15
16
 
16
17
  .Item[aria-disabled="true"] {
17
- opacity: 0.5;
18
+ opacity: 0.4;
18
19
  }
19
20
 
20
21
  ::slotted(dui-icon) {
21
22
  --icon-size: var(--space-4);
22
- color: var(--muted-foreground);
23
+ color: var(--text-2);
23
24
  }
24
25
  `;
@@ -1,7 +1,7 @@
1
1
  import { css } from "lit";
2
2
  export const commandListStyles = css `
3
3
  dui-scroll-area {
4
- max-height: 300px;
4
+ max-height: calc(var(--space-5) * 15);
5
5
  height: auto;
6
6
  }
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { css } from "lit";
2
2
  export const commandSeparatorStyles = css `
3
3
  .Separator {
4
- height: 1px;
4
+ height: var(--border-width-thin);
5
5
  margin-inline: calc(-1 * var(--space-1));
6
6
  background: var(--border);
7
7
  }
@@ -1,7 +1,8 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const commandShortcutStyles = css `
3
4
  .Shortcut {
4
- font-size: var(--font-size-xs);
5
- color: var(--muted-foreground);
5
+ ${type("xs")}
6
+ color: var(--text-2);
6
7
  }
7
8
  `;
@@ -2,7 +2,7 @@ import { css } from "lit";
2
2
  export const commandStyles = css `
3
3
  :host {
4
4
  border-radius: var(--radius-md);
5
- background: var(--popover);
6
- color: var(--popover-foreground);
5
+ background: var(--surface-3);
6
+ color: var(--text-1);
7
7
  }
8
8
  `;
@@ -1,4 +1,5 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const dataTableStyles = css `
3
4
  .DataTable {
4
5
  gap: var(--space-2);
@@ -7,28 +8,27 @@ export const dataTableStyles = css `
7
8
  .TableWindow {
8
9
  border: var(--border-width-thin) solid var(--border);
9
10
  border-radius: var(--radius-md);
10
- scrollbar-color: var(--muted-foreground) transparent;
11
+ scrollbar-color: var(--text-2) transparent;
11
12
  scrollbar-width: thin;
12
13
  }
13
14
 
14
15
  table {
15
16
  font-family: var(--font-sans);
16
- font-size: var(--font-size-sm);
17
- line-height: var(--line-height-normal);
17
+ ${type("sm")}
18
18
  }
19
19
 
20
20
  th {
21
21
  height: var(--component-height-lg);
22
22
  padding: 0 var(--space-3);
23
23
  font-weight: var(--font-weight-medium);
24
- font-size: var(--font-size-xs);
25
- color: var(--muted-foreground);
26
- background: var(--muted);
24
+ ${type("xs")}
25
+ color: var(--text-2);
26
+ background: var(--surface-1);
27
27
  border-bottom: var(--border-width-thin) solid var(--border);
28
28
  }
29
29
 
30
30
  th[aria-sort]:hover {
31
- color: var(--foreground);
31
+ color: var(--text-1);
32
32
  }
33
33
 
34
34
  .HeaderContent {
@@ -44,11 +44,12 @@ export const dataTableStyles = css `
44
44
  th[aria-sort="ascending"] .SortIcon,
45
45
  th[aria-sort="descending"] .SortIcon {
46
46
  opacity: 1;
47
- color: var(--foreground);
47
+ color: var(--text-1);
48
48
  }
49
49
 
50
50
  tbody tr {
51
51
  border-bottom: var(--border-width-thin) solid var(--border);
52
+ transition-property: background, filter, transform;
52
53
  transition-duration: var(--duration-fast);
53
54
  }
54
55
 
@@ -57,7 +58,7 @@ export const dataTableStyles = css `
57
58
  }
58
59
 
59
60
  tbody tr:hover {
60
- background: var(--muted);
61
+ background: var(--surface-1);
61
62
  }
62
63
 
63
64
  td {
@@ -66,15 +67,15 @@ export const dataTableStyles = css `
66
67
  }
67
68
 
68
69
  .EmptyRow td {
69
- height: 96px;
70
+ height: var(--space-24);
70
71
  text-align: center;
71
- color: var(--muted-foreground);
72
+ color: var(--text-2);
72
73
  }
73
74
 
74
75
  .Pagination {
75
76
  padding: 0 var(--space-1);
76
- font-size: var(--font-size-sm);
77
- color: var(--muted-foreground);
77
+ ${type("sm")}
78
+ color: var(--text-2);
78
79
  }
79
80
 
80
81
  .PageInfo {
@@ -90,24 +91,24 @@ export const dataTableStyles = css `
90
91
  height: var(--component-height-sm);
91
92
  border: var(--border-width-thin) solid var(--border);
92
93
  border-radius: var(--radius-md);
93
- color: var(--foreground);
94
- font-size: var(--font-size-sm);
94
+ color: var(--text-1);
95
+ ${type("sm")}
95
96
  transition-property: background;
96
97
  transition-duration: var(--duration-fast);
97
98
  }
98
99
 
99
100
  .PageButton:hover:not(:disabled) {
100
- background: var(--muted);
101
+ background: var(--surface-1);
101
102
  }
102
103
 
103
104
  .PageButton:disabled {
104
- opacity: 0.3;
105
+ opacity: 0.4;
105
106
  }
106
107
 
107
108
  .PageButton:focus-visible {
108
109
  outline: none;
109
110
  box-shadow:
110
- 0 0 0 var(--space-0_5) var(--background),
111
- 0 0 0 var(--space-1) var(--ring);
111
+ 0 0 0 var(--focus-ring-offset) var(--background),
112
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
112
113
  }
113
114
  `;
@@ -1,19 +1,13 @@
1
1
  import { css } from "lit";
2
+ import { type } from "../typography.js";
2
3
  export const dialogPopupStyles = css `
3
4
  /* ── Backdrop ── */
4
5
 
5
6
  [part="backdrop"] {
6
- background: black;
7
- opacity: 0.2;
7
+ background: var(--scrim);
8
8
  transition: opacity var(--duration-fast) var(--ease-out-3);
9
9
  }
10
10
 
11
- @container style(--theme: dark) {
12
- [part="backdrop"] {
13
- opacity: 0.7;
14
- }
15
- }
16
-
17
11
  [part="backdrop"][data-starting-style],
18
12
  [part="backdrop"][data-ending-style] {
19
13
  opacity: 0;
@@ -26,9 +20,10 @@ export const dialogPopupStyles = css `
26
20
  padding: var(--space-6);
27
21
  border-radius: var(--radius-lg);
28
22
  border: var(--border-width-thin) solid var(--border);
29
- background: var(--card);
30
- color: var(--card-foreground);
23
+ background: var(--surface-2);
24
+ color: var(--text-1);
31
25
  font-family: var(--font-sans);
26
+ box-shadow: var(--shadow-lg);
32
27
  transition-duration: var(--duration-fast);
33
28
  }
34
29
 
@@ -44,11 +39,9 @@ export const dialogPopupStyles = css `
44
39
  margin-top: calc(-1 * var(--space-1));
45
40
  margin-bottom: var(--space-1);
46
41
  font-family: var(--font-sans);
47
- font-size: var(--font-size-lg);
48
- letter-spacing: var(--letter-spacing-tighter);
49
- line-height: var(--line-height-tight);
42
+ ${type("lg", { letterSpacing: "var(--letter-spacing-tighter)", lineHeight: "var(--line-height-tight)" })}
50
43
  font-weight: var(--font-weight-medium);
51
- color: var(--foreground);
44
+ color: var(--text-1);
52
45
  }
53
46
 
54
47
  /* ── Description ── */
@@ -56,9 +49,8 @@ export const dialogPopupStyles = css `
56
49
  [part="description"] {
57
50
  margin: 0 0 var(--space-6);
58
51
  font-family: var(--font-sans);
59
- font-size: var(--font-size-md);
60
- line-height: var(--line-height-normal);
61
- color: var(--muted-foreground);
52
+ ${type("md")}
53
+ color: var(--text-2);
62
54
  }
63
55
 
64
56
  /* ── Reduced motion ── */
@@ -1,32 +1,33 @@
1
1
  import { css } from "lit";
2
2
  export const dropzoneStyles = css `
3
3
  :host([disabled]) {
4
- opacity: 0.5;
4
+ opacity: 0.4;
5
5
  }
6
6
 
7
7
  [part="root"] {
8
- border: 2px dashed var(--border);
8
+ border: var(--border-width-medium) dashed var(--border);
9
9
  border-radius: var(--radius-md);
10
10
  background: var(--background);
11
- color: var(--foreground);
11
+ color: var(--text-1);
12
12
  padding: var(--space-4);
13
+ transition-property: border-color, background, color, box-shadow, filter, transform;
13
14
  transition-duration: var(--duration-fast);
14
15
  }
15
16
 
16
17
  [part="root"]:hover {
17
- border-color: var(--ring);
18
- background: var(--muted);
18
+ border-color: var(--accent);
19
+ background: var(--surface-1);
19
20
  }
20
21
 
21
22
  [part="root"]:focus-visible {
22
23
  outline: none;
23
24
  box-shadow:
24
- 0 0 0 var(--space-0_5) var(--background),
25
- 0 0 0 var(--space-1) var(--ring);
25
+ 0 0 0 var(--focus-ring-offset) var(--background),
26
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
26
27
  }
27
28
 
28
29
  [part="root"][data-dragover] {
29
- border-color: var(--ring);
30
- background: var(--muted);
30
+ border-color: var(--accent);
31
+ background: var(--accent-subtle);
31
32
  }
32
33
  `;