Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 colors #206

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
584 changes: 467 additions & 117 deletions @stellar/design-system-website/docs/foundations/colors.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"label": "Typography",
"link": {
"type": "generated-index",
"description": "Typography (including headings, paragraph, and other text types) examples and documentation. These components don’t have any special props, and inherit their native HTML attributes."
"description": "Typography (including headings, paragraph, and other text types) examples and documentation."
}
}

This file was deleted.

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" />
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" />

This file was deleted.

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" />

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentPreview } from "@site/src/components/PreviewBlock";

export const titlePreview: ComponentPreview = {
export const codePreview: ComponentPreview = {
options: [
{
type: "select",
Expand All @@ -18,10 +18,6 @@ export const titlePreview: ComponentPreview = {
value: "md",
label: "MD",
},
{
value: "lg",
label: "LG",
},
],
},
],
Expand Down
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",
},
],
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,27 @@ export const headingPreview: ComponentPreview = {
value: "xl",
label: "XL",
},
],
},
{
type: "select",
prop: "weight",
options: [
{
value: "regular",
label: "Regular",
},
{
value: "medium",
label: "Medium",
},
{
value: "semi-bold",
label: "Semi-Bold",
},
{
value: "xxl",
label: "XXL",
value: "bold",
label: "Bold",
},
],
},
Expand Down

This file was deleted.

Loading