@blakesteve/roster 1.1.30 → 2.0.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
@@ -6,16 +6,20 @@ It is built with **React 19**, **TypeScript**, **Tailwind CSS v4**, and **Vite**
6
6
 
7
7
  ## 🚀 Features
8
8
 
9
+ - **Next.js App Router Ready:** All components are automatically bundled with `"use client"` directives for seamless SSR integration without context crashes.
10
+ - **Decoupled Theming:** Bring your own brand. Roster ships structural CSS separately from its default design tokens, allowing you to easily override CSS variables or use the default MegaSquad theme.
9
11
  - **Atomic Design:** Components organized by atoms, molecules, and organisms.
10
12
  - **TypeScript First:** Fully typed for excellent developer experience (DX).
11
- - **Themable:** Built on Tailwind CSS v4 with semantic color tokens.
13
+ - **Adaptive Dark Mode:** Fully supports manual, class-based dark mode toggling (`.dark`) independent of OS preferences.
12
14
  - **Headless UI:** Accessible interactive components powered by `@headlessui/react`.
13
15
  - **Tree-Shakeable:** Import only what you need.
14
16
 
15
17
  ## 📦 Installation
16
18
 
17
19
  ```bash
18
- npm install @blakesteve/roster
20
+ npm install roster
21
+ # or
22
+ yarn add roster
19
23
  ```
20
24
 
21
25
  ### Peer Dependencies
@@ -25,7 +29,8 @@ Roster relies on a few peer dependencies that must be installed in your host app
25
29
  ```json
26
30
  "peerDependencies": {
27
31
  "react": "^19.0.0",
28
- "react-dom": "^19.0.0"
32
+ "react-dom": "^19.0.0",
33
+ "tailwindcss": "^4.0.0"
29
34
  }
30
35
  ```
31
36
 
@@ -33,11 +38,15 @@ Roster relies on a few peer dependencies that must be installed in your host app
33
38
 
34
39
  ### 1. Import Styles
35
40
 
36
- You **must** import the CSS file at the root of your application (e.g., in `main.tsx` or `App.tsx`) to load the Tailwind styles and theme variables.
41
+ Roster splits its CSS into two parts to give you ultimate flexibility over your theme. You must import the CSS at the root of your application (e.g., in `layout.tsx`, `main.tsx`, or `App.tsx`).
37
42
 
38
- ```tsx
39
- import "roster/style.css";
40
- ```
43
+ ````tsx
44
+ // 1. Required: The structural Tailwind utility classes
45
+ import "roster/dist/roster.css";
46
+
47
+ // 2. Optional: The default MegaSquad color and theme tokens
48
+ // (Omit this file if you are defining your own --roster-* variables in your app's global CSS)
49
+ import "roster/dist/tokens.css";
41
50
 
42
51
  ### 2. Import Components
43
52
 
@@ -67,7 +76,7 @@ function App() {
67
76
  </div>
68
77
  );
69
78
  }
70
- ```
79
+ ````
71
80
 
72
81
  ## 🎨 Development
73
82
 
@@ -93,9 +102,10 @@ npm run build
93
102
 
94
103
  This generates:
95
104
 
96
- - `dist/roster.es.js` (ES Modules)
97
- - `dist/roster.umd.js` (Universal Module Definition)
98
- - `dist/style.css` (Compiled Tailwind styles)
105
+ - `dist/roster.es.js` (Main library ES Modules)
106
+ - `dist/tokens.es.js` (Token injection script)
107
+ - `dist/roster.css` (Compiled structural Tailwind styles)
108
+ - `dist/tokens.css` (Design token CSS variables)
99
109
  - `dist/index.d.ts` (Type definitions)
100
110
 
101
111
  ## 📄 License