Skip to content

Commit

Permalink
Merge pull request #331 from schoenwaldnils/feat/text
Browse files Browse the repository at this point in the history
text stuff
  • Loading branch information
schoenwaldnils authored Nov 11, 2022
2 parents 03558d5 + e10c522 commit 2dd3f14
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.13.1
16.5.0
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#ba3e4899",
"titleBar.inactiveForeground": "#e7e7e799",
"editorGroup.border": "#ca6169",
"panel.border": "#ca6169",
"sash.hoverBorder": "#ca6169",
"sideBar.border": "#ca6169",
"statusBarItem.remoteBackground": "#ba3e48",
"statusBarItem.remoteForeground": "#e7e7e7"
"statusBarItem.remoteForeground": "#e7e7e7",
"commandCenter.border": "#e7e7e799"
},
"peacock.color": "#ba3e48"
}
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const Footer: FC = () => {
</Content>

<Content>
<Headline4>Web Vitals</Headline4>
<Headline4 as="h2">Web Vitals</Headline4>
<StyledWebVitals LinkComponent={Link} className="hide-in-percy" />
</Content>
</FooterContainer>
Expand Down
26 changes: 11 additions & 15 deletions src/components/Typography/Headline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import styled from '@emotion/styled'

import { upFromBreakpoint } from '../../utils/mixins'

export const h1Styles = css`
const baseStyles = css`
font-family: var(--Typography-headlineFontFamily);
font-size: 2rem;
font-weight: var(--Typography-headlineWeight);
line-height: 1.1;
color: var(--Typography-headlineColor, inherit);
`

export const h1Styles = css`
${baseStyles}
font-size: 2rem;
line-height: 1.1;
${upFromBreakpoint('small')} {
font-size: 2.75rem;
Expand All @@ -20,11 +24,9 @@ export const Headline1 = styled.h1`
`

export const h2Styles = css`
font-family: var(--Typography-headlineFontFamily);
${baseStyles}
font-size: 1.75rem;
font-weight: var(--Typography-headlineWeight);
line-height: 1.2;
color: var(--Typography-headlineColor, inherit);
${upFromBreakpoint('small')} {
font-size: 2.25rem;
Expand All @@ -36,11 +38,9 @@ export const Headline2 = styled.h2`
`

export const h3Styles = css`
font-family: var(--Typography-headlineFontFamily);
${baseStyles}
font-size: 1.5rem;
font-weight: var(--Typography-headlineWeight);
line-height: 1.3;
color: var(--Typography-headlineColor, inherit);
${upFromBreakpoint('small')} {
font-size: 1.75rem;
Expand All @@ -52,11 +52,9 @@ export const Headline3 = styled.h3`
`

export const h4Styles = css`
font-family: var(--Typography-headlineFontFamily);
${baseStyles}
font-size: 1.25rem;
font-weight: var(--Typography-headlineWeight);
line-height: 1.2;
color: var(--Typography-headlineColor, inherit);
${upFromBreakpoint('small')} {
font-size: 1.5rem;
Expand All @@ -68,12 +66,10 @@ export const Headline4 = styled.h4`
`

export const sublineStyles = css`
font-family: var(--Typography-headlineFontFamily);
${baseStyles}
font-size: 0.75rem;
font-weight: var(--Typography-headlineWeight);
line-height: 1.4;
letter-spacing: 0.15em;
color: var(--Typography-headlineColor, inherit);
text-transform: uppercase;
`

Expand Down

1 comment on commit 2dd3f14

@vercel
Copy link

@vercel vercel bot commented on 2dd3f14 Nov 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.