rud-dashboard 0.1.4 → 0.1.6

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
@@ -12,15 +12,22 @@ bun add rud-dashboard
12
12
 
13
13
  ## Setup
14
14
 
15
- ### 1. Import the Tailwind Preset
15
+ ### 1. Style Setup
16
16
 
17
+ #### For Tailwind CSS v4 (Recommended)
18
+ Add to your main CSS file:
19
+ ```css
20
+ @import "rud-dashboard";
21
+ ```
22
+
23
+ #### For Tailwind CSS v3
17
24
  Update your `tailwind.config.js`:
18
25
 
19
26
  ```javascript
20
27
  import rudPreset from 'rud-dashboard/tailwind.preset'
21
28
 
22
29
  export default {
23
- presets: [rdbPreset],
30
+ presets: [rudPreset],
24
31
  content: [
25
32
  "./src/**/*.{js,ts,jsx,tsx}",
26
33
  "./node_modules/rud-dashboard/**/*.{js,ts,jsx,tsx}",
@@ -28,10 +35,7 @@ export default {
28
35
  }
29
36
  ```
30
37
 
31
- ### 2. Add CSS Variables
32
-
33
- Add to your main CSS file (e.g., `globals.css` or `index.css`):
34
-
38
+ Then import the styles in your main CSS file:
35
39
  ```css
36
40
  @import 'rud-dashboard/styles.css';
37
41
  ```