Skip to content

Commit

Permalink
feat: branding
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Nov 1, 2024
1 parent a539532 commit 4ed92b7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming';

import logo from './sw-inline-logo-color.svg';

const theme = create({
base: 'light', // or 'dark'
brandTitle: 'ngx-graph',
brandUrl: 'https://swimlane.github.io/ngx-graph',
brandImage: logo,
brandTarget: '_self' // Optional, specifies where to open the link
});

addons.setConfig({
theme
});
4 changes: 4 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import type { Preview } from '@storybook/angular';
import { themes } from '@storybook/theming';
import { setCompodocJson } from '@storybook/addon-docs/angular';
import docJson from '../documentation.json';
setCompodocJson(docJson);

const preview: Preview = {
parameters: {
docs: {
theme: themes.light
},
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
55 changes: 55 additions & 0 deletions .storybook/sw-inline-logo-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ed92b7

Please sign in to comment.