basalt-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.
package/README.md ADDED
@@ -0,0 +1,711 @@
1
+ # Basalt UI
2
+
3
+ [![npm version](https://img.shields.io/npm/v/basalt-ui.svg)](https://www.npmjs.com/package/basalt-ui)
4
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/jkrumm/basalt-ui/blob/master/LICENSE)
5
+
6
+ > Design system for the modern stack. One Tailwind theme that makes your components, docs, and charts look like they belong together.
7
+
8
+ **[Documentation](https://basalt-ui.com)** ยท **[GitHub](https://github.com/jkrumm/basalt-ui)** ยท **[npm](https://www.npmjs.com/package/basalt-ui)**
9
+
10
+ Building modern apps often means combining ShadCN components, Starlight docs, Tremor dashboards, and more โ€” each with its own styling.
11
+
12
+ Basalt UI is a single Tailwind CSS theme that brings them all together. Import once, get consistent design everywhere. More integrations are on the way.
13
+
14
+ ### Why Basalt UI?
15
+
16
+ Most teams don't use just one UI tool anymore.
17
+
18
+ You combine component libraries, documentation frameworks, and charting tools โ€” and they rarely look like they belong together.
19
+
20
+ Basalt UI solves this with a single Tailwind configuration that works across your stack.
21
+
22
+ No rewrites. No heavy abstractions. Just consistent design, everywhere.
23
+
24
+ ### What Basalt UI gives you
25
+
26
+ - One Tailwind theme shared across apps, docs, and dashboards
27
+ - Out-of-the-box support for ShadCN, Starlight, and Tremor
28
+ - Matching light and dark modes by default
29
+ - A consistent look without custom glue code
30
+
31
+ More integrations will be added over time.
32
+
33
+ ---
34
+
35
+ ## Quick Start
36
+
37
+ ### Installation
38
+
39
+ ```bash
40
+ bun add basalt-ui
41
+ # or
42
+ npm install basalt-ui
43
+ ```
44
+
45
+ ### Setup
46
+
47
+ Import the CSS in your main file:
48
+
49
+ ```css
50
+ /* src/index.css or app/globals.css */
51
+ @import "basalt-ui";
52
+ ```
53
+
54
+ Add dark mode support to your HTML:
55
+
56
+ ```html
57
+ <html class="dark">
58
+ <!-- Your app -->
59
+ </html>
60
+ ```
61
+
62
+ ### Use It
63
+
64
+ **Content areas** - Use `.prose` for automatic semantic styling:
65
+
66
+ ```html
67
+ <article class="prose">
68
+ <h2>Section Title</h2>
69
+ <p>This paragraph looks great with <a href="#">automatic styling</a>.</p>
70
+ <code>inline code</code> and <pre><code>code blocks</code></pre>
71
+ </article>
72
+ ```
73
+
74
+ **UI components** - Use defined utilities (no global conflicts):
75
+
76
+ ```html
77
+ <div class="p-4 bg-card text-foreground rounded-lg shadow">
78
+ <h3 class="text-h3 font-bold">Card Title</h3>
79
+ <p class="text-muted-foreground">Card content</p>
80
+ </div>
81
+ ```
82
+
83
+ ---
84
+
85
+ ## The Basalt UI Difference
86
+
87
+ ### Before (Standard Tailwind + Global Styles)
88
+
89
+ ```html
90
+ <!-- Global styles conflict with components -->
91
+ <article>
92
+ <h2>Section Title</h2> <!-- Always styled globally -->
93
+ <Table> <!-- Inherits global table styles -->
94
+ <TableHeader>...</TableHeader> <!-- Styling conflicts! -->
95
+ </Table>
96
+ </article>
97
+ ```
98
+
99
+ **Problems:**
100
+ - Global semantic HTML styles conflict with component libraries
101
+ - Arbitrary values everywhere (`text-[17px]`, `p-[13px]`)
102
+ - Tremor/ShadCN components inherit unwanted styles
103
+ - Inconsistent spacing and sizing
104
+
105
+ ### After (Basalt UI)
106
+
107
+ ```html
108
+ <!-- Content areas: Use .prose -->
109
+ <article class="prose">
110
+ <h2>Section Title</h2> <!-- Styled within .prose -->
111
+ <p>Perfect typography...</p>
112
+ </article>
113
+
114
+ <!-- Components: Clean, no conflicts -->
115
+ <Table> <!-- No inherited styles -->
116
+ <TableHeader>...</TableHeader> <!-- Works perfectly -->
117
+ </Table>
118
+
119
+ <!-- Custom UI: Defined tokens -->
120
+ <div class="p-4 rounded-md">
121
+ <p class="text-h3">Use semantic sizes</p>
122
+ </div>
123
+ ```
124
+
125
+ **Benefits:**
126
+ - `.prose` for content, clean components for UI
127
+ - No conflicts with ShadCN/Tremor
128
+ - Consistent, predictable tokens only
129
+ - Design system enforces consistency
130
+
131
+ ---
132
+
133
+ ## Color System
134
+
135
+ ### Foundation Palette Architecture
136
+
137
+ Basalt UI uses a **three-layer color system** inspired by Nord's architecture:
138
+
139
+ **1. Foundation Palette** โ†’ Core OKLCH values defined once
140
+ **2. Semantic Tokens** โ†’ Meaningful names that reference foundation
141
+ **3. UI Utilities** โ†’ Tailwind classes that use semantic tokens
142
+
143
+ This DRY approach means changing `--light-2` once updates the background across your entire light mode.
144
+
145
+ #### Light Tones
146
+ Light mode backgrounds, dark mode text, elevated surfaces:
147
+
148
+ ```css
149
+ light-1 /* oklch(0.99 0.002 90) - Brightest (cards, popovers) */
150
+ light-2 /* oklch(0.985 0.002 90) - Main background (light mode) */
151
+ light-3 /* oklch(0.96 0.004 270) - Muted backgrounds */
152
+ light-4 /* oklch(0.93 0.005 270) - Borders, inputs */
153
+ ```
154
+
155
+ #### Dark Tones
156
+ Dark mode backgrounds, light mode text:
157
+
158
+ ```css
159
+ dark-1 /* oklch(0.195 0.012 285) - Near-black (reserved) */
160
+ dark-2 /* oklch(0.24 0.012 285) - Main background (dark mode) */
161
+ dark-3 /* oklch(0.26 0.012 285) - Cards (dark mode) */
162
+ dark-4 /* oklch(0.31 0.012 285) - Borders, muted (dark mode) */
163
+ ```
164
+
165
+ #### Text Tones
166
+ Subdued text for secondary information:
167
+
168
+ ```css
169
+ text-subdued-light /* oklch(0.5 0.014 285) - Muted text (light mode) */
170
+ text-subdued-dark /* oklch(0.8 0.012 285) - Muted text (dark mode) */
171
+ ```
172
+
173
+ #### Extreme Tones
174
+ High contrast text:
175
+
176
+ ```css
177
+ white /* oklch(0.99 0.002 90) - Text on dark backgrounds */
178
+ ```
179
+
180
+ ### Semantic Tokens (Reference Foundation)
181
+
182
+ Semantic tokens provide meaningful names and reference the foundation palette:
183
+
184
+ ```css
185
+ /* Light Mode */
186
+ background /* var(--light-2) - Main background */
187
+ foreground /* var(--dark-4) - Primary text */
188
+ card /* var(--light-1) - Elevated surfaces */
189
+ muted /* var(--light-3) - Subtle backgrounds */
190
+ border /* var(--light-4) - Borders, dividers */
191
+ muted-foreground /* var(--text-subdued-light) - Secondary text */
192
+
193
+ /* Dark Mode */
194
+ background /* var(--dark-2) - Main background */
195
+ foreground /* var(--light-3) - Soft white */
196
+ card /* var(--dark-3) - Elevated surfaces */
197
+ muted /* var(--dark-4) - Subtle backgrounds */
198
+ border /* var(--dark-4) - Borders, dividers */
199
+ muted-foreground /* var(--text-subdued-dark) - Secondary text */
200
+ ```
201
+
202
+ **Why this matters:** Change `--light-2` once โ†’ updates background across light mode everywhere.
203
+
204
+ #### Blue Primary
205
+
206
+ Professional, trustworthy accent for interactive elements:
207
+
208
+ ```css
209
+ blue /* oklch(0.6965 0.0591 248.69) - Primary blue */
210
+ blue-foreground /* oklch(0.99 0.002 90) - White text on blue */
211
+
212
+ blue-light /* oklch(0.78 0.045 249) - Hover states */
213
+ blue-light-foreground /* oklch(0.265 0.015 285) - Dark text on blue-light */
214
+
215
+ blue-deep /* oklch(0.5944 0.0772 254.03) - Strong emphasis */
216
+ blue-deep-foreground /* oklch(0.99 0.002 90) - White text on blue-deep */
217
+ ```
218
+
219
+ #### Expressive Colors
220
+
221
+ Expressive, semantic colors for errors, warnings, success, and special states:
222
+
223
+ ```css
224
+ red /* oklch(0.6061 0.1206 15.34) - Errors, destructive actions */
225
+ red-foreground /* oklch(0.99 0.002 90) - White text on red */
226
+
227
+ orange /* oklch(0.6929 0.0963 38.24) - Warnings, annotations */
228
+ orange-foreground /* oklch(0.265 0.015 285) - Dark text on orange */
229
+
230
+ yellow /* oklch(0.8549 0.0892 84.09) - Caution, highlights */
231
+ yellow-foreground /* oklch(0.265 0.015 285) - Dark text on yellow */
232
+
233
+ green /* oklch(0.7683 0.0749 131.06) - Success, confirmations */
234
+ green-foreground /* oklch(0.265 0.015 285) - Dark text on green */
235
+
236
+ purple /* oklch(0.6921 0.0625 332.66) - Special features */
237
+ purple-foreground /* oklch(0.99 0.002 90) - White text on purple */
238
+ ```
239
+
240
+ #### Sequential Chart Palette
241
+
242
+ 8 blue tones for data visualization with perceptual uniformity:
243
+
244
+ ```css
245
+ chart-blue-1 /* oklch(0.90 0.030 249) - Lightest */
246
+ chart-blue-2 /* oklch(0.80 0.040 249) */
247
+ chart-blue-3 /* oklch(0.72 0.050 249) */
248
+ chart-blue-4 /* oklch(0.65 0.059 249) */
249
+ chart-blue-5 /* oklch(0.58 0.065 249) */
250
+ chart-blue-6 /* oklch(0.50 0.070 249) */
251
+ chart-blue-7 /* oklch(0.42 0.075 249) */
252
+ chart-blue-8 /* oklch(0.34 0.077 249) - Darkest */
253
+ ```
254
+
255
+ Progressive lightness with gradually increasing chroma for perceptual uniformity. All adjacent colors exceed WCAG 3:1 contrast requirements.
256
+
257
+ ### Why OKLCH?
258
+
259
+ **HSL Problems:**
260
+ ```css
261
+ /* HSL: uneven perceived brightness */
262
+ background: hsl(0, 0%, 50%);
263
+ primary: hsl(120, 50%, 50%);
264
+ /* These look completely different brightness! */
265
+ ```
266
+
267
+ **OKLCH Solution:**
268
+ ```css
269
+ /* OKLCH: perceptually uniform */
270
+ background: oklch(0.50 0 0);
271
+ primary: oklch(0.50 0.10 135);
272
+ /* These look similar brightness โœ“ */
273
+ ```
274
+
275
+ Changes in L (lightness) and C (chroma) values match what your eyes perceive. No surprise gray zones in gradients.
276
+
277
+ ---
278
+
279
+ ## Typography
280
+
281
+ ### Opt-In with `.prose`
282
+
283
+ Basalt UI uses the official `@tailwindcss/typography` plugin configured with Basalt design tokens.
284
+
285
+ **Content areas** (blog posts, articles, documentation):
286
+ ```html
287
+ <article class="prose">
288
+ <h1>Primary Heading</h1>
289
+ <h2>Section Header</h2>
290
+ <p>Automatically styled paragraphs with <a href="#">links</a>.</p>
291
+ <code>inline code</code>
292
+ <pre><code>code blocks</code></pre>
293
+ </article>
294
+ ```
295
+
296
+ **Component libraries** (ShadCN, Tremor, app UI):
297
+ ```html
298
+ <!-- No .prose class - components style themselves -->
299
+ <Table>...</Table>
300
+ <Button>Click Me</Button>
301
+ <nav><a href="#">Link</a></nav>
302
+ ```
303
+
304
+ ### Why Not Global Styling?
305
+
306
+ Global semantic HTML defaults conflict with component libraries:
307
+ - Tremor Table expects unstyled `<table>` elements
308
+ - ShadCN Button shouldn't inherit link `<a>` styles
309
+ - Navigation links don't want automatic blue underlines
310
+
311
+ ### Automatic Dark Mode
312
+
313
+ The `.prose` class uses Basalt CSS variables, so **no `dark:prose-invert` needed**:
314
+
315
+ ```html
316
+ <body class="dark">
317
+ <article class="prose">
318
+ <!-- Text colors switch automatically -->
319
+ </article>
320
+ </body>
321
+ ```
322
+
323
+ ### Font Stack
324
+
325
+ - **Headings**: Lato (700) - Modern, geometric, professional
326
+ - **Body**: Nunito Sans (400) - Rounded, friendly, readable
327
+ - **Mono**: JetBrains Mono (400) - Clear, developer-friendly
328
+
329
+ ### Utility Classes
330
+
331
+ For custom layouts outside `.prose`:
332
+
333
+ ```html
334
+ <div class="text-display">Hero Text (64px)</div>
335
+ <div class="text-hero">Subhero (48px)</div>
336
+ <h2 class="text-h2">Manual heading (32px)</h2>
337
+ <span class="text-small">Metadata (14px)</span>
338
+ <span class="text-caption">Fine print (12px)</span>
339
+ ```
340
+
341
+ **No arbitrary values:**
342
+ - โœ… `text-h2`, `text-body`, `text-small`
343
+ - โŒ `text-lg`, `text-xl`, `text-[17px]`
344
+
345
+ ---
346
+
347
+ ## Spacing System
348
+
349
+ Based on 4px increments, limited to purposeful values:
350
+
351
+ ```
352
+ p-0 (0px) p-1 (4px) p-2 (8px) p-3 (12px)
353
+ p-4 (16px) p-5 (20px) p-6 (24px) p-8 (32px)
354
+ p-10 (40px) p-12 (48px) p-16 (64px) p-20 (80px)
355
+ p-24 (96px) p-32 (128px)
356
+ ```
357
+
358
+ **What's missing?** `p-7`, `p-9`, `p-11`, `p-13-15`, `p-17-19`, etc.
359
+
360
+ **Why?** Force consistency. If you need a spacing value that's not defined, it's probably inconsistent with the design system.
361
+
362
+ ---
363
+
364
+ ## Restrictions
365
+
366
+ Basalt UI is **opinionated**. It disables arbitrary values and infinite scales.
367
+
368
+ ### What Works โœ…
369
+
370
+ ```html
371
+ <!-- Content areas with .prose -->
372
+ <article class="prose">
373
+ <h2>Section Title</h2>
374
+ <p>Automatically styled</p>
375
+ </article>
376
+
377
+ <!-- Defined tokens -->
378
+ <div class="p-4 text-body font-bold bg-primary">
379
+
380
+ <!-- ShadCN/Tremor components (no conflicts) -->
381
+ <Button variant="default">Click Me</Button>
382
+ <Table>...</Table>
383
+ ```
384
+
385
+ ### What Doesn't Work โŒ
386
+
387
+ ```html
388
+ <!-- Arbitrary values (disabled) -->
389
+ <div class="p-[13px]"> โŒ
390
+ <div class="text-[17px]"> โŒ
391
+ <div class="bg-[#f3f3f3]"> โŒ
392
+
393
+ <!-- Undefined utilities -->
394
+ <div class="p-7"> โŒ (use p-6 or p-8)
395
+ <div class="text-lg"> โŒ (use text-h4 or text-small)
396
+ <div class="font-semibold"> โŒ (use font-regular or font-bold)
397
+ ```
398
+
399
+ This is **intentional**. Consistency > flexibility.
400
+
401
+ ---
402
+
403
+ ## Component Library Compatibility
404
+
405
+ ### ShadCN UI
406
+
407
+ Basalt UI works seamlessly with ShadCN UI. All required tokens are defined:
408
+
409
+ ```bash
410
+ # Install ShadCN
411
+ npx shadcn@latest init
412
+
413
+ # Choose "Zinc" as base color
414
+ # ShadCN components will use Basalt UI's volcanic palette
415
+ ```
416
+
417
+ Components automatically use:
418
+ - Basalt color tokens
419
+ - Restricted spacing scale
420
+ - Semantic typography
421
+ - Defined border radius
422
+
423
+ ### Tremor Raw
424
+
425
+ Basalt UI includes **full compatibility** with [Tremor Raw](https://tremor.so) chart components through automatic gray palette overrides:
426
+
427
+ ```tsx
428
+ import { AreaChart } from '@tremor/react';
429
+
430
+ <AreaChart
431
+ data={chartData}
432
+ index="date"
433
+ categories={['sales']}
434
+ colors={['blue']} // Uses Basalt UI's OKLCH blue
435
+ />
436
+ ```
437
+
438
+ **How it works:**
439
+ - Basalt overrides Tailwind's default gray scale (`white`, `black`, `gray-50` through `gray-950`)
440
+ - Tremor's hardcoded classes (`bg-white`, `text-gray-500`, `dark:bg-gray-950`) automatically use Basalt colors
441
+ - No manual theme configuration needed in Tremor components
442
+
443
+ **Supported chart colors:**
444
+ - Named: `blue`, `red`, `emerald` (green), `amber` (yellow), `violet` (purple), `cyan`, `indigo`
445
+ - Sequential: `chart-blue-1` through `chart-blue-8` (lightness progression)
446
+ - Color shades: `blue-50` through `blue-950` for all chart colors
447
+
448
+ **Tremor semantic tokens:**
449
+ All Tremor tokens (`tremor-brand`, `tremor-background`, `tremor-content`, etc.) are mapped to Basalt's OKLCH foundation palette with proper light/dark mode support.
450
+
451
+ ---
452
+
453
+ ## Dark Mode
454
+
455
+ Toggle dark mode by adding/removing the `dark` class:
456
+
457
+ ```html
458
+ <html class="dark">
459
+ <!-- Dark mode active -->
460
+ </html>
461
+ ```
462
+
463
+ All colors automatically adjust to warm, comfortable dark mode values.
464
+
465
+ **Light mode:** Warm whites, rich dark grays
466
+ **Dark mode:** Deep warm grays, soft whites
467
+
468
+ Both modes avoid stark extremes for comfortable, professional interfaces.
469
+
470
+ ---
471
+
472
+ ## Available Utilities
473
+
474
+ ### Colors
475
+
476
+ ```css
477
+ /* Foundation Palette */
478
+ bg-light-1, bg-light-2, bg-light-3, bg-light-4
479
+ bg-dark-1, bg-dark-2, bg-dark-3, bg-dark-4
480
+ text-white
481
+
482
+ /* Semantic Backgrounds */
483
+ bg-background, bg-card, bg-muted, bg-primary
484
+ bg-blue, bg-blue-light, bg-blue-deep
485
+ bg-red, bg-orange, bg-yellow, bg-green, bg-purple
486
+
487
+ /* Text (always pair with background) */
488
+ text-foreground, text-muted-foreground
489
+ text-primary-foreground, text-secondary-foreground
490
+ text-blue-foreground, text-blue-light-foreground, text-blue-deep-foreground
491
+ text-red-foreground, text-orange-foreground, text-yellow-foreground
492
+ text-green-foreground, text-purple-foreground
493
+
494
+ /* Borders */
495
+ border-border, border-input, border-primary
496
+
497
+ /* Focus rings */
498
+ ring-ring, ring-primary
499
+
500
+ /* Sequential Charts */
501
+ bg-chart-blue-1, bg-chart-blue-2, ... bg-chart-blue-8
502
+
503
+ /* Tailwind Gray Overrides (for Tremor compatibility) */
504
+ bg-white, bg-black
505
+ bg-gray-50, bg-gray-100, bg-gray-200, bg-gray-300
506
+ bg-gray-400, bg-gray-500, bg-gray-600, bg-gray-700
507
+ bg-gray-800, bg-gray-900, bg-gray-950
508
+ /* Automatically mapped to Basalt foundation palette */
509
+
510
+ /* Chart Color Shades (for Tremor charts) */
511
+ bg-blue-50 through bg-blue-950
512
+ bg-red-50 through bg-red-950
513
+ bg-emerald-50 through bg-emerald-950
514
+ bg-amber-50 through bg-amber-950
515
+ bg-violet-50 through bg-violet-950
516
+ bg-cyan-50 through bg-cyan-950
517
+ bg-indigo-50 through bg-indigo-950
518
+ ```
519
+
520
+ ### Typography
521
+
522
+ ```css
523
+ /* Sizes (semantic) */
524
+ text-display, text-hero, text-h1, text-h2, text-h3, text-h4, text-h5, text-h6
525
+ text-body, text-small, text-caption
526
+
527
+ /* Families */
528
+ font-heading, font-body, font-mono
529
+
530
+ /* Weights */
531
+ font-regular, font-bold
532
+
533
+ /* Letter spacing */
534
+ tracking-tight, tracking-normal, tracking-wide
535
+ ```
536
+
537
+ ### Spacing
538
+
539
+ ```css
540
+ /* Padding/Margin */
541
+ p-0, p-1, p-2, p-3, p-4, p-5, p-6, p-8, p-10, p-12, p-16, p-20, p-24, p-32
542
+ m-0, m-1, m-2, m-3, m-4, m-5, m-6, m-8, m-10, m-12, m-16, m-20, m-24, m-32
543
+
544
+ /* Gap (flexbox/grid) */
545
+ gap-0, gap-1, gap-2, gap-3, gap-4, gap-5, gap-6, gap-8, gap-10, gap-12
546
+ ```
547
+
548
+ ### Border Radius
549
+
550
+ ```css
551
+ rounded-none, rounded-sm, rounded-md, rounded, rounded-lg, rounded-xl, rounded-full
552
+ ```
553
+
554
+ ### Shadows
555
+
556
+ ```css
557
+ shadow-sm, shadow, shadow-md, shadow-lg, shadow-xl
558
+ ```
559
+
560
+ ---
561
+
562
+ ## Customization
563
+
564
+ Want to adjust colors for your brand? Fork and modify `src/index.css`:
565
+
566
+ ```css
567
+ :root {
568
+ /* Adjust OKLCH values */
569
+ --primary: oklch(0.58 0.10 135); /* Change hue/chroma/lightness */
570
+ --destructive: oklch(0.58 0.18 35);
571
+ }
572
+
573
+ .dark {
574
+ /* Adjust dark mode */
575
+ --primary: oklch(0.68 0.11 135); /* Lighter for dark backgrounds */
576
+ }
577
+ ```
578
+
579
+ **Keep the philosophy:**
580
+ - Use OKLCH color space
581
+ - Maintain perceptual uniformity
582
+ - Preserve semantic HTML defaults
583
+ - Keep restrictions (no arbitrary values)
584
+
585
+ ---
586
+
587
+ ## Examples
588
+
589
+ ### Card Component
590
+
591
+ ```html
592
+ <div class="bg-card p-6 rounded-lg shadow">
593
+ <h3 class="text-h3 font-bold">Card Title</h3>
594
+ <p class="text-muted-foreground">Card description text.</p>
595
+ <button class="bg-primary text-primary-foreground px-4 py-2 rounded">
596
+ Action
597
+ </button>
598
+ </div>
599
+ ```
600
+
601
+ ### Hero Section
602
+
603
+ ```html
604
+ <header class="p-16 bg-background">
605
+ <h1 class="text-display font-heading font-bold tracking-tight">
606
+ Welcome to Your App
607
+ </h1>
608
+ <p class="text-h3 text-muted-foreground">
609
+ Build something amazing with Basalt UI.
610
+ </p>
611
+ </header>
612
+ ```
613
+
614
+ ### Alert Component
615
+
616
+ ```html
617
+ <!-- Error alert with proper text pairing -->
618
+ <div class="bg-destructive text-destructive-foreground p-4 rounded">
619
+ <h4 class="text-h4 font-bold">Error</h4>
620
+ <p class="text-small">Something went wrong. Please try again.</p>
621
+ </div>
622
+
623
+ <!-- Success alert -->
624
+ <div class="bg-green text-green-foreground p-4 rounded">
625
+ <h4 class="text-h4 font-bold">Success</h4>
626
+ <p class="text-small">Your changes have been saved.</p>
627
+ </div>
628
+
629
+ <!-- Warning alert -->
630
+ <div class="bg-orange text-orange-foreground p-4 rounded">
631
+ <h4 class="text-h4 font-bold">Warning</h4>
632
+ <p class="text-small">Please review your input before continuing.</p>
633
+ </div>
634
+ ```
635
+
636
+ ---
637
+
638
+ ## Why "Basalt UI"?
639
+
640
+ Basalt is a volcanic rock formed from cooled lava. It's:
641
+ - **Strong and foundational** - Like a mature design system
642
+ - **Natural and earthy** - Inspiring the zinc + nature accent palette
643
+ - **Structured but organic** - Restrictive yet beautiful
644
+
645
+ The design system embodies this aesthetic: professional structure with warm, natural character.
646
+
647
+ ---
648
+
649
+ ## Use Cases
650
+
651
+ Perfect for:
652
+ - ๐Ÿ“Š **Dashboards** - Clean, data-focused interfaces
653
+ - ๐Ÿ“ **Content platforms** - Blogs, documentation, marketing sites
654
+ - ๐Ÿ› ๏ธ **SaaS applications** - Professional, warm, accessible
655
+ - ๐ŸŽจ **Design showcases** - Demonstrates thoughtful design system architecture
656
+
657
+ Not ideal for:
658
+ - ๐ŸŽฎ Gaming interfaces (too restrained)
659
+ - ๐ŸŽจ Highly artistic sites (needs more flexibility)
660
+ - ๐ŸŒˆ Colorful, playful brands (neutral-focused palette)
661
+
662
+ ---
663
+
664
+ ## Requirements
665
+
666
+ - **Tailwind CSS v4+** (uses `@theme inline` syntax)
667
+ - Modern browser with OKLCH support (Chrome, Edge, Safari, Firefox 2023+)
668
+ - No additional dependencies
669
+
670
+ ---
671
+
672
+ ## Documentation
673
+
674
+ - [Full Design System Documentation](./CLAUDE.md) - Philosophy, architecture, guidelines
675
+ - [Web Showcase](../../apps/web) - Interactive examples and component gallery
676
+
677
+ ---
678
+
679
+ ## Contributing
680
+
681
+ Basalt UI is **opinionated by design**. Contributions should:
682
+
683
+ 1. Maintain restrictive philosophy
684
+ 2. Use OKLCH for all colors
685
+ 3. Preserve semantic HTML defaults
686
+ 4. Follow volcanic nature aesthetic
687
+ 5. Document changes in CLAUDE.md
688
+
689
+ Open an issue before major changes to discuss alignment with project philosophy.
690
+
691
+ ---
692
+
693
+ ## License
694
+
695
+ MIT License - Use freely, modify as needed, keep attribution.
696
+
697
+ ---
698
+
699
+ ## Inspiration
700
+
701
+ - **Color Science**: OKLCH color space, Bjรถrn Ottosson's Oklab
702
+ - **Nord Theme**: Inspired by expressive color approach for syntax highlighting
703
+ - **Nature**: Volcanic landscapes, basalt formations, natural materials
704
+ - **Design Systems**: ShadCN UI, Radix Colors, Tailwind Zinc
705
+ - **Philosophy**: Restrictive design, semantic HTML, mature consistency
706
+
707
+ ---
708
+
709
+ **Built with intention. Designed for consistency. Inspired by nature.**
710
+
711
+ ๐ŸŒ‹ Basalt UI - Where volcanic aesthetics meet modern design systems.