Skip to content

Commit

Permalink
Merge pull request #17700 from alitoshmatov/storybook-updated-theme
Browse files Browse the repository at this point in the history
Updated storybook to use new theme
  • Loading branch information
roryabraham authored Apr 25, 2023
2 parents 44582c8 + 4ad92c8 commit ef71ebd
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 27 deletions.
16 changes: 10 additions & 6 deletions .storybook/public/index.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
.search-field *, .sidebar-item, .search-result-item--label {
color: #fff !important;
color: #E7ECE9 !important;
}

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

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

a.sidebar-item[data-selected="true"], a.sidebar-item[data-selected="true"]:focus, a.sidebar-item[data-selected="true"]:hover {
background: #1A3D32;
}

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

#panel-tab-content :is(input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type) {
background: #ff7101;
color: #fff;
background: #03D47C;
color: #E7ECE9;
}

.sidebar-container {
background: #0b1b34;
background: #07271f;
}
Binary file modified .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.
38 changes: 24 additions & 14 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.
22 changes: 15 additions & 7 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ 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',
brandTitle: 'New Expensify UI Docs',
brandImage: 'logomark.svg',
colorPrimary: colors.dark,
colorSecondary: colors.orange,
fontBase: 'ExpensifyNeue-Regular',
fontCode: 'monospace',
textInverseColor: colors.black,
base: 'dark',
appBg: colors.greenHighlightBackground,
colorPrimary: colors.greenDefaultButton,
colorSecondary: colors.green,
appContentBg: colors.greenAppBackground,
textColor: colors.white,
barTextColor: colors.white,
barSelectedColor: colors.green,
barBg: colors.greenAppBackground,
appBorderColor: colors.greenBorders,
inputBg: colors.greenHighlightBackground,
inputBorder: colors.greenBorders,
appBorderRadius: 8,
inputBorderRadius: 8,
});

0 comments on commit ef71ebd

Please sign in to comment.