-
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.
Adds initial work on theme structure.
Adds initial work theme colors, spacing, radius and typography. Adds typography sizes WIP - Feedback Adds rebass Adds initial theme changes Adds theme provider to stories Moves stories to ts Adds button variants and placeholder colors Visualizes palette Adds font weights, space, radius and buttons Cleans up variants file Updates palette display Moves theme to root Cleans up some type definitions
- Loading branch information
1 parent
24e3729
commit 7cf6a59
Showing
20 changed files
with
621 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
build | ||
storybook-static | ||
build | ||
lib |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import * as React from "react"; | ||
import { storiesOf } from "@storybook/react"; | ||
|
||
import { Button } from "./index"; | ||
|
||
const stories = storiesOf("Button", module); | ||
|
||
stories | ||
.add("Primary", () => <Button variant="primary">Hello TypeScript</Button>, { | ||
info: { inline: true } | ||
}) | ||
.add( | ||
"Secondary", | ||
() => <Button variant="secondary">Hello TypeScript</Button>, | ||
{ | ||
info: { inline: true } | ||
} | ||
) | ||
.add( | ||
"Disabled", | ||
() => ( | ||
<Button variant="primary" isDisabled={true}> | ||
Hello TypeScript | ||
</Button> | ||
), | ||
{ | ||
info: { inline: true } | ||
} | ||
); |
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
Oops, something went wrong.