Skip to content

Commit df78a1f

Browse files
committed
Move extended tailwind config into a json file, import it into tailwind config, and use it display in themeshowcase show code panel
1 parent 67aa964 commit df78a1f

File tree

3 files changed

+896
-882
lines changed

3 files changed

+896
-882
lines changed

packages/frappe-ui-react/src/components/themeShowCase/ThemeShowcase.stories.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import type { Meta, StoryObj } from "@storybook/react-vite";
2+
23
import ThemeShowcase from "./ThemeShowcase";
4+
// @ts-expect-error - Json import
5+
import tailwindExtend from "../../../../../tailwindExtend.json";
36

47
const meta = {
58
title: "Theme/DesignSystem",
69
component: ThemeShowcase,
710
parameters: {
811
layout: "fullscreen",
12+
docs: {
13+
source: {
14+
code: `
15+
Extended Tailwind Config:
16+
17+
${JSON.stringify(tailwindExtend, null, 2)}
18+
`,
19+
},
20+
},
921
},
1022
tags: ["autodocs"],
1123
} satisfies Meta<typeof ThemeShowcase>;

0 commit comments

Comments
 (0)