@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 +5 -1
- package/readme.md +8 -3
- package/styles.css +0 -1
- package/tailwind.css +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobuddy/storybook",
|
|
3
|
-
"version": "2.
|
|
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/
|
|
142
|
+
To use the styles, import `@repobuddy/storybook/tailwind` in your Tailwind config:
|
|
143
143
|
|
|
144
|
-
```
|
|
145
|
-
|
|
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
package/tailwind.css
ADDED