vibe-design-system 2.4.5 → 2.4.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.
Files changed (2) hide show
  1. package/bin/init.js +21 -1
  2. package/package.json +1 -1
package/bin/init.js CHANGED
@@ -34,8 +34,28 @@ export default config;
34
34
  `;
35
35
 
36
36
  const STORYBOOK_PREVIEW_TS = `import type { Preview } from "@storybook/react";
37
+ import React from "react";
37
38
  import "../src/index.css";
38
- const preview: Preview = { parameters: { layout: "centered" } };
39
+
40
+ const preview: Preview = {
41
+ parameters: {
42
+ backgrounds: {
43
+ default: "dark",
44
+ values: [
45
+ { name: "light", value: "#ffffff" },
46
+ { name: "dark", value: "#020617" },
47
+ ],
48
+ },
49
+ },
50
+ decorators: [
51
+ (Story) => {
52
+ // Force dark mode for Lovable/shadcn CSS token resolution
53
+ document.documentElement.classList.add("dark");
54
+ return React.createElement(Story, null);
55
+ },
56
+ ],
57
+ };
58
+
39
59
  export default preview;
40
60
  `;
41
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "type": "module",
6
6
  "bin": {