@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,51 @@
1
+ /* chalk/ui.css — maps chalk onto the @odla-ai/ui token contract.
2
+ Load alongside styles.css. Chalk is flat by design: surfaces stay on
3
+ the page background, structure comes from hairline borders, and the
4
+ shadow slot is empty (glow-not-shadow). Pure var() aliases track dark
5
+ mode for free; any LITERAL value must be overridden identically in
6
+ BOTH dark blocks. */
7
+ :root {
8
+ --ui-bg: var(--bg);
9
+ --ui-surface: var(--bg);
10
+ --ui-surface-2: var(--code-bg);
11
+ --ui-text: var(--text);
12
+ --ui-text-muted: var(--text-dim);
13
+ --ui-text-faint: var(--text-faint);
14
+ --ui-border: var(--border);
15
+ --ui-border-strong: color-mix(in srgb, var(--text) 30%, transparent);
16
+ --ui-accent: var(--accent);
17
+ --ui-accent-strong: #8a4d1e;
18
+ --ui-accent-soft: var(--accent-glow);
19
+ --ui-on-accent: #ffffff;
20
+ --ui-good: #15803d;
21
+ --ui-good-soft: color-mix(in srgb, var(--ui-good) 10%, transparent);
22
+ --ui-warn: #a3790f;
23
+ --ui-warn-soft: color-mix(in srgb, var(--ui-warn) 10%, transparent);
24
+ --ui-danger: #b91c1c;
25
+ --ui-danger-soft: color-mix(in srgb, var(--ui-danger) 9%, transparent);
26
+ --ui-code-bg: var(--code-bg);
27
+ --ui-code-text: var(--code-text);
28
+ --ui-shadow: none;
29
+ --ui-font-sans: var(--font-wordmark);
30
+ --ui-font-serif: var(--font-body);
31
+ --ui-font-mono: var(--font-mono);
32
+ --ui-font-display: var(--font-display);
33
+ }
34
+
35
+ [data-theme="dark"] {
36
+ --ui-accent-strong: #d68a48;
37
+ --ui-on-accent: #0f1014;
38
+ --ui-good: #22c55e;
39
+ --ui-warn: #d4a017;
40
+ --ui-danger: #ef4444;
41
+ }
42
+
43
+ @media (prefers-color-scheme: dark) {
44
+ :root:not([data-theme="light"]) {
45
+ --ui-accent-strong: #d68a48;
46
+ --ui-on-accent: #0f1014;
47
+ --ui-good: #22c55e;
48
+ --ui-warn: #d4a017;
49
+ --ui-danger: #ef4444;
50
+ }
51
+ }