-
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.
Merge branch 'main' of github.com:thesis/acre into init-overview-page
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from "react" | ||
import { Text, TextProps } from "@chakra-ui/react" | ||
|
||
export function TextXl(props: TextProps) { | ||
return ( | ||
<Text as="p" fontWeight="medium" fontSize="xl" lineHeight="xl" {...props} /> | ||
) | ||
} | ||
|
||
export function TextLg(props: TextProps) { | ||
return ( | ||
<Text as="p" fontWeight="medium" fontSize="lg" lineHeight="lg" {...props} /> | ||
) | ||
} | ||
|
||
export function TextMd(props: TextProps) { | ||
return ( | ||
<Text as="p" fontWeight="medium" fontSize="md" lineHeight="md" {...props} /> | ||
) | ||
} | ||
|
||
export function TextSm(props: TextProps) { | ||
return ( | ||
<Text as="p" fontWeight="medium" fontSize="sm" lineHeight="sm" {...props} /> | ||
) | ||
} | ||
|
||
export function TextXs(props: TextProps) { | ||
return ( | ||
<Text as="p" fontWeight="medium" fontSize="xs" lineHeight="xs" {...props} /> | ||
) | ||
} |
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,22 @@ | ||
export const fontSizes = { | ||
xs: "0.75rem", | ||
sm: "0.875rem", | ||
md: "1rem", | ||
lg: "1.125rem", | ||
xl: "1.25rem", | ||
} | ||
|
||
export const fontWeights = { | ||
medium: 500, | ||
semibold: 600, | ||
bold: 700, | ||
black: 900, | ||
} | ||
|
||
export const lineHeights = { | ||
xs: "1.125rem", | ||
sm: "1.25rem", | ||
md: "1.5rem", | ||
lg: "1.75rem", | ||
xl: "1.875rem", | ||
} |
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 +1,2 @@ | ||
export * from "./colors" | ||
export * from "./fonts" |