Skip to content

Commit d44cc7f

Browse files
committed
refactor: update all reusable fontWeights
1 parent 4a526c9 commit d44cc7f

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

src/components/Dependencies/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from 'react-emotion';
22
import Card from '@material-ui/core/Card';
33
import Typography from '@material-ui/core/Typography';
44
import Chip from '@material-ui/core/Chip';
5+
import { fontWeight } from '../../utils/styles/sizes';
56

67
export const CardWrap = styled(Card)({
78
'&&': {
@@ -11,7 +12,7 @@ export const CardWrap = styled(Card)({
1112

1213
export const Heading = styled(Typography)({
1314
'&&': {
14-
fontWeight: 700,
15+
fontWeight: fontWeight.bold,
1516
textTransform: 'capitalize',
1617
},
1718
});

src/components/Install/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import Avatar from '@material-ui/core/Avatar';
22
import ListItem from '@material-ui/core/ListItem';
33
import Typography from '@material-ui/core/Typography';
44
import styled from 'react-emotion';
5+
import { fontWeight } from '../../utils/styles/sizes';
56

67
export const Heading = styled(Typography)({
78
'&&': {
8-
fontWeight: 700,
9+
fontWeight: fontWeight.bold,
910
textTransform: 'capitalize',
1011
},
1112
});

src/components/Package/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { breakpoints } from '../../utils/styles/media';
1313
import Ico from '../Icon';
1414
import Label from '../Label';
1515
import colors from '../../utils/styles/colors';
16+
import { fontWeight } from '../../utils/styles/sizes';
1617

1718
export const OverviewItem = styled('span')`
1819
&& {
@@ -52,7 +53,7 @@ export const Published = styled('span')({
5253
export const Text = styled(Label)({
5354
'&&': {
5455
fontSize: '12px',
55-
fontWeight: 500,
56+
fontWeight: fontWeight.semiBold,
5657
color: colors.greyLight2,
5758
},
5859
});

src/components/Repository/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import Typography from '@material-ui/core/Typography';
55

66
import Github from '../../icons/GitHub';
77
import colors from '../../utils/styles/colors';
8+
import { fontWeight } from '../../utils/styles/sizes';
89

910
export const Heading = styled(Typography)({
1011
'&&': {
11-
fontWeight: 700,
12+
fontWeight: fontWeight.bold,
1213
textTransform: 'capitalize',
1314
},
1415
});

src/components/UpLinks/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import Typography from '@material-ui/core/Typography';
33
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
},
910
});
1011

src/components/Versions/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import styled from 'react-emotion';
22
import Typography from '@material-ui/core/Typography';
33
import { default as MuiListItemText } from '@material-ui/core/ListItemText';
4+
import { fontWeight } from '../../utils/styles/sizes';
45

56
export const Heading = styled(Typography)({
67
'&&': {
7-
fontWeight: 700,
8+
fontWeight: fontWeight.bold,
89
},
910
});
1011

0 commit comments

Comments
 (0)