mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +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';
|
import { StorybookLogo } from '@storybook/components';
|
||||||
|
|
||||||
export const StorybookLogoStyled = styled(StorybookLogo)({
|
export const StorybookLogoStyled = styled(StorybookLogo)(({ theme }) => ({
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
height: '22px !important',
|
height: '22px !important',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
});
|
color: theme.base === 'light' ? theme.color.defaultText : theme.color.lightest,
|
||||||
|
}));
|
||||||
|
|
||||||
export const Img = styled.img({
|
export const Img = styled.img({
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user