Skip to content

Commit

Permalink
feat: add subtitle 3-5 typography variants
Browse files Browse the repository at this point in the history
  • Loading branch information
jeangovil committed Sep 22, 2023
1 parent 0d6cc88 commit a7bfa14
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
38 changes: 36 additions & 2 deletions packages/lsd-react/src/components/Theme/baseTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const baseTheme: Theme = {
label2: {},
subtitle1: {},
subtitle2: {},
subtitle3: {},
subtitle4: {},
subtitle5: {},
},
},
sm: {
Expand All @@ -40,6 +43,9 @@ export const baseTheme: Theme = {
body2: {},
body3: {},
label1: {},
subtitle5: {},
subtitle4: {},
subtitle3: {},
label2: {},
subtitle1: {},
subtitle2: {},
Expand All @@ -60,6 +66,9 @@ export const baseTheme: Theme = {
body2: {},
body3: {},
label1: {},
subtitle5: {},
subtitle4: {},
subtitle3: {},
label2: {},
subtitle1: {},
subtitle2: {},
Expand All @@ -80,13 +89,16 @@ export const baseTheme: Theme = {
body2: {},
body3: {},
label1: {},
subtitle5: {},
subtitle4: {},
subtitle3: {},
label2: {},
subtitle1: {},
subtitle2: {},
},
},
xl: {
width: 1200,
width: 1205,
typography: {
display1: {},
display2: {},
Expand All @@ -100,6 +112,9 @@ export const baseTheme: Theme = {
body2: {},
body3: {},
label1: {},
subtitle5: {},
subtitle4: {},
subtitle3: {},
label2: {},
subtitle1: {},
subtitle2: {},
Expand All @@ -123,12 +138,31 @@ export const baseTheme: Theme = {
h4: { fontSize: '1.75rem', fontWeight: 'normal', lineHeight: '2.25rem' },
h5: { fontSize: '1.5rem', fontWeight: 'normal', lineHeight: '2rem' },
h6: { fontSize: '1.375rem', fontWeight: 'normal', lineHeight: '1.75rem' },
subtitle1: { fontSize: '1rem', fontWeight: 'normal', lineHeight: '1.5rem' },
subtitle1: {
fontSize: '1.25rem',
fontWeight: 'normal',
lineHeight: '1.625rem',
},
subtitle2: {
fontSize: '1.125rem',
fontWeight: 'normal',
lineHeight: '1.5rem',
},
subtitle3: {
fontSize: '1rem',
fontWeight: 'normal',
lineHeight: '1.5rem',
},
subtitle4: {
fontSize: '0.875rem',
fontWeight: 'normal',
lineHeight: '1.25rem',
},
subtitle5: {
fontSize: '0.75rem',
fontWeight: 'normal',
lineHeight: '1rem',
},
body1: { fontSize: '1rem', fontWeight: 'normal', lineHeight: '1.5rem' },
body2: {
fontSize: '0.875rem',
Expand Down
3 changes: 3 additions & 0 deletions packages/lsd-react/src/components/Theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export type TypographyVariants =
| 'h6'
| 'subtitle1'
| 'subtitle2'
| 'subtitle3'
| 'subtitle4'
| 'subtitle5'
| 'body1'
| 'body2'
| 'body3'
Expand Down

0 comments on commit a7bfa14

Please sign in to comment.