@odla-ai/ui 0.1.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 (43) hide show
  1. package/README.md +88 -0
  2. package/css/components/buttons.css +118 -0
  3. package/css/components/cards.css +66 -0
  4. package/css/components/chart.css +24 -0
  5. package/css/components/chat.css +167 -0
  6. package/css/components/feedback.css +77 -0
  7. package/css/components/forms.css +132 -0
  8. package/css/components/nav.css +96 -0
  9. package/css/components/table.css +34 -0
  10. package/css/tokens.css +138 -0
  11. package/dist/index.d.ts +50 -0
  12. package/dist/index.js +72 -0
  13. package/dist/index.js.map +1 -0
  14. package/fonts/editorial.css +46 -0
  15. package/fonts/fira-code.css +2 -0
  16. package/fonts/lora.css +2 -0
  17. package/fonts/plex.css +4 -0
  18. package/fonts/satoshi.css +2 -0
  19. package/fonts/system.css +3 -0
  20. package/index.css +14 -0
  21. package/js/canvas.js +113 -0
  22. package/js/index.js +24 -0
  23. package/js/palette.js +37 -0
  24. package/js/theme.js +51 -0
  25. package/js/tokens.js +104 -0
  26. package/llms.txt +201 -0
  27. package/odla-ui.css +863 -0
  28. package/package.json +73 -0
  29. package/themes/chalk/styles.css +720 -0
  30. package/themes/chalk/theme.json +6 -0
  31. package/themes/chalk/ui.css +51 -0
  32. package/themes/clay/styles.css +726 -0
  33. package/themes/clay/theme.json +6 -0
  34. package/themes/clay/ui.css +40 -0
  35. package/themes/juniper/styles.css +660 -0
  36. package/themes/juniper/theme.json +6 -0
  37. package/themes/juniper/ui.css +50 -0
  38. package/themes/paper/styles.css +129 -0
  39. package/themes/paper/theme.json +6 -0
  40. package/themes/paper/ui.css +30 -0
  41. package/themes/salt/styles.css +728 -0
  42. package/themes/salt/theme.json +6 -0
  43. package/themes/salt/ui.css +48 -0
@@ -0,0 +1,48 @@
1
+ /* salt/ui.css — maps salt onto the @odla-ai/ui token contract.
2
+ Load alongside styles.css. Pure var() aliases track dark mode for free;
3
+ any LITERAL value must be overridden identically in BOTH dark blocks. */
4
+ :root {
5
+ --ui-bg: var(--bg);
6
+ --ui-surface: var(--surface);
7
+ --ui-surface-2: #ede6d9;
8
+ --ui-text: var(--text);
9
+ --ui-text-muted: var(--text-secondary);
10
+ --ui-text-faint: color-mix(in srgb, var(--text) 45%, transparent);
11
+ --ui-border: var(--border);
12
+ --ui-border-strong: color-mix(in srgb, var(--text) 28%, transparent);
13
+ --ui-accent: var(--accent);
14
+ --ui-accent-strong: var(--accent-hover);
15
+ --ui-accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
16
+ --ui-on-accent: #ffffff;
17
+ --ui-good: #5f7d52;
18
+ --ui-good-soft: color-mix(in srgb, var(--ui-good) 13%, transparent);
19
+ --ui-warn: #a08050;
20
+ --ui-warn-soft: color-mix(in srgb, var(--ui-warn) 13%, transparent);
21
+ --ui-danger: #b0492f;
22
+ --ui-danger-soft: color-mix(in srgb, var(--ui-danger) 11%, transparent);
23
+ --ui-code-bg: var(--code-bg);
24
+ --ui-code-text: var(--code-text);
25
+ --ui-shadow: 0 2px 10px rgba(47, 62, 52, 0.06);
26
+ --ui-font-sans: var(--font-sans);
27
+ --ui-font-serif: var(--font-serif);
28
+ --ui-font-mono: var(--font-mono);
29
+ --ui-font-display: var(--font-serif);
30
+ }
31
+
32
+ [data-theme="dark"] {
33
+ --ui-surface-2: #26312b;
34
+ --ui-good: #8fb07f;
35
+ --ui-warn: #c4a47e;
36
+ --ui-danger: #e8907b;
37
+ --ui-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
38
+ }
39
+
40
+ @media (prefers-color-scheme: dark) {
41
+ :root:not([data-theme="light"]) {
42
+ --ui-surface-2: #26312b;
43
+ --ui-good: #8fb07f;
44
+ --ui-warn: #c4a47e;
45
+ --ui-danger: #e8907b;
46
+ --ui-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
47
+ }
48
+ }