-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed console errors added thead and tbody tags to fix DOM node parity error added Text component to layout context added SEO updated readme added description frontmatter to MDX source files, closes #2 fixed console errors added thead and tbody tags to fix DOM node parity error added Text component to layout context added shadow props added box and text shadow props updated margins on nav menu updated documentation with shadow props added textStart and textEnd props added Card component and prefab documentation page (#15) changed import order updated getting started page and nav menu ordering, fixed incorrect DocLink updated layout formatting updated card styles updated README updated features list for parity with README v0.2.2
- Loading branch information
Showing
26 changed files
with
195 additions
and
77 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 was deleted.
Oops, something went wrong.
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,28 @@ | ||
--- | ||
index: 10 | ||
title: Sandbox | ||
description: Sandbox/playground for working with and testing the Shakti library. | ||
path: /sandbox | ||
--- | ||
|
||
The below code editor is live, with full access to Shakti components and props. Give it a try! | ||
|
||
```tsx live=true | ||
<> | ||
<Grid alignCenter textCenter> | ||
<Row flexCol> | ||
<Col px={14} color="green" bgColor="lavender">green 🌲</Col> | ||
<Col | ||
bgColor="mistyrose" | ||
border="5px solid burlywood" | ||
borderStyle="dashed" | ||
textShadow="2px 2px" | ||
> | ||
🍄 | ||
</Col> | ||
</Row> | ||
</Grid> | ||
|
||
<Card/> | ||
</> | ||
``` |
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,31 @@ | ||
--- | ||
index: 8 | ||
title: Prefabs | ||
description: Prefabricated components in the Shakti library. | ||
path: /prefabs | ||
--- | ||
|
||
Although Shakti allows you to easily build your own component library from its primitives, there are also some prefabricated ("prefab") components you can drop into your application. They are more integrated and thorough than the primitive components, but still allow the flexibility of composition. All Shakti prefabs allow <code>Base</code> props to be mixed in, as well as props from components they are composed upon (i.e. if a prefab is built on <code>Flex</code>, it can, of course, accept <code>Flex</code> props). | ||
|
||
<Alert> | ||
It is recommended to avoid using prefabs in favor of building your own custom UI components, but they can be used if you want quick prototypes or want to have a more comprehensive base for creating UI compositions. | ||
</Alert> | ||
|
||
## Card | ||
A card is a <code>Flex</code> component augmented with custom styles to make it look "card-like". | ||
|
||
```tsx | ||
<Card bgColor="#af33ff" alignCenter justifySpaceAround> | ||
<Text color="white" my={18}>Not quite a credit card</Text> | ||
<Text>💳</Text> | ||
</Card> | ||
``` | ||
|
||
```tsx render=true | ||
render(() => ( | ||
<Card bgColor="#af33ff" alignCenter justifySpaceAround> | ||
<Text color="white" my={18}>Not quite a credit card</Text> | ||
<Text>💳</Text> | ||
</Card> | ||
)) | ||
``` |
2 changes: 1 addition & 1 deletion
2
docs/src/content/8-recipes.mdx → docs/src/content/9-recipes.mdx
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
// Card prefab component (exported to public API). | ||
|
||
import styled from "styled-components"; | ||
|
||
import { Flex } from "../Layout/Layout"; | ||
import theme from "../../constants/theme"; | ||
|
||
const Card = styled(Flex)` | ||
box-shadow: ${theme.shadows.main}; | ||
border-radius: 8px; | ||
padding: 10px; | ||
`; | ||
|
||
export default Card; |
File renamed without changes.
Oops, something went wrong.