@tradalab/lyra 1.0.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.
@@ -0,0 +1,151 @@
1
+ /*
2
+ * @tradalab/lyra — base stylesheet.
3
+ *
4
+ * Consumers import this once at the top of their own globals.css:
5
+ *
6
+ * @import "@tradalab/lyra/styles.css";
7
+ *
8
+ * It pulls in Tailwind v4, tw-animate-css, and the shadcn radix-lyra base,
9
+ * then declares the design tokens, light/dark palette, and the global base
10
+ * layer (border + body bg).
11
+ */
12
+
13
+ @import "tailwindcss";
14
+ @import "tw-animate-css";
15
+ @import "shadcn/tailwind.css";
16
+
17
+ /*
18
+ * Tailwind v4 auto-discovers content from the consumer's project root but
19
+ * skips `node_modules`. lyra's UI primitives (Sidebar, Dialog, Drawer, …)
20
+ * ship as pre-bundled JS in `dist/`, so without this directive Tailwind
21
+ * would never see their utility classes and they would render unstyled in
22
+ * any consuming app.
23
+ */
24
+ @source "../dist";
25
+
26
+ @custom-variant dark (&:is(.dark *));
27
+
28
+ @theme inline {
29
+ --color-background: var(--background);
30
+ --color-foreground: var(--foreground);
31
+ --font-sans: var(--font-sans);
32
+ --font-mono: var(--font-geist-mono);
33
+ --font-heading: var(--font-sans);
34
+ --color-sidebar-ring: var(--sidebar-ring);
35
+ --color-sidebar-border: var(--sidebar-border);
36
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
37
+ --color-sidebar-accent: var(--sidebar-accent);
38
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
39
+ --color-sidebar-primary: var(--sidebar-primary);
40
+ --color-sidebar-foreground: var(--sidebar-foreground);
41
+ --color-sidebar: var(--sidebar);
42
+ --color-chart-5: var(--chart-5);
43
+ --color-chart-4: var(--chart-4);
44
+ --color-chart-3: var(--chart-3);
45
+ --color-chart-2: var(--chart-2);
46
+ --color-chart-1: var(--chart-1);
47
+ --color-ring: var(--ring);
48
+ --color-input: var(--input);
49
+ --color-border: var(--border);
50
+ --color-destructive: var(--destructive);
51
+ --color-accent-foreground: var(--accent-foreground);
52
+ --color-accent: var(--accent);
53
+ --color-muted-foreground: var(--muted-foreground);
54
+ --color-muted: var(--muted);
55
+ --color-secondary-foreground: var(--secondary-foreground);
56
+ --color-secondary: var(--secondary);
57
+ --color-primary-foreground: var(--primary-foreground);
58
+ --color-primary: var(--primary);
59
+ --color-popover-foreground: var(--popover-foreground);
60
+ --color-popover: var(--popover);
61
+ --color-card-foreground: var(--card-foreground);
62
+ --color-card: var(--card);
63
+ --radius-sm: calc(var(--radius) * 0.6);
64
+ --radius-md: calc(var(--radius) * 0.8);
65
+ --radius-lg: var(--radius);
66
+ --radius-xl: calc(var(--radius) * 1.4);
67
+ --radius-2xl: calc(var(--radius) * 1.8);
68
+ --radius-3xl: calc(var(--radius) * 2.2);
69
+ --radius-4xl: calc(var(--radius) * 2.6);
70
+ }
71
+
72
+ :root {
73
+ --background: oklch(1 0 0);
74
+ --foreground: oklch(0.145 0 0);
75
+ --card: oklch(1 0 0);
76
+ --card-foreground: oklch(0.145 0 0);
77
+ --popover: oklch(1 0 0);
78
+ --popover-foreground: oklch(0.145 0 0);
79
+ --primary: oklch(0.205 0 0);
80
+ --primary-foreground: oklch(0.985 0 0);
81
+ --secondary: oklch(0.97 0 0);
82
+ --secondary-foreground: oklch(0.205 0 0);
83
+ --muted: oklch(0.97 0 0);
84
+ --muted-foreground: oklch(0.556 0 0);
85
+ --accent: oklch(0.97 0 0);
86
+ --accent-foreground: oklch(0.205 0 0);
87
+ --destructive: oklch(0.577 0.245 27.325);
88
+ --border: oklch(0.922 0 0);
89
+ --input: oklch(0.922 0 0);
90
+ --ring: oklch(0.708 0 0);
91
+ --chart-1: oklch(0.87 0 0);
92
+ --chart-2: oklch(0.556 0 0);
93
+ --chart-3: oklch(0.439 0 0);
94
+ --chart-4: oklch(0.371 0 0);
95
+ --chart-5: oklch(0.269 0 0);
96
+ --radius: 0.625rem;
97
+ --sidebar: oklch(0.985 0 0);
98
+ --sidebar-foreground: oklch(0.145 0 0);
99
+ --sidebar-primary: oklch(0.205 0 0);
100
+ --sidebar-primary-foreground: oklch(0.985 0 0);
101
+ --sidebar-accent: oklch(0.97 0 0);
102
+ --sidebar-accent-foreground: oklch(0.205 0 0);
103
+ --sidebar-border: oklch(0.922 0 0);
104
+ --sidebar-ring: oklch(0.708 0 0);
105
+ }
106
+
107
+ .dark {
108
+ --background: oklch(0.145 0 0);
109
+ --foreground: oklch(0.985 0 0);
110
+ --card: oklch(0.205 0 0);
111
+ --card-foreground: oklch(0.985 0 0);
112
+ --popover: oklch(0.205 0 0);
113
+ --popover-foreground: oklch(0.985 0 0);
114
+ --primary: oklch(0.922 0 0);
115
+ --primary-foreground: oklch(0.205 0 0);
116
+ --secondary: oklch(0.269 0 0);
117
+ --secondary-foreground: oklch(0.985 0 0);
118
+ --muted: oklch(0.269 0 0);
119
+ --muted-foreground: oklch(0.708 0 0);
120
+ --accent: oklch(0.269 0 0);
121
+ --accent-foreground: oklch(0.985 0 0);
122
+ --destructive: oklch(0.704 0.191 22.216);
123
+ --border: oklch(1 0 0 / 10%);
124
+ --input: oklch(1 0 0 / 15%);
125
+ --ring: oklch(0.556 0 0);
126
+ --chart-1: oklch(0.87 0 0);
127
+ --chart-2: oklch(0.556 0 0);
128
+ --chart-3: oklch(0.439 0 0);
129
+ --chart-4: oklch(0.371 0 0);
130
+ --chart-5: oklch(0.269 0 0);
131
+ --sidebar: oklch(0.205 0 0);
132
+ --sidebar-foreground: oklch(0.985 0 0);
133
+ --sidebar-primary: oklch(0.488 0.243 264.376);
134
+ --sidebar-primary-foreground: oklch(0.985 0 0);
135
+ --sidebar-accent: oklch(0.269 0 0);
136
+ --sidebar-accent-foreground: oklch(0.985 0 0);
137
+ --sidebar-border: oklch(1 0 0 / 10%);
138
+ --sidebar-ring: oklch(0.556 0 0);
139
+ }
140
+
141
+ @layer base {
142
+ * {
143
+ @apply border-border outline-ring/50;
144
+ }
145
+ body {
146
+ @apply bg-background text-foreground;
147
+ }
148
+ html {
149
+ @apply font-sans;
150
+ }
151
+ }