dibk-design 10.4.0 → 10.5.1

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 CHANGED
@@ -41,12 +41,37 @@ Builds the Storybook as a static web application. The output is saved to the `/s
41
41
  pnpm run build-storybook
42
42
  ```
43
43
 
44
+ ## Styles & tokens
45
+
46
+ This package ships two CSS entrypoints:
47
+
48
+ - `dibk-design/theme.css` — Tailwind-friendly theme tokens (via `@theme`)
49
+ - `dibk-design/tokens.css` — plain CSS variables for non-Tailwind apps
50
+
51
+ ### Use with Tailwind (recommended)
52
+
53
+ Import the theme tokens in your global CSS:
54
+
55
+ ```css
56
+ @import "tailwindcss";
57
+ @import "dibk-design/theme.css";
58
+ ```
59
+
60
+ ### Use without Tailwind
61
+
62
+ Import the plain tokens instead:
63
+
64
+ ```css
65
+ @import "dibk-design/tokens.css";
66
+ ```
67
+
44
68
  ## Use with Next.js
45
69
 
46
- 1. Import `dibk-design.css` file in your `globals.css`
70
+ 1. Import the CSS entrypoint in your `globals.css`
47
71
 
48
72
  ```css
49
- @import './node_modules/dibk-design/dist/dibk-design.css';
73
+ @import "tailwindcss";
74
+ @import "dibk-design/theme.css";
50
75
  ```
51
76
 
52
77
  2. Import component from the library