Skip to content

Commit 1bee06f

Browse files
authored
v3 colors (#206)
* New color palette vars * Typography
1 parent 4068154 commit 1bee06f

File tree

22 files changed

+1064
-488
lines changed

22 files changed

+1064
-488
lines changed

@stellar/design-system-website/docs/foundations/colors.mdx

+467-117
Large diffs are not rendered by default.

@stellar/design-system-website/docs/foundations/typography/_category_.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"label": "Typography",
33
"link": {
44
"type": "generated-index",
5-
"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."
5+
"description": "Typography (including headings, paragraph, and other text types) examples and documentation."
66
}
77
}

@stellar/design-system-website/docs/foundations/typography/caption.mdx

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
slug: /code
3+
description: "Display text in computer code style."
4+
---
5+
6+
# Code
7+
8+
<ComponentDescription componentName="Code" />
9+
10+
## Example
11+
12+
```tsx live
13+
<PreviewBlock componentName="Code">
14+
<Code size="xs">Code</Code>
15+
</PreviewBlock>
16+
```
17+
18+
## Props
19+
20+
<ComponentProps componentName="Code" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
slug: /display
3+
description: "Generic titles and captions that are not headings."
4+
---
5+
6+
# Display
7+
8+
<ComponentDescription componentName="Display" />
9+
10+
## Example
11+
12+
```tsx live
13+
<PreviewBlock componentName="Display">
14+
<Display size="xs">Display</Caption>
15+
</PreviewBlock>
16+
```
17+
18+
## Props
19+
20+
<ComponentProps componentName="Display" />

@stellar/design-system-website/docs/foundations/typography/paragraph.mdx

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
slug: /text
3+
description: "Display text as p, div, or span."
4+
---
5+
6+
# Text
7+
8+
<ComponentDescription componentName="Text" />
9+
10+
## Example
11+
12+
```tsx live
13+
<PreviewBlock componentName="Text">
14+
<Text as="p" size="xs">
15+
Text
16+
</Text>
17+
</PreviewBlock>
18+
```
19+
20+
## Props
21+
22+
<ComponentProps componentName="Text" />

@stellar/design-system-website/docs/foundations/typography/title.mdx

-20
This file was deleted.

@stellar/design-system-website/docs/get-started/introduction.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ Install SDS by using the package manager of your choice.
3535
npm install @stellar/design-system
3636
```
3737

38-
Add Google Fonts (`Inter Tight`, `Inter`, and `Roboto Mono`) to the `index.html`
39-
file or CSS/styles file.
38+
Add Google Fonts (`Inter` and `Inconsolata`) to the `index.html` file or
39+
CSS/styles file.
4040

4141
```html
4242
<link rel="preconnect" href="https://fonts.googleapis.com" />
4343
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4444
<link
45-
href="https://fonts.googleapis.com/css2?family=Inter+Tight&family=Inter:wght@400;500;600&family=Roboto+Mono&display=swap"
45+
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Inconsolata:wght@500&display=swap"
4646
rel="stylesheet"
4747
/>
4848
```
4949

5050
```css
51-
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight&family=Inter:wght@400;500;600&family=Roboto+Mono&display=swap");
51+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Inconsolata:wght@500&display=swap");
5252
```
5353

5454
Add the main CSS file to your project (for example, the main `index` file of

@stellar/design-system-website/src/componentPreview/captionPreview.tsx

-28
This file was deleted.

@stellar/design-system-website/src/componentPreview/titlePreview.tsx @stellar/design-system-website/src/componentPreview/codePreview.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ComponentPreview } from "@site/src/components/PreviewBlock";
22

3-
export const titlePreview: ComponentPreview = {
3+
export const codePreview: ComponentPreview = {
44
options: [
55
{
66
type: "select",
@@ -18,10 +18,6 @@ export const titlePreview: ComponentPreview = {
1818
value: "md",
1919
label: "MD",
2020
},
21-
{
22-
value: "lg",
23-
label: "LG",
24-
},
2521
],
2622
},
2723
],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { ComponentPreview } from "@site/src/components/PreviewBlock";
2+
3+
export const displayPreview: ComponentPreview = {
4+
options: [
5+
{
6+
type: "select",
7+
prop: "as",
8+
options: [
9+
{
10+
value: "div",
11+
label: "div",
12+
},
13+
{
14+
value: "span",
15+
label: "span",
16+
},
17+
],
18+
},
19+
{
20+
type: "select",
21+
prop: "size",
22+
options: [
23+
{
24+
value: "xs",
25+
label: "XS",
26+
},
27+
{
28+
value: "sm",
29+
label: "SM",
30+
},
31+
{
32+
value: "md",
33+
label: "MD",
34+
},
35+
{
36+
value: "lg",
37+
label: "LG",
38+
},
39+
{
40+
value: "xl",
41+
label: "XL",
42+
},
43+
],
44+
},
45+
{
46+
type: "select",
47+
prop: "weight",
48+
options: [
49+
{
50+
value: "regular",
51+
label: "Regular",
52+
},
53+
{
54+
value: "medium",
55+
label: "Medium",
56+
},
57+
{
58+
value: "semi-bold",
59+
label: "Semi-Bold",
60+
},
61+
{
62+
value: "bold",
63+
label: "Bold",
64+
},
65+
],
66+
},
67+
],
68+
};

@stellar/design-system-website/src/componentPreview/headingPreview.tsx

+20-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,27 @@ export const headingPreview: ComponentPreview = {
5656
value: "xl",
5757
label: "XL",
5858
},
59+
],
60+
},
61+
{
62+
type: "select",
63+
prop: "weight",
64+
options: [
65+
{
66+
value: "regular",
67+
label: "Regular",
68+
},
69+
{
70+
value: "medium",
71+
label: "Medium",
72+
},
73+
{
74+
value: "semi-bold",
75+
label: "Semi-Bold",
76+
},
5977
{
60-
value: "xxl",
61-
label: "XXL",
78+
value: "bold",
79+
label: "Bold",
6280
},
6381
],
6482
},

@stellar/design-system-website/src/componentPreview/paragraphPreview.tsx

-33
This file was deleted.

0 commit comments

Comments
 (0)