Skip to content

Commit a54f32d

Browse files
authored
Merge pull request #67 from it-at-m/custom-icons
Custom icons
2 parents 7332ed0 + d08789f commit a54f32d

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

.storybook/main.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ import { StorybookConfig } from "@storybook/vue3-vite";
66
const fs = require("fs");
77
const path = require("path");
88
const mucIconsSvg = fs.readFileSync(
9-
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
10-
"utf8"
9+
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
10+
"utf8"
11+
);
12+
const customIconsSvg = fs.readFileSync(
13+
path.resolve(__dirname, "../public/assets/temporary/custom-icons.svg"),
14+
"utf8"
1115
);
1216

1317
const config: StorybookConfig = {
@@ -27,6 +31,7 @@ const config: StorybookConfig = {
2731
previewBody: (body) => `
2832
${body}
2933
${mucIconsSvg}
34+
${customIconsSvg}
3035
`,
3136
docs: {
3237
autodocs: "tag",

docs/Iconography.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Meta, IconGallery, IconItem } from '@storybook/blocks';
2+
3+
<Meta title="Iconography" />
4+
5+
# Iconography
6+
7+
This library already contains MDE5-Patternlabs iconset. The documentation to it can be found [here](https://patternlab.muenchen.space/?p=viewall-guidelines-icons).
8+
9+
Additionally, it adds some specialty icons from [Pictogrammers](https://pictogrammers.com/library/mdi) which can be accessed by embedding the SVG-Sprite `custom-icons.svg` as described in [the getting started guide](/docs/getting-started--docs#setup).
10+
11+
<IconGallery>
12+
<IconItem name="pencil">
13+
<svg fill="currentColor"><use href="#icon-pencil" /></svg>
14+
</IconItem>
15+
<IconItem name="dots-vertical">
16+
<svg fill="currentColor"><use href="#icon-dots-vertical" /></svg>
17+
</IconItem>
18+
<IconItem name="circle-off-outline">
19+
<svg fill="currentColor"><use href="#icon-circle-off-outline" /></svg>
20+
</IconItem>
21+
<IconItem name="account">
22+
<svg fill="currentColor"><use href="#icon-account" /></svg>
23+
</IconItem>
24+
</IconGallery>
Lines changed: 7 additions & 0 deletions
Loading

public/assets/temporary/muc-icons.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)