mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 06:23:00 +08:00
Update Storybook logo colors in dark mode
This commit is contained in:
parent
05847713ef
commit
912e6965da
@ -3,11 +3,12 @@ import { styled, withTheme } from '@storybook/theming';
|
||||
|
||||
import { StorybookLogo } from '@storybook/components';
|
||||
|
||||
export const StorybookLogoStyled = styled(StorybookLogo)({
|
||||
export const StorybookLogoStyled = styled(StorybookLogo)(({ theme }) => ({
|
||||
width: 'auto',
|
||||
height: '22px !important',
|
||||
display: 'block',
|
||||
});
|
||||
color: theme.base === 'light' ? theme.color.defaultText : theme.color.lightest,
|
||||
}));
|
||||
|
||||
export const Img = styled.img({
|
||||
width: 'auto',
|
||||
|
Loading…
x
Reference in New Issue
Block a user