You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/datum-ui/README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ pnpm add @datum-cloud/datum-ui
14
14
bun add @datum-cloud/datum-ui
15
15
```
16
16
17
+
## Requirements
18
+
19
+
-**React 19**
20
+
-**Tailwind CSS v4.0.7+** (v4.2.1+ recommended)
21
+
17
22
## Setup
18
23
19
24
### 1. Import Styles
@@ -24,9 +29,13 @@ Add datum-ui styles to your CSS file, after Tailwind:
24
29
/* app.css */
25
30
@import'tailwindcss';
26
31
@import'@datum-cloud/datum-ui/styles';
32
+
33
+
/* Optional — import only if you use these components */
34
+
@import'@datum-cloud/datum-ui/grid';
35
+
@import'@datum-cloud/datum-ui/nprogress';
27
36
```
28
37
29
-
This loads all design tokens, theme variables, fonts, and component styles. Tokens are registered with Tailwind via `@theme inline`, so utilities like `bg-primary` and `text-foreground` work automatically.
38
+
datum-ui ships uncompiled CSS that is processed by your Tailwind build in a single pass. The styles import automatically configures Tailwind to scan datum-ui's components for class usage via `@source`, so utilities like `bg-primary` and `text-foreground` work out of the box.
30
39
31
40
### 2. Add ThemeProvider
32
41
@@ -58,14 +67,16 @@ This keeps your bundle small and means you only install peer dependencies for th
0 commit comments