-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New color palette vars * Typography
- Loading branch information
Showing
22 changed files
with
1,064 additions
and
488 deletions.
There are no files selected for viewing
584 changes: 467 additions & 117 deletions
584
@stellar/design-system-website/docs/foundations/colors.mdx
Large diffs are not rendered by default.
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
20 changes: 0 additions & 20 deletions
20
@stellar/design-system-website/docs/foundations/typography/caption.mdx
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
@stellar/design-system-website/docs/foundations/typography/code.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
slug: /code | ||
description: "Display text in computer code style." | ||
--- | ||
|
||
# Code | ||
|
||
<ComponentDescription componentName="Code" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Code"> | ||
<Code size="xs">Code</Code> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Code" /> |
20 changes: 20 additions & 0 deletions
20
@stellar/design-system-website/docs/foundations/typography/display.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
slug: /display | ||
description: "Generic titles and captions that are not headings." | ||
--- | ||
|
||
# Display | ||
|
||
<ComponentDescription componentName="Display" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Display"> | ||
<Display size="xs">Display</Caption> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Display" /> |
20 changes: 0 additions & 20 deletions
20
@stellar/design-system-website/docs/foundations/typography/paragraph.mdx
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
@stellar/design-system-website/docs/foundations/typography/text.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
slug: /text | ||
description: "Display text as p, div, or span." | ||
--- | ||
|
||
# Text | ||
|
||
<ComponentDescription componentName="Text" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Text"> | ||
<Text as="p" size="xs"> | ||
Text | ||
</Text> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Text" /> |
20 changes: 0 additions & 20 deletions
20
@stellar/design-system-website/docs/foundations/typography/title.mdx
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 |
---|---|---|
|
@@ -35,20 +35,20 @@ Install SDS by using the package manager of your choice. | |
npm install @stellar/design-system | ||
``` | ||
|
||
Add Google Fonts (`Inter Tight`, `Inter`, and `Roboto Mono`) to the `index.html` | ||
file or CSS/styles file. | ||
Add Google Fonts (`Inter` and `Inconsolata`) to the `index.html` file or | ||
CSS/styles file. | ||
|
||
```html | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter+Tight&family=Inter:wght@400;500;600&family=Roboto+Mono&display=swap" | ||
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Inconsolata:wght@500&display=swap" | ||
rel="stylesheet" | ||
/> | ||
``` | ||
|
||
```css | ||
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight&family=Inter:wght@400;500;600&family=Roboto+Mono&display=swap"); | ||
@import url("https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Inconsolata:wght@500&display=swap"); | ||
``` | ||
|
||
Add the main CSS file to your project (for example, the main `index` file of | ||
|
28 changes: 0 additions & 28 deletions
28
@stellar/design-system-website/src/componentPreview/captionPreview.tsx
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
68 changes: 68 additions & 0 deletions
68
@stellar/design-system-website/src/componentPreview/displayPreview.tsx
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 { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const displayPreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "as", | ||
options: [ | ||
{ | ||
value: "div", | ||
label: "div", | ||
}, | ||
{ | ||
value: "span", | ||
label: "span", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "select", | ||
prop: "size", | ||
options: [ | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "lg", | ||
label: "LG", | ||
}, | ||
{ | ||
value: "xl", | ||
label: "XL", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "select", | ||
prop: "weight", | ||
options: [ | ||
{ | ||
value: "regular", | ||
label: "Regular", | ||
}, | ||
{ | ||
value: "medium", | ||
label: "Medium", | ||
}, | ||
{ | ||
value: "semi-bold", | ||
label: "Semi-Bold", | ||
}, | ||
{ | ||
value: "bold", | ||
label: "Bold", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
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
33 changes: 0 additions & 33 deletions
33
@stellar/design-system-website/src/componentPreview/paragraphPreview.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.