-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3e532b
commit d113331
Showing
9 changed files
with
179 additions
and
37 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
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
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
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,34 @@ | ||
import styled, { css } from 'styled-components'; | ||
import COLORS from './colors'; | ||
|
||
// 1 rem = 16 px | ||
interface TextProps { | ||
$color?: string; | ||
$align?: 'left' | 'right' | 'center' | 'end' | 'justify' | 'start'; | ||
} | ||
|
||
const TextStyles = css<TextProps>` | ||
color: ${({ $color }) => $color || COLORS.black}; | ||
text-align: ${({ $align }) => $align}; | ||
margin: 0; | ||
`; | ||
|
||
export const H1 = styled.h1<TextProps>` | ||
${TextStyles} | ||
font-size: 2rem; // this may change later | ||
`; | ||
|
||
export const H2 = styled.h2<TextProps>` | ||
${TextStyles} | ||
font-size: 1.75rem; | ||
`; | ||
|
||
export const H3 = styled.h3<TextProps>` | ||
${TextStyles} | ||
font-size: 1.25rem; | ||
`; | ||
|
||
export const H4 = styled.h4<TextProps>` | ||
${TextStyles} | ||
font-size: 1rem; | ||
`; |
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