Skip to content

docs: Add Storybook documentation landing page #334

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

Merged
merged 11 commits into from
May 25, 2023
41 changes: 41 additions & 0 deletions .storybook/YourTheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// .storybook/YourTheme.ts
import { create } from '@storybook/theming/create';
import logo from '../public/assets/freenow-logo.svg';

export default create({
base: 'light',

// Typography
fontBase: '"YOURNOWSans-Medium", "Open Sans", sans-serif',
fontCode: 'monospace',

brandTitle: 'FREENOW',
brandUrl: 'https://www.free-now.com/',
brandImage: logo,
brandTarget: '_self',

//
colorPrimary: '#CA0928',
colorSecondary: '#585C6D',

// UI
appBg: '#ffffff',
appContentBg: '#ffffff',
appBorderColor: '#585C6D',
appBorderRadius: 4,

// Text colors
textColor: '#10162F',
textInverseColor: '#ffffff',

// Toolbar default and active colors
barTextColor: '#9E9E9E',
barSelectedColor: '#585C6D',
barBg: '#ffffff',

// Form colors
inputBg: '#ffffff',
inputBorder: '#10162F',
inputTextColor: '#10162F',
inputBorderRadius: 2
});
8 changes: 8 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// .storybook/manager.ts

import { addons } from '@storybook/manager-api';
import yourTheme from './YourTheme';

addons.setConfig({
theme: yourTheme
});
6 changes: 5 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Preview } from '@storybook/react';
import { themes } from '@storybook/theming';

export const preview: Preview = {
parameters: {
Expand All @@ -11,6 +12,9 @@ export const preview: Preview = {
date: /Date$/
}
},
docs: {
theme: themes.light
},
backgrounds: {
default: 'light',
values: [
Expand Down Expand Up @@ -65,7 +69,7 @@ export const preview: Preview = {
options: {
storySort: {
method: 'alphabetical',
order: ['Get Started', 'Essentials', 'Components', 'Form Elements']
order: ['Welcome', 'Essentials', 'Components', 'Form Elements']
}
}
}
Expand Down
37 changes: 37 additions & 0 deletions docs/assets/by-freenow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/color-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/assets/components-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions docs/assets/figma-logo-with-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/assets/figma-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docs/assets/freenow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions docs/assets/github-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading