Skip to content

Commit 1f9420c

Browse files
style(logo): 🍱 show adaptui logo (with TailwindCSS icon) instead of storybook logo (#331)
style(logo): 🍱 show adaptui logo (with TailwindCSS icon) instead of storybook logo
2 parents 51f0598 + 8d410e8 commit 1f9420c

File tree

5 files changed

+37
-1
lines changed

5 files changed

+37
-1
lines changed

.storybook/adaptui-tailwind.svg

Lines changed: 20 additions & 0 deletions
Loading

.storybook/manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { addons } from "@storybook/addons";
2+
import storybookTheme from "./storybookTheme";
23

3-
addons.setConfig({ enableShortcuts: false });
4+
addons.setConfig({ enableShortcuts: false, theme: storybookTheme });

.storybook/storybookTheme.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { create } from "@storybook/theming";
2+
const logo = require("./adaptui-tailwind.svg") as string;
3+
4+
export default create({
5+
base: "light",
6+
brandTitle: "AdaptUI React Tailwind",
7+
brandUrl: "https://github.com/adaptui/react-tailwind",
8+
brandImage: logo,
9+
brandTarget: "_self",
10+
});

global.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module "*.svg" {
2+
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
3+
export default content;
4+
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
"importHelpers": true,
2424
"sourceMap": true
2525
},
26+
"include": ["global.d.ts"],
2627
"exclude": ["./out"]
2728
}

0 commit comments

Comments
 (0)