@deriv-com/trading-game-design-system 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,13 +12,16 @@ npm install @deriv-com/trading-game-design-system --safe-chain-skip-minimum-pack
12
12
 
13
13
  ### Setup
14
14
 
15
- 1. Import the design tokens/styles in your CSS (requires Tailwind CSS v4):
15
+ 1. Import the design tokens and tell Tailwind to scan the package (requires Tailwind CSS v4):
16
16
 
17
17
  ```css
18
- @import "tailwindcss";
19
18
  @import "@deriv-com/trading-game-design-system/styles";
19
+ @import "tailwindcss";
20
+ @source "../node_modules/@deriv-com/trading-game-design-system/dist";
20
21
  ```
21
22
 
23
+ > **Why `@source`?** Tailwind v4 skips `node_modules` by default. Without this line, Tailwind won't generate CSS for the component classes (e.g. `bg-primary`, `text-primary-foreground`). This is the standard way to use any Tailwind-based component library with v4.
24
+
22
25
  2. Use components in your app:
23
26
 
24
27
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/trading-game-design-system",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Trading Game Design System — shadcn/ui components with Tailwind CSS v4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",