loseta 0.3.0 → 0.5.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 (153) hide show
  1. package/README.md +15 -6
  2. package/dist/add-policy.d.ts +15 -0
  3. package/dist/add-policy.js +53 -0
  4. package/dist/add-policy.js.map +1 -0
  5. package/dist/commands/add.d.ts +4 -0
  6. package/dist/commands/add.js +26 -26
  7. package/dist/commands/add.js.map +1 -1
  8. package/dist/commands/init.js +17 -7
  9. package/dist/commands/init.js.map +1 -1
  10. package/dist/commands/list.d.ts +6 -1
  11. package/dist/commands/list.js +23 -5
  12. package/dist/commands/list.js.map +1 -1
  13. package/dist/commands/style.js +14 -37
  14. package/dist/commands/style.js.map +1 -1
  15. package/dist/registry.d.ts +2 -0
  16. package/dist/registry.js +6 -0
  17. package/dist/registry.js.map +1 -1
  18. package/dist/style-selection.d.ts +32 -0
  19. package/dist/style-selection.js +52 -0
  20. package/dist/style-selection.js.map +1 -0
  21. package/dist/style-switch.d.ts +37 -0
  22. package/dist/style-switch.js +81 -0
  23. package/dist/style-switch.js.map +1 -0
  24. package/package.json +2 -1
  25. package/registry/components/accordion.css +65 -0
  26. package/registry/components/aspect-ratio.css +25 -0
  27. package/registry/components/avatar.css +54 -0
  28. package/registry/components/breadcrumb.css +57 -0
  29. package/registry/components/pagination.css +49 -0
  30. package/registry/components/progress.css +13 -0
  31. package/registry/components/separator.css +12 -0
  32. package/registry/components/spinner.css +8 -0
  33. package/registry/components/toggle-group.css +17 -0
  34. package/registry/components/toggle.css +31 -0
  35. package/registry/examples/accordion.html +56 -0
  36. package/registry/examples/aspect-ratio.html +9 -0
  37. package/registry/examples/avatar.html +21 -0
  38. package/registry/examples/breadcrumb.html +23 -0
  39. package/registry/examples/pagination.html +39 -0
  40. package/registry/examples/progress.html +5 -0
  41. package/registry/examples/separator.html +15 -0
  42. package/registry/examples/spinner.html +12 -0
  43. package/registry/examples/toggle-group.html +13 -0
  44. package/registry/examples/toggle.html +13 -0
  45. package/registry/registry.json +308 -1
  46. package/registry/reset.css +332 -80
  47. package/registry/styles/luma/badge.css +8 -10
  48. package/registry/styles/luma/button.css +37 -43
  49. package/registry/styles/luma/checkbox.css +12 -19
  50. package/registry/styles/luma/code-block.css +25 -30
  51. package/registry/styles/luma/dropdown-menu.css +4 -5
  52. package/registry/styles/luma/input.css +16 -17
  53. package/registry/styles/luma/label.css +8 -9
  54. package/registry/styles/luma/native-select.css +19 -15
  55. package/registry/styles/luma/radio.css +12 -19
  56. package/registry/styles/luma/switch.css +15 -21
  57. package/registry/styles/luma/tabs.css +9 -22
  58. package/registry/styles/luma/textarea.css +16 -17
  59. package/registry/styles/lyra/badge.css +8 -10
  60. package/registry/styles/lyra/button.css +37 -43
  61. package/registry/styles/lyra/checkbox.css +12 -19
  62. package/registry/styles/lyra/code-block.css +25 -30
  63. package/registry/styles/lyra/dropdown-menu.css +4 -5
  64. package/registry/styles/lyra/input.css +16 -16
  65. package/registry/styles/lyra/label.css +8 -9
  66. package/registry/styles/lyra/native-select.css +19 -15
  67. package/registry/styles/lyra/radio.css +12 -19
  68. package/registry/styles/lyra/switch.css +15 -21
  69. package/registry/styles/lyra/tabs.css +9 -22
  70. package/registry/styles/lyra/textarea.css +16 -16
  71. package/registry/styles/maia/badge.css +8 -10
  72. package/registry/styles/maia/button.css +37 -43
  73. package/registry/styles/maia/checkbox.css +12 -19
  74. package/registry/styles/maia/code-block.css +25 -30
  75. package/registry/styles/maia/dropdown-menu.css +4 -5
  76. package/registry/styles/maia/input.css +16 -17
  77. package/registry/styles/maia/label.css +8 -9
  78. package/registry/styles/maia/native-select.css +19 -15
  79. package/registry/styles/maia/radio.css +12 -19
  80. package/registry/styles/maia/switch.css +15 -21
  81. package/registry/styles/maia/tabs.css +9 -22
  82. package/registry/styles/maia/textarea.css +16 -17
  83. package/registry/styles/mira/badge.css +8 -10
  84. package/registry/styles/mira/button.css +37 -43
  85. package/registry/styles/mira/checkbox.css +12 -19
  86. package/registry/styles/mira/code-block.css +25 -30
  87. package/registry/styles/mira/dropdown-menu.css +4 -5
  88. package/registry/styles/mira/input.css +16 -16
  89. package/registry/styles/mira/label.css +8 -9
  90. package/registry/styles/mira/native-select.css +19 -15
  91. package/registry/styles/mira/radio.css +12 -19
  92. package/registry/styles/mira/switch.css +15 -21
  93. package/registry/styles/mira/tabs.css +9 -22
  94. package/registry/styles/mira/textarea.css +16 -16
  95. package/registry/styles/nova/accordion.css +59 -0
  96. package/registry/styles/nova/aspect-ratio.css +6 -0
  97. package/registry/styles/nova/avatar.css +89 -0
  98. package/registry/styles/nova/badge.css +8 -10
  99. package/registry/styles/nova/breadcrumb.css +61 -0
  100. package/registry/styles/nova/button.css +37 -43
  101. package/registry/styles/nova/checkbox.css +12 -19
  102. package/registry/styles/nova/code-block.css +25 -30
  103. package/registry/styles/nova/dropdown-menu.css +4 -5
  104. package/registry/styles/nova/input.css +16 -17
  105. package/registry/styles/nova/label.css +8 -9
  106. package/registry/styles/nova/native-select.css +19 -15
  107. package/registry/styles/nova/pagination.css +46 -0
  108. package/registry/styles/nova/progress.css +67 -0
  109. package/registry/styles/nova/radio.css +12 -19
  110. package/registry/styles/nova/separator.css +14 -0
  111. package/registry/styles/nova/spinner.css +35 -0
  112. package/registry/styles/nova/switch.css +15 -21
  113. package/registry/styles/nova/tabs.css +9 -22
  114. package/registry/styles/nova/textarea.css +16 -17
  115. package/registry/styles/nova/toggle-group.css +48 -0
  116. package/registry/styles/nova/toggle.css +110 -0
  117. package/registry/styles/rhea/badge.css +8 -10
  118. package/registry/styles/rhea/button.css +37 -43
  119. package/registry/styles/rhea/checkbox.css +12 -19
  120. package/registry/styles/rhea/code-block.css +25 -30
  121. package/registry/styles/rhea/dropdown-menu.css +4 -5
  122. package/registry/styles/rhea/input.css +16 -17
  123. package/registry/styles/rhea/label.css +8 -9
  124. package/registry/styles/rhea/native-select.css +19 -15
  125. package/registry/styles/rhea/radio.css +12 -19
  126. package/registry/styles/rhea/switch.css +15 -21
  127. package/registry/styles/rhea/tabs.css +9 -22
  128. package/registry/styles/rhea/textarea.css +16 -17
  129. package/registry/styles/sera/badge.css +8 -10
  130. package/registry/styles/sera/button.css +37 -43
  131. package/registry/styles/sera/checkbox.css +12 -19
  132. package/registry/styles/sera/code-block.css +25 -30
  133. package/registry/styles/sera/dropdown-menu.css +4 -5
  134. package/registry/styles/sera/input.css +16 -17
  135. package/registry/styles/sera/label.css +8 -9
  136. package/registry/styles/sera/native-select.css +19 -15
  137. package/registry/styles/sera/radio.css +12 -19
  138. package/registry/styles/sera/switch.css +15 -21
  139. package/registry/styles/sera/tabs.css +9 -22
  140. package/registry/styles/sera/textarea.css +16 -17
  141. package/registry/styles/vega/badge.css +8 -10
  142. package/registry/styles/vega/button.css +37 -43
  143. package/registry/styles/vega/checkbox.css +12 -19
  144. package/registry/styles/vega/code-block.css +25 -30
  145. package/registry/styles/vega/dropdown-menu.css +4 -5
  146. package/registry/styles/vega/input.css +16 -17
  147. package/registry/styles/vega/label.css +8 -9
  148. package/registry/styles/vega/native-select.css +19 -15
  149. package/registry/styles/vega/radio.css +12 -19
  150. package/registry/styles/vega/switch.css +15 -21
  151. package/registry/styles/vega/tabs.css +9 -22
  152. package/registry/styles/vega/textarea.css +16 -17
  153. package/registry/tokens.css +116 -130
@@ -6,7 +6,10 @@
6
6
  border-style: solid;
7
7
  border-width: 1px;
8
8
  border-color: var(--input);
9
- background-color: transparent;
9
+ background-color: light-dark(
10
+ transparent,
11
+ color-mix(in oklab, var(--input) 30%, transparent)
12
+ );
10
13
  padding-inline: 0.625rem;
11
14
  padding-block: 0.25rem;
12
15
  font-size: var(--text-base);
@@ -29,30 +32,26 @@
29
32
  }
30
33
 
31
34
  &:disabled {
32
- background-color: color-mix(in oklab, var(--input) 50%, transparent);
35
+ background-color: light-dark(
36
+ color-mix(in oklab, var(--input) 50%, transparent),
37
+ color-mix(in oklab, var(--input) 80%, transparent)
38
+ );
33
39
  }
34
40
 
35
41
  &[aria-invalid='true'] {
36
- border-color: var(--destructive);
37
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
42
+ border-color: light-dark(
43
+ var(--destructive),
44
+ color-mix(in oklab, var(--destructive) 50%, transparent)
45
+ );
46
+ box-shadow: 0 0 0 3px light-dark(
47
+ color-mix(in oklab, var(--destructive) 20%, transparent),
48
+ color-mix(in oklab, var(--destructive) 40%, transparent)
49
+ );
38
50
  }
39
51
 
40
52
  @media (width >= 48rem) {
41
53
  font-size: var(--text-sm);
42
54
  line-height: var(--text-sm--line-height);
43
55
  }
44
-
45
- &:is(html.dark *) {
46
- background-color: color-mix(in oklab, var(--input) 30%, transparent);
47
-
48
- &:disabled {
49
- background-color: color-mix(in oklab, var(--input) 80%, transparent);
50
- }
51
-
52
- &[aria-invalid='true'] {
53
- border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
54
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
55
- }
56
- }
57
56
  }
58
57
  }
@@ -28,15 +28,14 @@
28
28
  border-color: var(--border);
29
29
 
30
30
  &:has(*:is(:checked)) {
31
- border-color: color-mix(in oklab, var(--primary) 30%, transparent);
32
- background-color: color-mix(in oklab, var(--primary) 5%, transparent);
33
- }
34
-
35
- &:is(html.dark *) {
36
- &:has(*:is(:checked)) {
37
- border-color: color-mix(in oklab, var(--primary) 20%, transparent);
38
- background-color: color-mix(in oklab, var(--primary) 10%, transparent);
39
- }
31
+ border-color: light-dark(
32
+ color-mix(in oklab, var(--primary) 30%, transparent),
33
+ color-mix(in oklab, var(--primary) 20%, transparent)
34
+ );
35
+ background-color: light-dark(
36
+ color-mix(in oklab, var(--primary) 5%, transparent),
37
+ color-mix(in oklab, var(--primary) 10%, transparent)
38
+ );
40
39
  }
41
40
 
42
41
  &:has(:focus-visible) {
@@ -7,7 +7,10 @@
7
7
  border-style: solid;
8
8
  border-width: 1px;
9
9
  border-color: var(--input);
10
- background-color: transparent;
10
+ background-color: light-dark(
11
+ transparent,
12
+ color-mix(in oklab, var(--input) 30%, transparent)
13
+ );
11
14
  padding-block: 0.25rem;
12
15
  padding-inline-start: 0.625rem;
13
16
  padding-inline-end: 2rem;
@@ -38,26 +41,27 @@
38
41
  }
39
42
 
40
43
  &[aria-invalid='true'] {
41
- border-color: var(--destructive);
42
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
44
+ border-color: light-dark(
45
+ var(--destructive),
46
+ color-mix(in oklab, var(--destructive) 50%, transparent)
47
+ );
48
+ box-shadow: 0 0 0 3px light-dark(
49
+ color-mix(in oklab, var(--destructive) 20%, transparent),
50
+ color-mix(in oklab, var(--destructive) 40%, transparent)
51
+ );
52
+ }
53
+
54
+ &:hover {
55
+ background-color: light-dark(
56
+ transparent,
57
+ color-mix(in oklab, var(--input) 50%, transparent)
58
+ );
43
59
  }
44
60
 
45
61
  &[data-size='sm'] {
46
62
  height: 2rem;
47
63
  }
48
64
 
49
- &:is(html.dark *) {
50
- background-color: color-mix(in oklab, var(--input) 30%, transparent);
51
-
52
- &:hover {
53
- background-color: color-mix(in oklab, var(--input) 50%, transparent);
54
- }
55
-
56
- &[aria-invalid='true'] {
57
- border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
58
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
59
- }
60
- }
61
65
  background-image: var(--chevron-down-icon);
62
66
  background-size: 1rem;
63
67
  background-position: center right 0.625rem;
@@ -6,6 +6,10 @@
6
6
  height: 1rem;
7
7
  border-radius: var(--radius-full);
8
8
  border-color: var(--input);
9
+ background-color: light-dark(
10
+ transparent,
11
+ color-mix(in oklab, var(--input) 30%, transparent)
12
+ );
9
13
 
10
14
  &:checked {
11
15
  border-color: var(--primary);
@@ -19,30 +23,19 @@
19
23
  }
20
24
 
21
25
  &[aria-invalid='true'] {
22
- border-color: var(--destructive);
23
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
26
+ border-color: light-dark(
27
+ var(--destructive),
28
+ color-mix(in oklab, var(--destructive) 50%, transparent)
29
+ );
30
+ box-shadow: 0 0 0 3px light-dark(
31
+ color-mix(in oklab, var(--destructive) 20%, transparent),
32
+ color-mix(in oklab, var(--destructive) 40%, transparent)
33
+ );
24
34
 
25
35
  &:checked {
26
36
  border-color: var(--primary);
27
37
  }
28
38
  }
29
-
30
- &:is(html.dark *) {
31
- background-color: color-mix(in oklab, var(--input) 30%, transparent);
32
-
33
- &:checked {
34
- background-color: var(--primary);
35
- }
36
-
37
- &[aria-invalid='true'] {
38
- border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
39
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
40
-
41
- &:checked {
42
- border-color: var(--primary);
43
- }
44
- }
45
- }
46
39
  }
47
40
 
48
41
  .radio:checked::before {
@@ -8,7 +8,10 @@
8
8
  box-shadow: var(--shadow-xs);
9
9
 
10
10
  &:not(:checked) {
11
- background-color: var(--input);
11
+ background-color: light-dark(
12
+ var(--input),
13
+ color-mix(in oklab, var(--input) 80%, transparent)
14
+ );
12
15
  }
13
16
 
14
17
  &:checked {
@@ -21,19 +24,14 @@
21
24
  }
22
25
 
23
26
  &[aria-invalid='true'] {
24
- border-color: var(--destructive);
25
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
26
- }
27
-
28
- &:is(html.dark *) {
29
- &:not(:checked) {
30
- background-color: color-mix(in oklab, var(--input) 80%, transparent);
31
- }
32
-
33
- &[aria-invalid='true'] {
34
- border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
35
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
36
- }
27
+ border-color: light-dark(
28
+ var(--destructive),
29
+ color-mix(in oklab, var(--destructive) 50%, transparent)
30
+ );
31
+ box-shadow: 0 0 0 3px light-dark(
32
+ color-mix(in oklab, var(--destructive) 20%, transparent),
33
+ color-mix(in oklab, var(--destructive) 40%, transparent)
34
+ );
37
35
  }
38
36
 
39
37
  &:not([data-size='sm']) {
@@ -48,15 +46,11 @@
48
46
 
49
47
  &:before {
50
48
  border-radius: var(--radius-full);
51
- background-color: var(--background);
52
- }
53
-
54
- html.dark &:not(:checked):before {
55
- background-color: var(--foreground);
49
+ background-color: light-dark(var(--background), var(--foreground));
56
50
  }
57
51
 
58
- html.dark &:checked:before {
59
- background-color: var(--primary-foreground);
52
+ &:checked:before {
53
+ background-color: light-dark(var(--background), var(--primary-foreground));
60
54
  }
61
55
 
62
56
  &:not([data-size='sm']):before {
@@ -34,7 +34,10 @@
34
34
  font-size: var(--text-sm);
35
35
  line-height: var(--text-sm--line-height);
36
36
  font-weight: 500;
37
- color: color-mix(in oklab, var(--foreground) 60%, transparent);
37
+ color: light-dark(
38
+ color-mix(in oklab, var(--foreground) 60%, transparent),
39
+ var(--muted-foreground)
40
+ );
38
41
 
39
42
  &:hover {
40
43
  color: var(--foreground);
@@ -48,14 +51,6 @@
48
51
  outline-color: var(--ring);
49
52
  }
50
53
 
51
- &:is(html.dark *) {
52
- color: var(--muted-foreground);
53
-
54
- &:hover {
55
- color: var(--foreground);
56
- }
57
- }
58
-
59
54
  & svg {
60
55
  width: var(--icon-size, 1rem);
61
56
  height: var(--icon-size, 1rem);
@@ -101,15 +96,13 @@
101
96
  }
102
97
 
103
98
  &:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
104
- background-color: var(--background);
99
+ border-color: light-dark(transparent, var(--input));
100
+ background-color: light-dark(
101
+ var(--background),
102
+ color-mix(in oklab, var(--input) 30%, transparent)
103
+ );
105
104
  color: var(--foreground);
106
105
  box-shadow: var(--shadow-sm);
107
-
108
- &:is(html.dark *) {
109
- border-color: var(--input);
110
- background-color: color-mix(in oklab, var(--input) 30%, transparent);
111
- color: var(--foreground);
112
- }
113
106
  }
114
107
 
115
108
  &[data-variant='line'] > [role='tab'][aria-selected='true'] {
@@ -121,12 +114,6 @@
121
114
  content: '';
122
115
  opacity: 100%;
123
116
  }
124
-
125
- &:is(html.dark *) {
126
- border-color: transparent;
127
- background-color: transparent;
128
- color: var(--foreground);
129
- }
130
117
  }
131
118
 
132
119
  > [role='tab']:has(> svg:first-child) {
@@ -5,7 +5,10 @@
5
5
  border-style: solid;
6
6
  border-width: 1px;
7
7
  border-color: var(--input);
8
- background-color: transparent;
8
+ background-color: light-dark(
9
+ transparent,
10
+ color-mix(in oklab, var(--input) 30%, transparent)
11
+ );
9
12
  padding-inline: 0.625rem;
10
13
  padding-block: 0.5rem;
11
14
  font-size: var(--text-base);
@@ -21,30 +24,26 @@
21
24
  }
22
25
 
23
26
  &:disabled {
24
- background-color: color-mix(in oklab, var(--input) 50%, transparent);
27
+ background-color: light-dark(
28
+ color-mix(in oklab, var(--input) 50%, transparent),
29
+ color-mix(in oklab, var(--input) 80%, transparent)
30
+ );
25
31
  }
26
32
 
27
33
  &[aria-invalid='true'] {
28
- border-color: var(--destructive);
29
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
34
+ border-color: light-dark(
35
+ var(--destructive),
36
+ color-mix(in oklab, var(--destructive) 50%, transparent)
37
+ );
38
+ box-shadow: 0 0 0 3px light-dark(
39
+ color-mix(in oklab, var(--destructive) 20%, transparent),
40
+ color-mix(in oklab, var(--destructive) 40%, transparent)
41
+ );
30
42
  }
31
43
 
32
44
  @media (width >= 48rem) {
33
45
  font-size: var(--text-sm);
34
46
  line-height: var(--text-sm--line-height);
35
47
  }
36
-
37
- &:is(html.dark *) {
38
- background-color: color-mix(in oklab, var(--input) 30%, transparent);
39
-
40
- &:disabled {
41
- background-color: color-mix(in oklab, var(--input) 80%, transparent);
42
- }
43
-
44
- &[aria-invalid='true'] {
45
- border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
46
- box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
47
- }
48
- }
49
48
  }
50
49
  }
@@ -1,139 +1,125 @@
1
1
  @layer loseta.tokens {
2
- :root {
3
- color-scheme: light;
2
+ :root {
3
+ color-scheme: light dark;
4
4
 
5
- /* Radius */
6
- --radius: 0.625rem;
7
- --radius-sm: calc(var(--radius) * 0.6);
8
- --radius-md: calc(var(--radius) * 0.8);
9
- --radius-lg: var(--radius);
10
- --radius-xl: calc(var(--radius) * 1.4);
11
- --radius-2xl: calc(var(--radius) * 1.8);
12
- --radius-3xl: calc(var(--radius) * 2.2);
13
- --radius-4xl: calc(var(--radius) * 2.6);
14
- --radius-full: calc(infinity * 1px);
5
+ /* Radius */
6
+ --radius: 0.625rem;
7
+ --radius-sm: calc(var(--radius) * 0.6);
8
+ --radius-md: calc(var(--radius) * 0.8);
9
+ --radius-lg: var(--radius);
10
+ --radius-xl: calc(var(--radius) * 1.4);
11
+ --radius-2xl: calc(var(--radius) * 1.8);
12
+ --radius-3xl: calc(var(--radius) * 2.2);
13
+ --radius-4xl: calc(var(--radius) * 2.6);
14
+ --radius-full: calc(infinity * 1px);
15
15
 
16
- /* Shadow */
17
- --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
18
- --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
19
- --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
20
- --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
21
- --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
22
- --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
23
- --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
16
+ /* Shadow */
17
+ --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
18
+ --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
19
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
20
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
21
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
22
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
23
+ --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
24
24
 
25
- /* Text size */
26
- --text-xs: 0.75rem;
27
- --text-xs--line-height: calc(1 / 0.75);
28
- --text-sm: 0.875rem;
29
- --text-sm--line-height: calc(1.25 / 0.875);
30
- --text-base: 1rem;
31
- --text-base--line-height: calc(1.5 / 1);
32
- --text-lg: 1.125rem;
33
- --text-lg--line-height: calc(1.75 / 1.125);
34
- --text-xl: 1.25rem;
35
- --text-xl--line-height: calc(1.75 / 1.25);
36
- --text-2xl: 1.5rem;
37
- --text-2xl--line-height: calc(2 / 1.5);
38
- --text-3xl: 1.875rem;
39
- --text-3xl--line-height: calc(2.25 / 1.875);
40
- --text-4xl: 2.25rem;
41
- --text-4xl--line-height: calc(2.5 / 2.25);
42
- --text-5xl: 3rem;
43
- --text-5xl--line-height: 1;
44
- --text-6xl: 3.75rem;
45
- --text-6xl--line-height: 1;
46
- --text-7xl: 4.5rem;
47
- --text-7xl--line-height: 1;
48
- --text-8xl: 6rem;
49
- --text-8xl--line-height: 1;
50
- --text-9xl: 8rem;
51
- --text-9xl--line-height: 1;
25
+ /* Text size */
26
+ --text-xs: 0.75rem;
27
+ --text-xs--line-height: calc(1 / 0.75);
28
+ --text-sm: 0.875rem;
29
+ --text-sm--line-height: calc(1.25 / 0.875);
30
+ --text-base: 1rem;
31
+ --text-base--line-height: calc(1.5 / 1);
32
+ --text-lg: 1.125rem;
33
+ --text-lg--line-height: calc(1.75 / 1.125);
34
+ --text-xl: 1.25rem;
35
+ --text-xl--line-height: calc(1.75 / 1.25);
36
+ --text-2xl: 1.5rem;
37
+ --text-2xl--line-height: calc(2 / 1.5);
38
+ --text-3xl: 1.875rem;
39
+ --text-3xl--line-height: calc(2.25 / 1.875);
40
+ --text-4xl: 2.25rem;
41
+ --text-4xl--line-height: calc(2.5 / 2.25);
42
+ --text-5xl: 3rem;
43
+ --text-5xl--line-height: 1;
44
+ --text-6xl: 3.75rem;
45
+ --text-6xl--line-height: 1;
46
+ --text-7xl: 4.5rem;
47
+ --text-7xl--line-height: 1;
48
+ --text-8xl: 6rem;
49
+ --text-8xl--line-height: 1;
50
+ --text-9xl: 8rem;
51
+ --text-9xl--line-height: 1;
52
52
 
53
- /* Colors */
54
- --background: oklch(1 0 0);
55
- --foreground: oklch(0.145 0 0);
56
- --card: oklch(1 0 0);
57
- --card-foreground: oklch(0.145 0 0);
58
- --popover: oklch(1 0 0);
59
- --popover-foreground: oklch(0.145 0 0);
60
- --primary: oklch(0.205 0 0);
61
- --primary-foreground: oklch(0.985 0 0);
62
- --secondary: oklch(0.97 0 0);
63
- --secondary-foreground: oklch(0.205 0 0);
64
- --muted: oklch(0.97 0 0);
65
- --muted-foreground: oklch(0.556 0 0);
66
- --accent: oklch(0.97 0 0);
67
- --accent-foreground: oklch(0.205 0 0);
68
- --destructive: oklch(0.53 0.23 27.325);
69
- --border: oklch(0.922 0 0);
70
- --input: oklch(0.922 0 0);
71
- --ring: oklch(0.708 0 0);
72
- --chart-1: #93c5fd;
73
- --chart-2: #3b82f6;
74
- --chart-3: #2563eb;
75
- --chart-4: #1d4ed8;
76
- --chart-5: #1e40af;
77
- --sidebar: oklch(0.985 0 0);
78
- --sidebar-foreground: oklch(0.145 0 0);
79
- --sidebar-primary: oklch(0.205 0 0);
80
- --sidebar-primary-foreground: oklch(0.985 0 0);
81
- --sidebar-accent: oklch(0.97 0 0);
82
- --sidebar-accent-foreground: oklch(0.205 0 0);
83
- --sidebar-border: oklch(0.922 0 0);
84
- --sidebar-ring: oklch(0.708 0 0);
85
- --sidebar-width: 16rem;
86
- --sidebar-mobile-width: 18rem;
87
- --scrollbar-track: transparent;
88
- --scrollbar-thumb: var(--border);
89
- --scrollbar-width: 0.625rem;
90
- --scrollbar-sm-width: 0.375rem;
91
- --scrollbar-radius: 9999px;
53
+ /* Colors */
54
+ --background: light-dark(oklch(1 0 0), oklch(0.145 0 0));
55
+ --foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
56
+ --card: light-dark(oklch(1 0 0), oklch(0.205 0 0));
57
+ --card-foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
58
+ --popover: light-dark(oklch(1 0 0), oklch(0.205 0 0));
59
+ --popover-foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
60
+ --primary: light-dark(oklch(0.205 0 0), oklch(0.922 0 0));
61
+ --primary-foreground: light-dark(oklch(0.985 0 0), oklch(0.205 0 0));
62
+ --secondary: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
63
+ --secondary-foreground: light-dark(oklch(0.205 0 0), oklch(0.985 0 0));
64
+ --muted: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
65
+ --muted-foreground: light-dark(oklch(0.556 0 0), oklch(0.78 0 0));
66
+ --accent: light-dark(oklch(0.97 0 0), oklch(0.371 0 0));
67
+ --accent-foreground: light-dark(oklch(0.205 0 0), oklch(0.985 0 0));
68
+ --destructive: light-dark(oklch(0.53 0.23 27.325), oklch(0.704 0.191 22.216));
69
+ --border: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%));
70
+ --input: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 15%));
71
+ --ring: light-dark(oklch(0.708 0 0), oklch(0.556 0 0));
72
+ --chart-1: #93c5fd;
73
+ --chart-2: #3b82f6;
74
+ --chart-3: #2563eb;
75
+ --chart-4: #1d4ed8;
76
+ --chart-5: #1e40af;
77
+ --sidebar: light-dark(oklch(0.985 0 0), oklch(0.205 0 0));
78
+ --sidebar-foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
79
+ --sidebar-primary: light-dark(oklch(0.205 0 0), oklch(0.488 0.243 264.376));
80
+ --sidebar-primary-foreground: oklch(0.985 0 0);
81
+ --sidebar-accent: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
82
+ --sidebar-accent-foreground: light-dark(oklch(0.205 0 0), oklch(0.985 0 0));
83
+ --sidebar-border: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%));
84
+ --sidebar-ring: light-dark(oklch(0.708 0 0), oklch(0.439 0 0));
85
+ --sidebar-width: 16rem;
86
+ --sidebar-mobile-width: 18rem;
87
+ --scrollbar-track: transparent;
88
+ --scrollbar-thumb: var(--border);
89
+ --scrollbar-width: 0.625rem;
90
+ --scrollbar-sm-width: 0.375rem;
91
+ --scrollbar-radius: 9999px;
92
92
 
93
- /* Icons */
94
- --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
95
- --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
96
- --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
97
- }
93
+ /* Icons */
94
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
95
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
96
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
97
+ }
98
98
 
99
- .dark {
100
- /* Colors */
101
- --background: oklch(0.145 0 0);
102
- --foreground: oklch(0.985 0 0);
103
- --card: oklch(0.205 0 0);
104
- --card-foreground: oklch(0.985 0 0);
105
- --popover: oklch(0.205 0 0);
106
- --popover-foreground: oklch(0.985 0 0);
107
- --primary: oklch(0.922 0 0);
108
- --primary-foreground: oklch(0.205 0 0);
109
- --secondary: oklch(0.269 0 0);
110
- --secondary-foreground: oklch(0.985 0 0);
111
- --muted: oklch(0.269 0 0);
112
- --muted-foreground: oklch(0.78 0 0);
113
- --accent: oklch(0.371 0 0);
114
- --accent-foreground: oklch(0.985 0 0);
115
- --destructive: oklch(0.704 0.191 22.216);
116
- --border: oklch(1 0 0 / 10%);
117
- --input: oklch(1 0 0 / 15%);
118
- --ring: oklch(0.556 0 0);
119
- --chart-1: #93c5fd;
120
- --chart-2: #3b82f6;
121
- --chart-3: #2563eb;
122
- --chart-4: #1d4ed8;
123
- --chart-5: #1e40af;
124
- --sidebar: oklch(0.205 0 0);
125
- --sidebar-foreground: oklch(0.985 0 0);
126
- --sidebar-primary: oklch(0.488 0.243 264.376);
127
- --sidebar-primary-foreground: oklch(0.985 0 0);
128
- --sidebar-accent: oklch(0.269 0 0);
129
- --sidebar-accent-foreground: oklch(0.985 0 0);
130
- --sidebar-border: oklch(1 0 0 / 10%);
131
- --sidebar-ring: oklch(0.439 0 0);
99
+ .light {
100
+ color-scheme: only light;
132
101
 
133
- /* Icons */
134
- --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
135
- --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
136
- --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>');/* --muted-foreground */
137
- color-scheme: dark;
138
- }
102
+ /* Icons */
103
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
104
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
105
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
106
+ }
107
+
108
+ .dark {
109
+ color-scheme: only dark;
110
+
111
+ /* Icons */
112
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
113
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
114
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
115
+ }
116
+
117
+ @media (prefers-color-scheme: dark) {
118
+ :root:not(.light) {
119
+ /* Icons */
120
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
121
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
122
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
123
+ }
124
+ }
139
125
  }