@moto-nrw/design-system 0.2.3 → 0.3.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 CHANGED
@@ -59,7 +59,7 @@ pnpm add @moto-nrw/design-system lucide-react
59
59
 
60
60
  No `.npmrc` needed — the package is on npmjs.com.
61
61
 
62
- ### 2. Import Tokens
62
+ ### 2. Import Styles
63
63
 
64
64
  For **Tailwind v4** consumers (recommended):
65
65
 
@@ -67,6 +67,13 @@ For **Tailwind v4** consumers (recommended):
67
67
  /* globals.css */
68
68
  @import "tailwindcss";
69
69
  @import "@moto-nrw/design-system/tailwind";
70
+ @source "../node_modules/@moto-nrw/design-system/dist";
71
+ ```
72
+
73
+ For apps that want the prebuilt stylesheet instead:
74
+
75
+ ```css
76
+ @import "@moto-nrw/design-system/styles";
70
77
  ```
71
78
 
72
79
  Or import CSS variables directly:
@@ -95,8 +102,9 @@ function Example() {
95
102
 
96
103
  ```tsx
97
104
  import { Button, Card, ... } from "@moto-nrw/design-system"; // components
105
+ import "@moto-nrw/design-system/styles"; // prebuilt component CSS
98
106
  import "@moto-nrw/design-system/tokens"; // CSS variables
99
- import "@moto-nrw/design-system/tailwind"; // Tailwind v4 theme
107
+ import "@moto-nrw/design-system/tailwind"; // Tailwind v4 theme + tokens + keyframes
100
108
  ```
101
109
 
102
110
  ## Development