Skip to content

Commit eb8cbf9

Browse files
committed
add all fontsizes + update example
1 parent 9db471a commit eb8cbf9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/common/src/design-language/typography.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ export const fontSizes = [
44
11,
55
13,
66
16,
7+
19,
8+
24,
9+
28,
10+
33,
11+
40,
712
];
813

914
export const fontWeights = {

packages/components/src/components/Example/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import React from 'react';
22
import styled from 'styled-components';
3+
import css from '@styled-system/css';
34
import { Element } from '../Element';
45

5-
const H1 = styled(Element).attrs({ as: 'h1' })`
6-
color: red;
7-
`;
6+
const H1 = styled(Element).attrs({ as: 'h1' })(
7+
css({
8+
color: 'reds.500',
9+
fontSize: 7,
10+
})
11+
);
812

913
const ExampleComponent = () => <H1>I am an example component</H1>;
1014

0 commit comments

Comments
 (0)