Skip to content

Commit

Permalink
Add druk leading option
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnetangsu committed Mar 4, 2024
1 parent dc08ee9 commit 9776dd4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/DataCard/DataCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const DataCard = ({
>
<div className={cnb(styles.content(!!barColor), accentBorderColors[barColor])}>
{heading && (
<Heading font="druk" as={headingLevel} size="f5" >
<Heading font="druk" leading="druk" as={headingLevel} size="f5" >
{heading}
</Heading>
)}
Expand Down
4 changes: 2 additions & 2 deletions components/Homepage/IdealFellow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const IdealFellow = () => {
</div>
<Heading size="base" color="white" className="absolute bottom-300 ml-[20vw]">
<Text as="span" font="druk" size="f8" leading="display" className="block">Shape</Text>
<Text as="span" font="serif" weight="semibold" italic size="f9" className="leading-[0.9] block">what’s</Text>
<Text as="span" font="serif" weight="semibold" italic size="f9" className="leading-[0.9] block">next</Text>
<Text as="span" font="serif" weight="semibold" italic size="f9" leading="druk" className="block">what’s</Text>
<Text as="span" font="serif" weight="semibold" italic size="f9" leading="druk" className="block">next</Text>
</Heading>
<div className="group hover:backdrop-blur-sm transition-all absolute bottom-200 right-0 bg-black-50/50 backdrop-blur-xl w-5/12 rs-px-4 rs-pt-4 rs-pb-1">
<Text variant="caption" color="white" weight="semibold" className="mb-04em">Preparing citizens</Text>
Expand Down
2 changes: 1 addition & 1 deletion components/MomentPoster/MomentPoster.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const overlay = (hasBgGradient?: boolean) => cnb('absolute top-0 left-0 w

export const contentWrapper = 'lg:rs-pr-9 ml-0';

export const heading = 'leading-[0.9] max-w-1000 mx-auto rs-mb-1';
export const heading = 'max-w-1000 mx-auto rs-mb-1';
export const headingWrapper = 'mx-auto w-fit gap-02em';

export const thumbnailWrapper = 'inline-block';
Expand Down
2 changes: 1 addition & 1 deletion components/MomentPoster/MomentPoster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const MomentPoster = ({
/>
)}
<Container className={styles.wrapper}>
<Heading as="h2" size="splash" font="druk" align="center" className={styles.heading}>
<Heading as="h2" size="splash" font="druk" leading="druk" align="center" className={styles.heading}>
<FlexBox as="span" alignItems="baseline" className={styles.headingWrapper}>
{textBefore && (
<AnimateInView animation="slideInFromLeft">
Expand Down
1 change: 1 addition & 0 deletions components/Typography/typography.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const fontLeadings = {
cozy: 'leading-cozy', // 1.4
normal: 'leading', // 1.5
trim: 'leading-trim', // 0.75
druk: 'leading-druk', // 0.9
};

export const textAligns = {
Expand Down

0 comments on commit 9776dd4

Please sign in to comment.