@repobuddy/storybook 2.9.1 → 2.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobuddy/storybook",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "description": "Storybook repo buddy",
5
5
  "keywords": [
6
6
  "storybook",
@@ -39,6 +39,9 @@
39
39
  "types": "./esm/storybook-dark-mode/index.d.ts",
40
40
  "default": "./esm/storybook-dark-mode/index.js"
41
41
  },
42
+ "./tailwind": {
43
+ "style": "./tailwind.css"
44
+ },
42
45
  "./styles.css": "./styles.css"
43
46
  },
44
47
  "files": [
@@ -46,6 +49,7 @@
46
49
  "esm",
47
50
  "src",
48
51
  "styles.css",
52
+ "tailwind.css",
49
53
  "!**/*.{spec,test,unit,accept,integrate,system,perf,stress,study,stories}.*",
50
54
  "!**/*.mdx"
51
55
  ],
package/readme.md CHANGED
@@ -139,10 +139,15 @@ export const preview: Preview = {
139
139
 
140
140
  [`@repobuddy/storybook`][`@repobuddy/storybook`] uses Tailwind CSS 4 and the prefix `rbsb:` to avoid conflicts with user styles.
141
141
 
142
- To use the styles, import `@repobuddy/storybook/styles.css`:
142
+ To use the styles, import `@repobuddy/storybook/tailwind` in your Tailwind config:
143
143
 
144
- ```ts
145
- import '@repobuddy/storybook/styles.css'
144
+ ```css
145
+ /* tailwind.css */
146
+ @import "tailwindcss";
147
+ @import "@repobuddy/storybook/tailwind";
148
+
149
+ /* specify your dark variant mechanism */
150
+ @custom-variant dark (&:where(.dark, .dark *));
146
151
  ```
147
152
 
148
153
  [`@repobuddy/storybook`]: https://github.com/repobuddy/storybook
package/styles.css CHANGED
@@ -1,6 +1,5 @@
1
1
  /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
- @layer theme, base, components, utilities;
4
3
  @layer theme {
5
4
  :root, :host {
6
5
  --rbsb-color-red-100: oklch(93.6% 0.032 17.717);
package/tailwind.css ADDED
@@ -0,0 +1,4 @@
1
+ @import "tailwindcss/theme.css" layer(theme) prefix(rbsb);
2
+ @import "tailwindcss/utilities.css" layer(utilities);
3
+
4
+ @source "src/**";