Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APP-3507): Add aragon theming to storybook #271

Merged
merged 3 commits into from
Aug 12, 2024
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
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 aragonOdsTheme from './theme';

addons.setConfig({
theme: aragonOdsTheme,
});
8 changes: 0 additions & 8 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,10 @@ const preview: Preview = {
backgrounds: {
default: 'neutral-50',
values: [
{
name: 'neutral-0',
value: 'var(--ods-color-neutral-0)',
},
{
name: 'neutral-50',
value: 'var(--ods-color-neutral-50)',
},
{
name: 'neutral-800',
value: 'var(--ods-color-neutral-800)',
},
],
},
},
Expand Down
24 changes: 24 additions & 0 deletions .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { create } from '@storybook/theming';

export default create({
base: 'light',
brandTitle: 'Aragon ODS',
brandUrl: 'https://aragon.org',
brandImage: 'https://i.postimg.cc/RVVSGThD/logo.png',
brandTarget: '_blank',
colorPrimary: '#003bf5',
colorSecondary: '#3164fa',
appBg: '#e4e7eb',
appContentBg: '#ffffff',
appBorderColor: '#cbd2d9',
appBorderRadius: 4,
textColor: '#323f4b',
textInverseColor: '#ffffff',
barTextColor: '#323f4b',
barSelectedColor: '#003bf5',
barBg: '#e4e7eb',
inputBg: '#ffffff',
inputBorder: '#cbd2d9',
inputTextColor: '#323f4b',
inputBorderRadius: 4,
});
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- Add Aragon logo, remove dark background options and create custom theme using Aragon branding for ODS storybook

### Changed

- Update `@typescript-eslint` packages to v8
Expand Down