@chesapeake/stack 0.1.2 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [0.1.3] - 2026-03-09
10
+
11
+ ### Changed
12
+
13
+ - `styles/index.css` now declares `@source "../components"` so Tailwind v4
14
+ detects the package's utility classes automatically. Consuming apps no longer
15
+ need to add a separate `@source` or `content` path for `@chesapeake/stack`;
16
+ `@import "@chesapeake/stack/styles"` is sufficient.
17
+
9
18
  ## [0.1.2] - 2026-03-05
10
19
 
11
20
  - `examples/` folder with copy-pasteable React examples: basic-form,
@@ -56,5 +65,7 @@ and this project adheres to
56
65
  - Full dark mode support via CSS custom properties
57
66
  - Apache 2.0 license
58
67
 
68
+ [0.1.3]: https://github.com/chesapeakedev/stack/releases/tag/v0.1.3
69
+ [0.1.2]: https://github.com/chesapeakedev/stack/releases/tag/v0.1.2
59
70
  [0.1.1]: https://github.com/chesapeakedev/stack/releases/tag/v0.1.1
60
71
  [0.1.0]: https://github.com/chesapeakedev/stack/releases/tag/v0.1.0
package/README.md CHANGED
@@ -33,7 +33,10 @@ npm install react-day-picker vaul # if using calendar or drawer components
33
33
 
34
34
  ### 2. Import Styles
35
35
 
36
- Import the shared styles in your app's main CSS file (e.g., `src/index.css`):
36
+ Import the shared styles in your app's main CSS file (e.g., `src/index.css`).
37
+ The package stylesheet declares its own `@source` directives for Tailwind v4
38
+ class detection, so you do **not** need to add a separate `@source` or `content`
39
+ path pointing at `node_modules/@chesapeake/stack`.
37
40
 
38
41
  ```css
39
42
  /* Import Tailwind, third-party CSS, and shared styles */
@@ -44,48 +47,7 @@ Import the shared styles in your app's main CSS file (e.g., `src/index.css`):
44
47
  @import "@chesapeake/stack/styles/index.css";
45
48
  ```
46
49
 
47
- ### 3. Configure Tailwind
48
-
49
- Extend your `tailwind.config.ts` with the shared preset:
50
-
51
- ```typescript
52
- import type { Config } from "tailwindcss";
53
- import sharedPreset from "@chesapeake/stack/tailwind.preset";
54
-
55
- const config: Config = {
56
- content: [
57
- // your app's content paths
58
- ],
59
- presets: [sharedPreset],
60
- // your app's additional configuration
61
- };
62
-
63
- export default config;
64
- ```
65
-
66
- ### 4. Configure Tailwind Content
67
-
68
- Add the package to your Tailwind content configuration so classes are processed:
69
-
70
- **`tailwind.config.ts`**:
71
-
72
- ```typescript
73
- import type { Config } from "tailwindcss";
74
- import sharedPreset from "@chesapeake/stack/tailwind.preset";
75
-
76
- const config: Config = {
77
- content: [
78
- "./src/**/*.{js,ts,jsx,tsx}",
79
- "./node_modules/@chesapeake/stack/**/*.{js,ts,jsx,tsx}",
80
- ],
81
- presets: [sharedPreset],
82
- // your app's additional configuration
83
- };
84
-
85
- export default config;
86
- ```
87
-
88
- ### 5. Import and Use Components
50
+ ### 3. Import and Use Components
89
51
 
90
52
  Import and use components in your React components:
91
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chesapeake/stack",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A simple, reusable React component library and design system built on shadcn/ui with Tailwind CSS",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.2.0",
package/styles/index.css CHANGED
@@ -1,5 +1,6 @@
1
1
  /* Chesapeake Shared Styles */
2
2
  @import "tailwindcss";
3
+ @source "../components";
3
4
 
4
5
  /* Design tokens and base styles */
5
6
  @import "./tokens.css";