1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-24 06:54:27 +07:00

refactor: update all reusable fontWeights

This commit is contained in:
Griffithtp 2019-08-08 22:08:37 +01:00
parent 4a526c92bb
commit d44cc7f662
6 changed files with 12 additions and 6 deletions

View File

@ -2,6 +2,7 @@ import styled from 'react-emotion';
import Card from '@material-ui/core/Card';
import Typography from '@material-ui/core/Typography';
import Chip from '@material-ui/core/Chip';
import { fontWeight } from '../../utils/styles/sizes';
export const CardWrap = styled(Card)({
'&&': {
@ -11,7 +12,7 @@ export const CardWrap = styled(Card)({
export const Heading = styled(Typography)({
'&&': {
fontWeight: 700,
fontWeight: fontWeight.bold,
textTransform: 'capitalize',
},
});

View File

@ -2,10 +2,11 @@ import Avatar from '@material-ui/core/Avatar';
import ListItem from '@material-ui/core/ListItem';
import Typography from '@material-ui/core/Typography';
import styled from 'react-emotion';
import { fontWeight } from '../../utils/styles/sizes';
export const Heading = styled(Typography)({
'&&': {
fontWeight: 700,
fontWeight: fontWeight.bold,
textTransform: 'capitalize',
},
});

View File

@ -13,6 +13,7 @@ import { breakpoints } from '../../utils/styles/media';
import Ico from '../Icon';
import Label from '../Label';
import colors from '../../utils/styles/colors';
import { fontWeight } from '../../utils/styles/sizes';
export const OverviewItem = styled('span')`
&& {
@ -52,7 +53,7 @@ export const Published = styled('span')({
export const Text = styled(Label)({
'&&': {
fontSize: '12px',
fontWeight: 500,
fontWeight: fontWeight.semiBold,
color: colors.greyLight2,
},
});

View File

@ -5,10 +5,11 @@ import Typography from '@material-ui/core/Typography';
import Github from '../../icons/GitHub';
import colors from '../../utils/styles/colors';
import { fontWeight } from '../../utils/styles/sizes';
export const Heading = styled(Typography)({
'&&': {
fontWeight: 700,
fontWeight: fontWeight.bold,
textTransform: 'capitalize',
},
});

View File

@ -1,10 +1,11 @@
import styled from 'react-emotion';
import Typography from '@material-ui/core/Typography';
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
import { fontWeight } from '../../utils/styles/sizes';
export const Heading = styled(Typography)({
'&&': {
fontWeight: 700,
fontWeight: fontWeight.bold,
},
});

View File

@ -1,10 +1,11 @@
import styled from 'react-emotion';
import Typography from '@material-ui/core/Typography';
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
import { fontWeight } from '../../utils/styles/sizes';
export const Heading = styled(Typography)({
'&&': {
fontWeight: 700,
fontWeight: fontWeight.bold,
},
});