Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ import { StorybookConfig } from "@storybook/vue3-vite";
const fs = require("fs");
const path = require("path");
const mucIconsSvg = fs.readFileSync(
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
"utf8"
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
"utf8"
);
const customIconsSvg = fs.readFileSync(
path.resolve(__dirname, "../public/assets/temporary/custom-icons.svg"),
"utf8"
);

const config: StorybookConfig = {
Expand All @@ -27,6 +31,7 @@ const config: StorybookConfig = {
previewBody: (body) => `
${body}
${mucIconsSvg}
${customIconsSvg}
`,
docs: {
autodocs: "tag",
Expand Down
24 changes: 24 additions & 0 deletions docs/Iconography.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Meta, IconGallery, IconItem } from '@storybook/blocks';

<Meta title="Iconography" />

# Iconography

This library already contains MDE5-Patternlabs iconset. The documentation to it can be found [here](https://patternlab.muenchen.space/?p=viewall-guidelines-icons).

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).

<IconGallery>
<IconItem name="pencil">
<svg fill="currentColor"><use href="#icon-pencil" /></svg>
</IconItem>
<IconItem name="dots-vertical">
<svg fill="currentColor"><use href="#icon-dots-vertical" /></svg>
</IconItem>
<IconItem name="circle-off-outline">
<svg fill="currentColor"><use href="#icon-circle-off-outline" /></svg>
</IconItem>
<IconItem name="account">
<svg fill="currentColor"><use href="#icon-account" /></svg>
</IconItem>
</IconGallery>
7 changes: 7 additions & 0 deletions public/assets/temporary/custom-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/assets/temporary/muc-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.