Skip to content

Commit

Permalink
Add basic typography styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 20, 2023
1 parent 51612f5 commit 882a059
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dapp/src/components/Typography/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react"
import { Text, TextProps } from "@chakra-ui/react"

export function BodySm(props: TextProps) {
return (
<Text
as="p"
fontWeight="400"
fontSize="14px"
lineHeight="24px"
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
)
}

export function BodyMd(props: TextProps) {
return (
<Text
as="p"
fontWeight="400"
fontSize="16px"
lineHeight="24px"
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
)
}

0 comments on commit 882a059

Please sign in to comment.