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.
- package/bin/init.js +21 -1
- 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
|
-
|
|
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
|
|