diff --git a/.storybook/cloud-four-theme.js b/.storybook/cloud-four-theme.js new file mode 100644 index 000000000..70873781f --- /dev/null +++ b/.storybook/cloud-four-theme.js @@ -0,0 +1,9 @@ +import { create } from '@storybook/theming/create'; + +export default create({ + base: 'light', + + brandTitle: 'Cloud Four Patterns', + brandUrl: 'https://cloudfour.com', + brandImage: '/logo.svg' +}); diff --git a/.storybook/main.js b/.storybook/main.js index b86463ff5..4305f0520 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,7 +1,8 @@ const { resolve } = require('path'); module.exports = { - stories: ['../src/**/*.stories.(js|mdx)'], + // We load the welcome story separately so it will be the first sidebar item. + stories: ['../src/welcome.stories.mdx', '../src/**/*.stories.(js|mdx)'], addons: [ // Core addons '@storybook/addon-a11y/register', diff --git a/.storybook/manager-head.html b/.storybook/manager-head.html new file mode 100644 index 000000000..6be69abb3 --- /dev/null +++ b/.storybook/manager-head.html @@ -0,0 +1 @@ + diff --git a/.storybook/manager.js b/.storybook/manager.js new file mode 100644 index 000000000..778bec3c8 --- /dev/null +++ b/.storybook/manager.js @@ -0,0 +1,6 @@ +import { addons } from '@storybook/addons'; +import cloudFourTheme from './cloud-four-theme'; + +addons.setConfig({ + theme: cloudFourTheme +}); diff --git a/package.json b/package.json index 7345f0443..f83cc4820 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,8 @@ "twigjs-loader": "1.0.1" }, "scripts": { - "storybook": "npm run svg-to-twig && start-storybook -p 6006", - "build-storybook": "npm run svg-to-twig && build-storybook", + "storybook": "npm run svg-to-twig && start-storybook -p 6006 -s static", + "build-storybook": "npm run svg-to-twig && build-storybook -s static", "svg-to-twig": "gulp svg-to-twig", "check-lint": "npm run check-lint:prettier && npm run check-lint:css && npm run check-lint:js", "check-lint:prettier": "prettier --ignore-path .gitignore --list-different '**/*.{scss,js}'", diff --git a/src/welcome.stories.mdx b/src/welcome.stories.mdx new file mode 100644 index 000000000..f2682364d --- /dev/null +++ b/src/welcome.stories.mdx @@ -0,0 +1,9 @@ +import { Meta } from '@storybook/addon-docs/blocks'; + + + +# Welcome! + +This is the pattern library for Cloud Four. + +Details coming soon. diff --git a/static/favicon-development.ico b/static/favicon-development.ico new file mode 100644 index 000000000..7ba77c5fc Binary files /dev/null and b/static/favicon-development.ico differ diff --git a/static/favicon-production.ico b/static/favicon-production.ico new file mode 100644 index 000000000..41bfbb743 Binary files /dev/null and b/static/favicon-production.ico differ diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 000000000..519aeafa5 --- /dev/null +++ b/static/logo.svg @@ -0,0 +1,5 @@ + + + + +