1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-28 22:15:32 +07:00
verdaccio-ui/src/components/Dist/styles.ts

28 lines
873 B
TypeScript
Raw Normal View History

import styled from '@emotion/styled';
2019-03-28 05:39:06 +07:00
import ListItem from '../../muiComponents/ListItem';
import Text from '../../muiComponents/Text';
import FloatingActionButton from '../../muiComponents/FloatingActionButton';
import Chip from '../../muiComponents/Chip';
import { Theme } from '../../design-tokens/theme';
2019-03-28 05:39:06 +07:00
export const StyledText = styled(Text)<{ theme?: Theme }>(props => ({
fontWeight: props.theme && props.theme.fontWeight.bold,
textTransform: 'capitalize',
}));
2019-03-28 05:39:06 +07:00
export const DistListItem = styled(ListItem)({
paddingLeft: 0,
paddingRight: 0,
});
2019-03-28 05:39:06 +07:00
export const DistChips = styled(Chip)({
marginRight: 5,
textTransform: 'capitalize',
});
2019-03-28 05:39:06 +07:00
export const DownloadButton = styled(FloatingActionButton)<{ theme?: Theme }>(props => ({
backgroundColor: props.theme && props.theme.palette.primary.main,
color: props.theme && props.theme.palette.white,
}));