Skip to content

Commit

Permalink
Merge pull request #7154 from Expensify/Rory-StorybookFacelift
Browse files Browse the repository at this point in the history
(cherry picked from commit ea70c2e)
  • Loading branch information
roryabraham authored and OSBotify committed Jan 12, 2022
1 parent 831625d commit be17e57
Show file tree
Hide file tree
Showing 9 changed files with 5,451 additions and 4,696 deletions.
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ module.exports = {
'@storybook/addon-essentials',
'@storybook/addon-a11y',
],
staticDirs: [
'./public',
],
};
2 changes: 2 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="icon" type="image/png" href="logo.png" />
<link rel="stylesheet" type="text/css" href="index.css" />
6 changes: 6 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {addons} from '@storybook/addons';
import theme from './theme';

addons.setConfig({
theme,
});
20 changes: 20 additions & 0 deletions .storybook/public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.search-field *, .sidebar-item, .search-result-item--label {
color: #fff !important;
}

.sidebar-subheading *, .search-result-item {
color: #fff;
}

a.sidebar-item > svg {
color: #03d47c;
}

.search-result-item--label span {
color: #ffffffaa !important;
}

#panel-tab-content :is(input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type) {
background: #ff7101;
color: #fff;
}
Binary file added .storybook/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions .storybook/public/logomark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {create} from '@storybook/theming';
import colors from '../src/styles/colors';

export default create({
appBg: colors.dark,
barSelectedColor: colors.blue,
base: 'light',
brandTitle: 'Expensify UI Docs',
brandImage: 'logomark.svg',
colorPrimary: colors.dark,
colorSecondary: colors.orange,
fontBase: 'GTAmericaExp-Regular',
fontCode: 'monospace',
textInverseColor: colors.black,
});
Loading

0 comments on commit be17e57

Please sign in to comment.