@loccal/ui 0.0.0-stage → 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 (254) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/LICENSE +21 -0
  3. package/README.md +38 -3
  4. package/dist/components/ui/accordion.d.ts +6 -0
  5. package/dist/components/ui/accordion.js +17 -0
  6. package/dist/components/ui/ai-panel.d.ts +47 -0
  7. package/dist/components/ui/ai-panel.js +74 -0
  8. package/dist/components/ui/alert-dialog.d.ts +18 -0
  9. package/dist/components/ui/alert-dialog.js +42 -0
  10. package/dist/components/ui/alert.d.ts +10 -0
  11. package/dist/components/ui/alert.js +27 -0
  12. package/dist/components/ui/avatar.d.ts +11 -0
  13. package/dist/components/ui/avatar.js +23 -0
  14. package/dist/components/ui/badge.d.ts +7 -0
  15. package/dist/components/ui/badge.js +36 -0
  16. package/dist/components/ui/breadcrumb.d.ts +10 -0
  17. package/dist/components/ui/breadcrumb.js +36 -0
  18. package/dist/components/ui/button-group.d.ts +10 -0
  19. package/dist/components/ui/button-group.js +36 -0
  20. package/dist/components/ui/button.d.ts +8 -0
  21. package/dist/components/ui/button.js +34 -0
  22. package/dist/components/ui/calendar.d.ts +10 -0
  23. package/dist/components/ui/calendar.js +76 -0
  24. package/dist/components/ui/card.d.ts +11 -0
  25. package/dist/components/ui/card.js +24 -0
  26. package/dist/components/ui/chart.d.ts +44 -0
  27. package/dist/components/ui/chart.js +132 -0
  28. package/dist/components/ui/checkbox.d.ts +3 -0
  29. package/dist/components/ui/checkbox.js +9 -0
  30. package/dist/components/ui/code-view.d.ts +31 -0
  31. package/dist/components/ui/code-view.js +62 -0
  32. package/dist/components/ui/collapsible.d.ts +5 -0
  33. package/dist/components/ui/collapsible.js +13 -0
  34. package/dist/components/ui/command-block.d.ts +28 -0
  35. package/dist/components/ui/command-block.js +58 -0
  36. package/dist/components/ui/command.d.ts +19 -0
  37. package/dist/components/ui/command.js +35 -0
  38. package/dist/components/ui/connection-status.d.ts +29 -0
  39. package/dist/components/ui/connection-status.js +26 -0
  40. package/dist/components/ui/context-menu.d.ts +29 -0
  41. package/dist/components/ui/context-menu.js +51 -0
  42. package/dist/components/ui/data-table.d.ts +49 -0
  43. package/dist/components/ui/data-table.js +100 -0
  44. package/dist/components/ui/dialog.d.ts +18 -0
  45. package/dist/components/ui/dialog.js +37 -0
  46. package/dist/components/ui/drawer.d.ts +16 -0
  47. package/dist/components/ui/drawer.js +75 -0
  48. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  49. package/dist/components/ui/dropdown-menu.js +51 -0
  50. package/dist/components/ui/dropzone.d.ts +11 -0
  51. package/dist/components/ui/dropzone.js +39 -0
  52. package/dist/components/ui/empty.d.ts +11 -0
  53. package/dist/components/ui/empty.js +33 -0
  54. package/dist/components/ui/field.d.ts +24 -0
  55. package/dist/components/ui/field.js +68 -0
  56. package/dist/components/ui/file-tree.d.ts +42 -0
  57. package/dist/components/ui/file-tree.js +88 -0
  58. package/dist/components/ui/file-type-icon.d.ts +16 -0
  59. package/dist/components/ui/file-type-icon.js +19 -0
  60. package/dist/components/ui/hash-chain.d.ts +43 -0
  61. package/dist/components/ui/hash-chain.js +34 -0
  62. package/dist/components/ui/history-palette.d.ts +37 -0
  63. package/dist/components/ui/history-palette.js +44 -0
  64. package/dist/components/ui/hover-card.d.ts +5 -0
  65. package/dist/components/ui/hover-card.js +14 -0
  66. package/dist/components/ui/icon-base.d.ts +15 -0
  67. package/dist/components/ui/icon-base.js +18 -0
  68. package/dist/components/ui/icon.d.ts +15 -0
  69. package/dist/components/ui/icon.js +32 -0
  70. package/dist/components/ui/icons-compat.d.ts +32 -0
  71. package/dist/components/ui/icons-compat.js +34 -0
  72. package/dist/components/ui/icons.d.ts +1048 -0
  73. package/dist/components/ui/icons.js +264 -0
  74. package/dist/components/ui/input-group.d.ts +18 -0
  75. package/dist/components/ui/input-group.js +57 -0
  76. package/dist/components/ui/input-otp.d.ts +11 -0
  77. package/dist/components/ui/input-otp.js +21 -0
  78. package/dist/components/ui/input.d.ts +3 -0
  79. package/dist/components/ui/input.js +7 -0
  80. package/dist/components/ui/kbd.d.ts +3 -0
  81. package/dist/components/ui/kbd.js +9 -0
  82. package/dist/components/ui/label.d.ts +3 -0
  83. package/dist/components/ui/label.js +7 -0
  84. package/dist/components/ui/locale-switch.d.ts +9 -0
  85. package/dist/components/ui/locale-switch.js +31 -0
  86. package/dist/components/ui/log-panel.d.ts +28 -0
  87. package/dist/components/ui/log-panel.js +59 -0
  88. package/dist/components/ui/menubar.d.ts +29 -0
  89. package/dist/components/ui/menubar.js +56 -0
  90. package/dist/components/ui/metric-grid.d.ts +20 -0
  91. package/dist/components/ui/metric-grid.js +14 -0
  92. package/dist/components/ui/model-list.d.ts +33 -0
  93. package/dist/components/ui/model-list.js +69 -0
  94. package/dist/components/ui/navigation-menu.d.ts +11 -0
  95. package/dist/components/ui/navigation-menu.js +31 -0
  96. package/dist/components/ui/number-field.d.ts +29 -0
  97. package/dist/components/ui/number-field.js +65 -0
  98. package/dist/components/ui/pagination.d.ts +17 -0
  99. package/dist/components/ui/pagination.js +26 -0
  100. package/dist/components/ui/pane-tree.d.ts +18 -0
  101. package/dist/components/ui/pane-tree.js +65 -0
  102. package/dist/components/ui/popover.d.ts +9 -0
  103. package/dist/components/ui/popover.js +23 -0
  104. package/dist/components/ui/progress.d.ts +7 -0
  105. package/dist/components/ui/progress.js +20 -0
  106. package/dist/components/ui/radio-group.d.ts +5 -0
  107. package/dist/components/ui/radio-group.js +12 -0
  108. package/dist/components/ui/resizable.d.ts +7 -0
  109. package/dist/components/ui/resizable.js +14 -0
  110. package/dist/components/ui/scroll-area.d.ts +5 -0
  111. package/dist/components/ui/scroll-area.js +11 -0
  112. package/dist/components/ui/select.d.ts +15 -0
  113. package/dist/components/ui/select.js +34 -0
  114. package/dist/components/ui/separator.d.ts +3 -0
  115. package/dist/components/ui/separator.js +8 -0
  116. package/dist/components/ui/settings-layout.d.ts +31 -0
  117. package/dist/components/ui/settings-layout.js +45 -0
  118. package/dist/components/ui/sheet.d.ts +14 -0
  119. package/dist/components/ui/sheet.js +37 -0
  120. package/dist/components/ui/shell-picker.d.ts +18 -0
  121. package/dist/components/ui/shell-picker.js +17 -0
  122. package/dist/components/ui/skeleton.d.ts +2 -0
  123. package/dist/components/ui/skeleton.js +6 -0
  124. package/dist/components/ui/slider.d.ts +3 -0
  125. package/dist/components/ui/slider.js +12 -0
  126. package/dist/components/ui/sonner.d.ts +3 -0
  127. package/dist/components/ui/sonner.js +25 -0
  128. package/dist/components/ui/spinner.d.ts +2 -0
  129. package/dist/components/ui/spinner.js +7 -0
  130. package/dist/components/ui/split-button.d.ts +21 -0
  131. package/dist/components/ui/split-button.js +14 -0
  132. package/dist/components/ui/stat.d.ts +10 -0
  133. package/dist/components/ui/stat.js +8 -0
  134. package/dist/components/ui/status-bar.d.ts +13 -0
  135. package/dist/components/ui/status-bar.js +15 -0
  136. package/dist/components/ui/stepper.d.ts +13 -0
  137. package/dist/components/ui/stepper.js +11 -0
  138. package/dist/components/ui/switch.d.ts +5 -0
  139. package/dist/components/ui/switch.js +8 -0
  140. package/dist/components/ui/table.d.ts +10 -0
  141. package/dist/components/ui/table.js +28 -0
  142. package/dist/components/ui/tabs.d.ts +10 -0
  143. package/dist/components/ui/tabs.js +29 -0
  144. package/dist/components/ui/terminal-tabs.d.ts +31 -0
  145. package/dist/components/ui/terminal-tabs.js +109 -0
  146. package/dist/components/ui/terminal-view.d.ts +51 -0
  147. package/dist/components/ui/terminal-view.js +189 -0
  148. package/dist/components/ui/textarea.d.ts +3 -0
  149. package/dist/components/ui/textarea.js +6 -0
  150. package/dist/components/ui/timeline.d.ts +9 -0
  151. package/dist/components/ui/timeline.js +18 -0
  152. package/dist/components/ui/toggle-group.d.ts +11 -0
  153. package/dist/components/ui/toggle-group.js +24 -0
  154. package/dist/components/ui/toggle.d.ts +8 -0
  155. package/dist/components/ui/toggle.js +26 -0
  156. package/dist/components/ui/tooltip.d.ts +6 -0
  157. package/dist/components/ui/tooltip.js +17 -0
  158. package/dist/components/ui/tree-view.d.ts +20 -0
  159. package/dist/components/ui/tree-view.js +41 -0
  160. package/dist/components/ui/window-frame.d.ts +35 -0
  161. package/dist/components/ui/window-frame.js +49 -0
  162. package/dist/lib/ai-markdown.d.ts +13 -0
  163. package/dist/lib/ai-markdown.js +46 -0
  164. package/dist/lib/command-risk.d.ts +6 -0
  165. package/dist/lib/command-risk.js +42 -0
  166. package/dist/lib/file-icons.d.ts +18 -0
  167. package/dist/lib/file-icons.js +136 -0
  168. package/dist/lib/file-kind.d.ts +10 -0
  169. package/dist/lib/file-kind.js +63 -0
  170. package/dist/lib/format.d.ts +9 -0
  171. package/dist/lib/format.js +30 -0
  172. package/dist/lib/i18n-core.d.ts +20 -0
  173. package/dist/lib/i18n-core.js +36 -0
  174. package/dist/lib/i18n.d.ts +15 -0
  175. package/dist/lib/i18n.js +68 -0
  176. package/dist/lib/icon-data.d.ts +276 -0
  177. package/dist/lib/icon-data.js +307 -0
  178. package/dist/lib/icon-shapes.d.ts +14 -0
  179. package/dist/lib/icon-shapes.js +47 -0
  180. package/dist/lib/log-filter.d.ts +23 -0
  181. package/dist/lib/log-filter.js +44 -0
  182. package/dist/lib/number-field.d.ts +11 -0
  183. package/dist/lib/number-field.js +30 -0
  184. package/dist/lib/pane-tree.d.ts +39 -0
  185. package/dist/lib/pane-tree.js +92 -0
  186. package/dist/lib/platform.d.ts +10 -0
  187. package/dist/lib/platform.js +24 -0
  188. package/dist/lib/shell-meta.d.ts +7 -0
  189. package/dist/lib/shell-meta.js +70 -0
  190. package/dist/lib/syntax.d.ts +16 -0
  191. package/dist/lib/syntax.js +540 -0
  192. package/dist/lib/tab-order.d.ts +6 -0
  193. package/dist/lib/tab-order.js +24 -0
  194. package/dist/lib/table-sort.d.ts +16 -0
  195. package/dist/lib/table-sort.js +66 -0
  196. package/dist/lib/terminal-themes.d.ts +30 -0
  197. package/dist/lib/terminal-themes.js +90 -0
  198. package/dist/lib/utils.d.ts +2 -0
  199. package/dist/lib/utils.js +5 -0
  200. package/dist-cdn/loccal-ui.css +971 -0
  201. package/dist-cdn/loccal-ui.min.js +1 -0
  202. package/dist-wc/base.d.ts +31 -0
  203. package/dist-wc/base.js +104 -0
  204. package/dist-wc/button.d.ts +12 -0
  205. package/dist-wc/button.js +47 -0
  206. package/dist-wc/calendar.d.ts +16 -0
  207. package/dist-wc/calendar.js +106 -0
  208. package/dist-wc/choice.d.ts +17 -0
  209. package/dist-wc/choice.js +76 -0
  210. package/dist-wc/command.d.ts +32 -0
  211. package/dist-wc/command.js +181 -0
  212. package/dist-wc/data-table.d.ts +22 -0
  213. package/dist-wc/data-table.js +128 -0
  214. package/dist-wc/dialog.d.ts +29 -0
  215. package/dist-wc/dialog.js +94 -0
  216. package/dist-wc/disclosure.d.ts +17 -0
  217. package/dist-wc/disclosure.js +91 -0
  218. package/dist-wc/fields2.d.ts +38 -0
  219. package/dist-wc/fields2.js +133 -0
  220. package/dist-wc/file-tree.d.ts +19 -0
  221. package/dist-wc/file-tree.js +97 -0
  222. package/dist-wc/floating.d.ts +32 -0
  223. package/dist-wc/floating.js +91 -0
  224. package/dist-wc/index.d.ts +23 -0
  225. package/dist-wc/index.js +24 -0
  226. package/dist-wc/input-otp.d.ts +14 -0
  227. package/dist-wc/input-otp.js +82 -0
  228. package/dist-wc/navigation-menu.d.ts +14 -0
  229. package/dist-wc/navigation-menu.js +75 -0
  230. package/dist-wc/number-field.d.ts +13 -0
  231. package/dist-wc/number-field.js +67 -0
  232. package/dist-wc/resizable.d.ts +14 -0
  233. package/dist-wc/resizable.js +57 -0
  234. package/dist-wc/select.d.ts +17 -0
  235. package/dist-wc/select.js +80 -0
  236. package/dist-wc/static.d.ts +1 -0
  237. package/dist-wc/static.js +175 -0
  238. package/dist-wc/status-bar.d.ts +11 -0
  239. package/dist-wc/status-bar.js +54 -0
  240. package/dist-wc/styles.css +971 -0
  241. package/dist-wc/tabs.d.ts +16 -0
  242. package/dist-wc/tabs.js +62 -0
  243. package/dist-wc/terminal-tabs.d.ts +16 -0
  244. package/dist-wc/terminal-tabs.js +79 -0
  245. package/dist-wc/toaster.d.ts +16 -0
  246. package/dist-wc/toaster.js +68 -0
  247. package/dist-wc/toggle.d.ts +30 -0
  248. package/dist-wc/toggle.js +101 -0
  249. package/dist-wc/tree.d.ts +17 -0
  250. package/dist-wc/tree.js +72 -0
  251. package/docs/ARQUITETURA-VANILLA.md +54 -0
  252. package/docs/VERSIONING.md +88 -0
  253. package/package.json +1078 -6
  254. package/styles.css +476 -0
package/styles.css ADDED
@@ -0,0 +1,476 @@
1
+ /* GERADO por scripts/build.mjs a partir de app/globals.css. Nao edite aqui. */
2
+ @source "./dist";
3
+ @import 'tailwindcss';
4
+ @import 'tw-animate-css';
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ /* Variantes de estado e utilitarios proprios do Loccal UI (atributos data-*). */
9
+ @theme inline {
10
+ @keyframes accordion-down {
11
+ from {
12
+ height: 0;
13
+ }
14
+ to {
15
+ height: var(--accordion-panel-height, auto);
16
+ }
17
+ }
18
+
19
+ @keyframes accordion-up {
20
+ from {
21
+ height: var(--accordion-panel-height, auto);
22
+ }
23
+ to {
24
+ height: 0;
25
+ }
26
+ }
27
+ }
28
+
29
+ @custom-variant data-open {
30
+ &:where([data-state="open"]),
31
+ &:where([data-open]:not([data-open="false"])) {
32
+ @slot;
33
+ }
34
+ }
35
+
36
+ @custom-variant data-closed {
37
+ &:where([data-state="closed"]),
38
+ &:where([data-closed]:not([data-closed="false"])) {
39
+ @slot;
40
+ }
41
+ }
42
+
43
+ @custom-variant data-checked {
44
+ &:where([data-state="checked"]),
45
+ &:where([data-checked]:not([data-checked="false"])) {
46
+ @slot;
47
+ }
48
+ }
49
+
50
+ @custom-variant data-unchecked {
51
+ &:where([data-state="unchecked"]),
52
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
53
+ @slot;
54
+ }
55
+ }
56
+
57
+ @custom-variant data-active {
58
+ &:where([data-state="active"]),
59
+ &:where([data-active]:not([data-active="false"])) {
60
+ @slot;
61
+ }
62
+ }
63
+
64
+ @custom-variant data-selected {
65
+ &:where([data-selected="true"]) {
66
+ @slot;
67
+ }
68
+ }
69
+
70
+ @custom-variant data-disabled {
71
+ &:where([data-disabled="true"]),
72
+ &:where([data-disabled]:not([data-disabled="false"])) {
73
+ @slot;
74
+ }
75
+ }
76
+
77
+ @custom-variant data-horizontal {
78
+ &:where([data-orientation="horizontal"]) {
79
+ @slot;
80
+ }
81
+ }
82
+
83
+ @custom-variant data-vertical {
84
+ &:where([data-orientation="vertical"]) {
85
+ @slot;
86
+ }
87
+ }
88
+
89
+ @utility no-scrollbar {
90
+ -ms-overflow-style: none;
91
+ scrollbar-width: none;
92
+
93
+ &::-webkit-scrollbar {
94
+ display: none;
95
+ }
96
+ }
97
+
98
+ @theme inline {
99
+ --font-sans: var(--font-geist), 'Geist', ui-sans-serif, system-ui, 'Segoe UI', 'Cantarell', 'Noto Sans', 'Ubuntu', sans-serif;
100
+ --font-mono: var(--font-geist-mono), 'Geist Mono', ui-monospace, 'Cascadia Mono', 'DejaVu Sans Mono', 'Liberation Mono', monospace;
101
+
102
+ --color-sidebar-ring: var(--sidebar-ring);
103
+ --color-sidebar-border: var(--sidebar-border);
104
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
105
+ --color-sidebar-accent: var(--sidebar-accent);
106
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
107
+ --color-sidebar-primary: var(--sidebar-primary);
108
+ --color-sidebar-foreground: var(--sidebar-foreground);
109
+ --color-sidebar: var(--sidebar);
110
+ --color-chart-5: var(--chart-5);
111
+ --color-chart-4: var(--chart-4);
112
+ --color-chart-3: var(--chart-3);
113
+ --color-chart-2: var(--chart-2);
114
+ --color-chart-1: var(--chart-1);
115
+ --color-ring: var(--ring);
116
+ --color-input: var(--input);
117
+ --color-border: var(--border);
118
+ --color-destructive: var(--destructive);
119
+ --color-accent-foreground: var(--accent-foreground);
120
+ --color-accent: var(--accent);
121
+ --color-muted-foreground: var(--muted-foreground);
122
+ --color-muted: var(--muted);
123
+ --color-secondary-foreground: var(--secondary-foreground);
124
+ --color-secondary: var(--secondary);
125
+ --color-primary-foreground: var(--primary-foreground);
126
+ --color-primary: var(--primary);
127
+ --color-popover-foreground: var(--popover-foreground);
128
+ --color-popover: var(--popover);
129
+ --color-card-foreground: var(--card-foreground);
130
+ --color-card: var(--card);
131
+ --color-foreground: var(--foreground);
132
+ --color-background: var(--background);
133
+ --color-brand: var(--brand);
134
+ --color-brand-foreground: var(--brand-foreground);
135
+ --color-success: var(--success);
136
+ --color-warning: var(--warning);
137
+ --color-canvas: var(--canvas);
138
+
139
+ --radius-sm: calc(var(--radius) * 0.6);
140
+ --radius-md: calc(var(--radius) * 0.8);
141
+ --radius-lg: var(--radius);
142
+ --radius-xl: calc(var(--radius) * 1.4);
143
+ --radius-2xl: calc(var(--radius) * 1.8);
144
+ --radius-3xl: calc(var(--radius) * 2.2);
145
+ --radius-4xl: calc(var(--radius) * 2.6);
146
+
147
+ --shadow-surface:
148
+ inset 0 1px 0 0 var(--highlight), 0 0 0 1px var(--hairline),
149
+ 0 1px 2px 0 oklch(0 0 0 / 0.04), 0 6px 16px -8px oklch(0 0 0 / 0.08);
150
+ --shadow-floating:
151
+ inset 0 1px 0 0 var(--highlight), 0 0 0 1px var(--hairline),
152
+ 0 12px 32px -12px oklch(0 0 0 / 0.28), 0 4px 10px -4px oklch(0 0 0 / 0.12);
153
+ }
154
+
155
+ /* Alabaster — tema claro */
156
+ :root {
157
+ color-scheme: light;
158
+ --canvas: oklch(0.975 0.002 260);
159
+ --background: oklch(0.99 0.0015 260);
160
+ --foreground: oklch(0.2 0.008 260);
161
+ --card: oklch(1 0 0);
162
+ --card-foreground: oklch(0.2 0.008 260);
163
+ --popover: oklch(1 0 0);
164
+ --popover-foreground: oklch(0.2 0.008 260);
165
+ --primary: oklch(0.21 0.008 260);
166
+ --primary-foreground: oklch(0.985 0.002 260);
167
+ --secondary: oklch(0.962 0.003 260);
168
+ --secondary-foreground: oklch(0.21 0.008 260);
169
+ --muted: oklch(0.962 0.003 260);
170
+ --muted-foreground: oklch(0.5 0.012 260);
171
+ --accent: oklch(0.952 0.004 260);
172
+ --accent-foreground: oklch(0.21 0.008 260);
173
+ --destructive: oklch(0.56 0.19 25);
174
+ --success: oklch(0.56 0.11 155);
175
+ --warning: oklch(0.68 0.13 70);
176
+ --border: oklch(0.912 0.004 260);
177
+ --input: oklch(0.9 0.005 260);
178
+ --hairline: oklch(0.2 0.01 260 / 0.09);
179
+ --highlight: oklch(1 0 0 / 0.9);
180
+ --brand: oklch(0.6 0.115 68);
181
+ --brand-foreground: oklch(0.99 0.01 80);
182
+ --ring: var(--brand);
183
+ --chart-1: var(--brand);
184
+ --chart-2: oklch(0.42 0.01 260);
185
+ --chart-3: oklch(0.6 0.01 260);
186
+ --chart-4: oklch(0.75 0.008 260);
187
+ --chart-5: oklch(0.86 0.006 260);
188
+ --radius: 0.625rem;
189
+ --sidebar: oklch(0.98 0.002 260);
190
+ --sidebar-foreground: oklch(0.2 0.008 260);
191
+ --sidebar-primary: oklch(0.21 0.008 260);
192
+ --sidebar-primary-foreground: oklch(0.985 0.002 260);
193
+ --sidebar-accent: oklch(0.95 0.004 260);
194
+ --sidebar-accent-foreground: oklch(0.21 0.008 260);
195
+ --sidebar-border: oklch(0.915 0.004 260);
196
+ --sidebar-ring: var(--brand);
197
+ }
198
+
199
+ /* Obsidian — tema escuro */
200
+ .dark {
201
+ color-scheme: dark;
202
+ --canvas: oklch(0.135 0.004 260);
203
+ --background: oklch(0.155 0.004 260);
204
+ --foreground: oklch(0.955 0.003 260);
205
+ --card: oklch(0.183 0.005 260);
206
+ --card-foreground: oklch(0.955 0.003 260);
207
+ --popover: oklch(0.2 0.005 260);
208
+ --popover-foreground: oklch(0.955 0.003 260);
209
+ --primary: oklch(0.955 0.003 260);
210
+ --primary-foreground: oklch(0.17 0.005 260);
211
+ --secondary: oklch(0.235 0.006 260);
212
+ --secondary-foreground: oklch(0.955 0.003 260);
213
+ --muted: oklch(0.22 0.005 260);
214
+ --muted-foreground: oklch(0.68 0.01 260);
215
+ --accent: oklch(0.25 0.006 260);
216
+ --accent-foreground: oklch(0.955 0.003 260);
217
+ --destructive: oklch(0.68 0.17 24);
218
+ --success: oklch(0.74 0.12 155);
219
+ --warning: oklch(0.8 0.12 78);
220
+ --border: oklch(1 0 0 / 8%);
221
+ --input: oklch(1 0 0 / 11%);
222
+ --hairline: oklch(1 0 0 / 7%);
223
+ --highlight: oklch(1 0 0 / 5.5%);
224
+ --brand: oklch(0.8 0.105 78);
225
+ --brand-foreground: oklch(0.2 0.03 70);
226
+ --ring: var(--brand);
227
+ --chart-1: var(--brand);
228
+ --chart-2: oklch(0.82 0.006 260);
229
+ --chart-3: oklch(0.62 0.008 260);
230
+ --chart-4: oklch(0.45 0.008 260);
231
+ --chart-5: oklch(0.33 0.006 260);
232
+ --sidebar: oklch(0.165 0.004 260);
233
+ --sidebar-foreground: oklch(0.955 0.003 260);
234
+ --sidebar-primary: oklch(0.955 0.003 260);
235
+ --sidebar-primary-foreground: oklch(0.17 0.005 260);
236
+ --sidebar-accent: oklch(0.23 0.006 260);
237
+ --sidebar-accent-foreground: oklch(0.955 0.003 260);
238
+ --sidebar-border: oklch(1 0 0 / 7%);
239
+ --sidebar-ring: var(--brand);
240
+ }
241
+
242
+ /* Acentos alternativos (customizador de tema) */
243
+ [data-brand='cobalt'] {
244
+ --brand: oklch(0.52 0.14 256);
245
+ --brand-foreground: oklch(0.985 0.01 256);
246
+ }
247
+ .dark[data-brand='cobalt'],
248
+ [data-brand='cobalt'] .dark {
249
+ --brand: oklch(0.74 0.11 252);
250
+ --brand-foreground: oklch(0.2 0.04 256);
251
+ }
252
+ [data-brand='sage'] {
253
+ --brand: oklch(0.52 0.075 160);
254
+ --brand-foreground: oklch(0.985 0.01 160);
255
+ }
256
+ .dark[data-brand='sage'] {
257
+ --brand: oklch(0.76 0.075 160);
258
+ --brand-foreground: oklch(0.2 0.03 160);
259
+ }
260
+ [data-brand='oxblood'] {
261
+ --brand: oklch(0.46 0.13 20);
262
+ --brand-foreground: oklch(0.985 0.01 20);
263
+ }
264
+ .dark[data-brand='oxblood'] {
265
+ --brand: oklch(0.72 0.12 22);
266
+ --brand-foreground: oklch(0.2 0.04 20);
267
+ }
268
+ [data-brand='graphite'] {
269
+ --brand: oklch(0.38 0.01 260);
270
+ --brand-foreground: oklch(0.985 0.002 260);
271
+ }
272
+ .dark[data-brand='graphite'] {
273
+ --brand: oklch(0.86 0.005 260);
274
+ --brand-foreground: oklch(0.17 0.005 260);
275
+ }
276
+
277
+ @layer base {
278
+ * {
279
+ @apply border-border outline-ring/50;
280
+ }
281
+ html {
282
+ @apply bg-background;
283
+ -webkit-font-smoothing: antialiased;
284
+ -moz-osx-font-smoothing: grayscale;
285
+ text-rendering: optimizeLegibility;
286
+ }
287
+ body {
288
+ @apply bg-background text-foreground font-sans;
289
+ font-feature-settings: 'ss01', 'cv11';
290
+ }
291
+ ::selection {
292
+ background: color-mix(in oklch, var(--brand) 28%, transparent);
293
+ }
294
+ :focus-visible {
295
+ outline-offset: 2px;
296
+ }
297
+ }
298
+
299
+ @utility tabular {
300
+ font-variant-numeric: tabular-nums;
301
+ }
302
+
303
+ @utility wails-drag {
304
+ --wails-draggable: drag;
305
+ -webkit-app-region: drag;
306
+ }
307
+
308
+ @utility wails-no-drag {
309
+ --wails-draggable: no-drag;
310
+ -webkit-app-region: no-drag;
311
+ }
312
+
313
+ /* Realce de sintaxe (Shiki, temas duplos) */
314
+ .shiki,
315
+ .shiki span {
316
+ color: var(--shiki-light);
317
+ background-color: transparent !important;
318
+ }
319
+ .dark .shiki,
320
+ .dark .shiki span {
321
+ color: var(--shiki-dark);
322
+ }
323
+ .shiki {
324
+ counter-reset: line;
325
+ }
326
+ .shiki code {
327
+ display: grid;
328
+ }
329
+
330
+ @media (prefers-reduced-motion: reduce) {
331
+ *,
332
+ *::before,
333
+ *::after {
334
+ animation-duration: 0.01ms !important;
335
+ transition-duration: 0.01ms !important;
336
+ }
337
+ }
338
+
339
+ /* Modelos de rolagem do Loccal UI (ver components/blocks/scrollable.tsx e /docs/scrolling) */
340
+ @utility scrollbar-thin {
341
+ scrollbar-width: thin;
342
+ scrollbar-color: var(--border) transparent;
343
+
344
+ &::-webkit-scrollbar {
345
+ width: 8px;
346
+ height: 8px;
347
+ }
348
+ &::-webkit-scrollbar-track {
349
+ background: transparent;
350
+ }
351
+ &::-webkit-scrollbar-thumb {
352
+ background: var(--border);
353
+ border-radius: 9999px;
354
+ border: 2px solid transparent;
355
+ background-clip: content-box;
356
+ }
357
+ &::-webkit-scrollbar-thumb:hover {
358
+ background: var(--muted-foreground);
359
+ background-clip: content-box;
360
+ }
361
+ }
362
+
363
+ @utility scrollbar-desktop {
364
+ scrollbar-width: auto;
365
+ scrollbar-color: color-mix(in oklch, var(--foreground) 22%, transparent) transparent;
366
+
367
+ &::-webkit-scrollbar {
368
+ width: 12px;
369
+ height: 12px;
370
+ }
371
+ &::-webkit-scrollbar-track {
372
+ background: transparent;
373
+ }
374
+ &::-webkit-scrollbar-thumb {
375
+ background: color-mix(in oklch, var(--foreground) 22%, transparent);
376
+ border-radius: 6px;
377
+ border: 3px solid transparent;
378
+ background-clip: content-box;
379
+ }
380
+ &::-webkit-scrollbar-thumb:hover {
381
+ background: color-mix(in oklch, var(--foreground) 40%, transparent);
382
+ background-clip: content-box;
383
+ }
384
+ &::-webkit-scrollbar-corner {
385
+ background: transparent;
386
+ }
387
+ }
388
+
389
+ @utility scrollbar-track {
390
+ scrollbar-width: thin;
391
+ scrollbar-color: var(--muted-foreground) var(--muted);
392
+
393
+ &::-webkit-scrollbar {
394
+ width: 10px;
395
+ height: 10px;
396
+ }
397
+ &::-webkit-scrollbar-track {
398
+ background: var(--muted);
399
+ box-shadow: inset 0 0 0 1px var(--hairline);
400
+ }
401
+ &::-webkit-scrollbar-thumb {
402
+ background: var(--muted-foreground);
403
+ border-radius: 9999px;
404
+ border: 2px solid var(--muted);
405
+ }
406
+ }
407
+
408
+ @utility scroll-shadow-y {
409
+ --scroll-bg: var(--background);
410
+ background:
411
+ linear-gradient(var(--scroll-bg) 30%, transparent) top / 100% 28px no-repeat local,
412
+ linear-gradient(transparent, var(--scroll-bg) 70%) bottom / 100% 28px no-repeat local,
413
+ radial-gradient(farthest-side at 50% 0, color-mix(in oklch, var(--foreground) 16%, transparent), transparent) top / 100% 10px no-repeat scroll,
414
+ radial-gradient(farthest-side at 50% 100%, color-mix(in oklch, var(--foreground) 16%, transparent), transparent) bottom / 100% 10px no-repeat scroll;
415
+ background-color: var(--scroll-bg);
416
+ }
417
+
418
+ @utility scroll-shadow-x {
419
+ --scroll-bg: var(--background);
420
+ background:
421
+ linear-gradient(to right, var(--scroll-bg) 30%, transparent) left / 28px 100% no-repeat local,
422
+ linear-gradient(to left, var(--scroll-bg) 30%, transparent) right / 28px 100% no-repeat local,
423
+ radial-gradient(farthest-side at 0 50%, color-mix(in oklch, var(--foreground) 16%, transparent), transparent) left / 10px 100% no-repeat scroll,
424
+ radial-gradient(farthest-side at 100% 50%, color-mix(in oklch, var(--foreground) 16%, transparent), transparent) right / 10px 100% no-repeat scroll;
425
+ background-color: var(--scroll-bg);
426
+ }
427
+
428
+ /* Realce de sintaxe do CodeView (ver components/ui/code-view.tsx). Cores calibradas para os dois temas. */
429
+ [data-slot="code-view"] {
430
+ --code-keyword: oklch(0.52 0.2 300);
431
+ --code-string: oklch(0.5 0.14 150);
432
+ --code-comment: oklch(0.55 0.02 260);
433
+ --code-number: oklch(0.55 0.16 50);
434
+ --code-function: oklch(0.5 0.15 250);
435
+ --code-type: oklch(0.52 0.13 200);
436
+ --code-constant: oklch(0.55 0.17 30);
437
+ --code-tag: oklch(0.52 0.19 20);
438
+ --code-attr: oklch(0.55 0.15 70);
439
+ --code-property: oklch(0.5 0.14 240);
440
+ --code-variable: oklch(0.52 0.15 330);
441
+ --code-meta: oklch(0.55 0.1 280);
442
+ --code-inserted: oklch(0.5 0.15 150);
443
+ --code-deleted: oklch(0.55 0.2 25);
444
+ }
445
+ .dark [data-slot="code-view"] {
446
+ --code-keyword: oklch(0.72 0.2 305);
447
+ --code-string: oklch(0.78 0.16 150);
448
+ --code-comment: oklch(0.62 0.03 260);
449
+ --code-number: oklch(0.8 0.16 65);
450
+ --code-function: oklch(0.76 0.15 245);
451
+ --code-type: oklch(0.78 0.13 195);
452
+ --code-constant: oklch(0.76 0.17 35);
453
+ --code-tag: oklch(0.72 0.19 15);
454
+ --code-attr: oklch(0.8 0.15 75);
455
+ --code-property: oklch(0.76 0.13 235);
456
+ --code-variable: oklch(0.75 0.16 335);
457
+ --code-meta: oklch(0.7 0.1 285);
458
+ --code-inserted: oklch(0.78 0.16 150);
459
+ --code-deleted: oklch(0.72 0.19 25);
460
+ }
461
+ [data-slot="code-view"] [data-t="keyword"] { color: var(--code-keyword); }
462
+ [data-slot="code-view"] [data-t="string"] { color: var(--code-string); }
463
+ [data-slot="code-view"] [data-t="comment"] { color: var(--code-comment); font-style: italic; }
464
+ [data-slot="code-view"] [data-t="number"] { color: var(--code-number); }
465
+ [data-slot="code-view"] [data-t="function"] { color: var(--code-function); }
466
+ [data-slot="code-view"] [data-t="type"] { color: var(--code-type); }
467
+ [data-slot="code-view"] [data-t="constant"] { color: var(--code-constant); }
468
+ [data-slot="code-view"] [data-t="tag"] { color: var(--code-tag); }
469
+ [data-slot="code-view"] [data-t="attr"] { color: var(--code-attr); }
470
+ [data-slot="code-view"] [data-t="property"] { color: var(--code-property); }
471
+ [data-slot="code-view"] [data-t="variable"] { color: var(--code-variable); }
472
+ [data-slot="code-view"] [data-t="meta"] { color: var(--code-meta); }
473
+ [data-slot="code-view"] [data-t="heading"] { color: var(--code-function); font-weight: 600; }
474
+ [data-slot="code-view"] [data-t="inserted"] { color: var(--code-inserted); }
475
+ [data-slot="code-view"] [data-t="deleted"] { color: var(--code-deleted); }
476
+ [data-slot="code-view"] [data-t="operator"], [data-slot="code-view"] [data-t="punctuation"] { color: color-mix(in oklch, var(--foreground) 72%, transparent); }