dibk-design 10.3.5 → 10.5.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 +27 -2
- package/dist/dibk-design.css +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +149 -12
- package/dist/index.es.js +3450 -3350
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/theme.css +95 -0
- package/dist/tokens.css +95 -0
- package/package.json +27 -12
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
|
|
70
|
+
1. Import the CSS entrypoint in your `globals.css`
|
|
47
71
|
|
|
48
72
|
```css
|
|
49
|
-
@import
|
|
73
|
+
@import "tailwindcss";
|
|
74
|
+
@import "dibk-design/theme.css";
|
|
50
75
|
```
|
|
51
76
|
|
|
52
77
|
2. Import component from the library
|