Skip to content

Commit

Permalink
chore: added storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-deriv committed Jan 17, 2024
1 parent 7bfbabb commit c0f0460
Show file tree
Hide file tree
Showing 9 changed files with 14,535 additions and 2,462 deletions.
19 changes: 19 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
26 changes: 13 additions & 13 deletions lib/components/Text/Text.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
$color-map: (
general: #333333,
primary: #999999,
success: #4bb4b3,
warning: #ffad3a,
error: #ec3f3f,
white: #ffffff,
black: #000000,
less-prominent: #999999,
red: #ff444f,
blue: #377cfc,
green: #17eabd,
orange: #ff9c13,
system-dark-2-general-text: #c2c2c2,
'general': #333333,
'primary': #999999,
'success': #4bb4b3,
'warning': #ffad3a,
'error': #ec3f3f,
'white': #ffffff,
'black': #000000,
'less-prominent': #999999,
'red': #ff444f,
'blue': #377cfc,
'green': #17eabd,
'orange': #ff9c13,
'system-dark-2-general-text': #c2c2c2,
);

$desktop-font-size-map: (
Expand Down
Loading

0 comments on commit c0f0460

Please sign in to comment.