Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ashley POC - Make typography size adjustments #3474

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions aries-site/src/themes/aries.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,131 @@ export const aries = deepMerge(hpe, {
},
},
},
icon: {
size: {
small: '14px',
medium: '16px',
large: '18px',
xlarge: '24px',
xxlarge: '30px',
},
},
heading: {
level: {
2: {
medium: {
size: '32px',
height: '32px',
},
},
},
},
text: {
xsmall: {
size: '14px',
height: '16px',
},
small: {
size: '14px', // 16px
height: '16px', // 24px
},
medium: {
size: '16px', // 18px
height: '20px', // 24px
},
large: {
size: '18px', // 24px
height: '24px', // 32px
},
xlarge: {
size: '24px', // 30px
height: '32px', // 36px
},
xxlarge: {
size: '30px', // 36px
height: '36px', // 40px
},
'3xl': {
size: '36px', // 42px
height: '40px', // 46px
},
'4xl': {
size: '42px', // 48px
height: '46px', // 48px
},
'5xl': {
size: '48px', // 72px
height: '48px', // 72px
},
'6xl': {
size: '72px',
height: '72px',
},
// This block applies size-specific weights to text to ensure
// that as text sizes get larger, the weight decreases.
// This block can be removed once grommet theme structure is enhanced
// to support size-specific weights.
extend: ({ size }) => `
${
['xxlarge', '3xl', '4xl', '5xl', '6xl'].includes(size)
? 'font-weight: 300;'
: ''
};
`,
},
paragraph: {
xsmall: {
size: '14px',
height: '16px',
},
small: {
size: '14px', // 16px
height: '16px', // 24px
},
medium: {
size: '16px', // 18px
height: '20px', // 24px
},
large: {
size: '18px', // 24px
height: '24px', // 32px
},
xlarge: {
size: '24px', // 30px
height: '32px', // 36px
},
xxlarge: {
size: '30px', // 36px
height: '36px', // 40px
},
'3xl': {
size: '36px', // 42px
height: '40px', // 46px
},
'4xl': {
size: '42px', // 48px
height: '46px', // 48px
},
'5xl': {
size: '48px', // 72px
height: '48px', // 72px
},
'6xl': {
size: '72px',
height: '72px',
},
// This block applies size-specific weights to text to ensure
// that as text sizes get larger, the weight decreases.
// This block can be removed once grommet theme structure is enhanced
// to support size-specific weights.
extend: ({ size }) => `
${
['xxlarge', '3xl', '4xl', '5xl', '6xl'].includes(size)
? 'font-weight: 300;'
: ''
};
`,
},
});

export const ariesPop = deepMerge(aries, {
Expand Down
Loading
Loading