-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update native harmony Text component to use harmony theme values
- Loading branch information
1 parent
40c3e18
commit 59221c0
Showing
6 changed files
with
73 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
export const variantTagMap = { | ||
display: { | ||
xl: 'h1', | ||
l: 'h1', | ||
m: 'h1', | ||
s: 'h1' | ||
}, | ||
heading: { | ||
xl: 'h1', | ||
l: 'h2', | ||
m: 'h3', | ||
s: 'h4' | ||
} | ||
} | ||
|
||
export const variantStylesMap = { | ||
display: { | ||
fontSize: { s: '6xl', m: '7xl', l: '8xl', xl: '9xl' }, | ||
lineHeight: { s: '3xl', m: '4xl', l: '5xl', xl: '6xl' }, | ||
fontWeight: { default: 'bold', strong: 'heavy' } | ||
}, | ||
heading: { | ||
fontSize: { s: 'xl', m: '2xl', l: '3xl', xl: '5xl' }, | ||
lineHeight: { s: 'l', m: 'xl', l: 'xl', xl: '2xl' }, | ||
fontWeight: { default: 'bold', strong: 'heavy' } | ||
}, | ||
title: { | ||
fontSize: { xs: 'xs', s: 's', m: 'm', l: 'l' }, | ||
lineHeight: { xs: 's', s: 's', m: 'm', l: 'l' }, | ||
fontWeight: { weak: 'demiBold', default: 'bold', strong: 'heavy' } | ||
}, | ||
label: { | ||
fontSize: { xs: '2xs', s: 'xs', m: 's', l: 'm', xl: 'xl' }, | ||
lineHeight: { xs: 'xs', s: 'xs', m: 's', l: 's', xl: 'l' }, | ||
fontWeight: { default: 'bold', strong: 'heavy' }, | ||
css: { textTransform: 'uppercase' as const, letterSpacing: 0.5 } | ||
}, | ||
body: { | ||
fontSize: { xs: 'xs', s: 's', m: 'm', l: 'l' }, | ||
lineHeight: { xs: 's', s: 'm', m: 'm', l: 'l' }, | ||
fontWeight: { default: 'medium', strong: 'demiBold' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { Text } from './Text' | ||
export * from './types' | ||
export * from './constants' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './App' | ||
// // Uncomment to run app in storybook mode | ||
// Uncomment to run app in storybook mode | ||
// export { default as App } from '../../.storybook' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters