-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from pheralb/pheralb
⚒️ Docs sidebar improvements + MDX Components + fix bugs.
- Loading branch information
Showing
12 changed files
with
103 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
--- | ||
title: Getting Started with SuperUI. | ||
title: Getting Started | ||
tags: | ||
- react | ||
- tailwindcss | ||
date: "2022-08-05" | ||
description: SuperUI is a amazing UI library for React. | ||
--- | ||
#### Design goals | ||
|
||
# 🚀 Getting Started | ||
|
||
Install SuperUI: | ||
Install SuperUI | ||
|
||
```bash | ||
npm install superui | ||
npm install | ||
``` | ||
|
||
#### Accessibility | ||
|
||
The design system follow WCAG standards as best it can (continuely improved!) via the use of [Radix-UI](https://www.radix-ui.com/) base components and accessible default themes. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,68 @@ | ||
import { | ||
Divider, | ||
Heading, | ||
ListItem, | ||
OrderedList, | ||
Table, | ||
Tbody, | ||
Td, | ||
Text, | ||
Th, | ||
Thead, | ||
Tr, | ||
UnorderedList, | ||
Link, | ||
TableColumnHeaderProps, | ||
ListProps, | ||
TableProps, | ||
TextProps, | ||
TableRowProps, | ||
TableBodyProps, | ||
HeadingProps, | ||
LinkProps, | ||
ListItemProps, | ||
} from "@chakra-ui/react"; | ||
|
||
export const MDXComponents = { | ||
a: (props: LinkProps) => ( | ||
<Link textDecoration="underline" isExternal={true} {...props} /> | ||
), | ||
hr: (props: TextProps) => <Divider {...props} />, | ||
h1: (props: HeadingProps) => ( | ||
<Heading as="h1" mt={8} mb={3} size="3xl" fontWeight="light" {...props} /> | ||
), | ||
h2: (props: HeadingProps) => ( | ||
<Heading as="h2" mt={6} mb={16} size="2xl" fontWeight="bold" {...props} /> | ||
), | ||
h3: (props: HeadingProps) => ( | ||
<Heading as="h3" mt={8} mb={3} size="lg" fontWeight="light" {...props} /> | ||
), | ||
h4: (props: HeadingProps) => ( | ||
<Heading | ||
as="h4" | ||
mt={8} | ||
mb={3} | ||
fontSize="24px" | ||
fontWeight="light" | ||
{...props} | ||
/> | ||
), | ||
h5: (props: HeadingProps) => ( | ||
<Heading as="h5" mt={8} mb={3} size="md" fontWeight="light" {...props} /> | ||
), | ||
h6: (props: HeadingProps) => ( | ||
<Heading as="h6" mt={8} mb={3} size="sm" fontWeight="light" {...props} /> | ||
), | ||
p: (props: TextProps) => <Text fontSize="lg" mb={3} {...props} />, | ||
table: (props: TableProps) => ( | ||
<Table variant="striped" colorScheme="orange" {...props} /> | ||
), | ||
thead: (props: TableBodyProps) => <Thead {...props} />, | ||
tbody: (props: TableBodyProps) => <Tbody {...props} />, | ||
th: (props: TableColumnHeaderProps) => <Th {...props} />, | ||
tr: (props: TableRowProps) => <Tr {...props} />, | ||
td: (props: TableColumnHeaderProps) => <Td {...props} />, | ||
ul: (props: ListProps) => <UnorderedList styleType="none" {...props} />, | ||
ol: (props: ListProps) => <OrderedList styleType="none" {...props} />, | ||
li: (props: ListItemProps) => <ListItem {...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
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