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

Updated storybook to use new theme #17700

Merged
merged 6 commits into from
Apr 25, 2023
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
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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB Would be nice to alphabetize this

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,
});