Skip to content

Commit

Permalink
feat: button icon
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Dec 29, 2024
1 parent 6b707c4 commit 9b79143
Show file tree
Hide file tree
Showing 23 changed files with 580 additions and 1,405 deletions.
10 changes: 10 additions & 0 deletions .storybook/bcgov-theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { create } from '@storybook/theming/create';
import packageInfo from '../package.json';

export default create({
base: 'light',
// Typography
fontBase: '"Open Sans", sans-serif',
fontCode: 'monospace',
brandTitle: `@fds-design@${packageInfo.version}`,
});
6 changes: 6 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/manager-api';
import bcgovTheme from './bcgov-theme';

addons.setConfig({
theme: bcgovTheme
});
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import theme from 'fds-theme';
import 'fds-theme/dist/style.css';
import type {Preview} from '@storybook/react';
import { action } from '@storybook/addon-actions';
import './styles.scss';

// Define parameters for controls and actions
const preview: Preview = {
Expand Down
5 changes: 5 additions & 0 deletions .storybook/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.story-container{
padding: 24px 16px;
display: flex;
gap: 8px;
}
4 changes: 4 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.0"
}
Loading

0 comments on commit 9b79143

Please sign in to comment.