From 6aee3ee806fd1942f79dd5d738b46f0df04d0e24 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Thu, 5 Dec 2024 09:48:59 -0500 Subject: [PATCH 1/3] docs(tokens): Rearranging the Tokens docs by moving Token types up and making them rh-cards --- docs/tokens/index.md | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/tokens/index.md b/docs/tokens/index.md index 8dae4cfac6..24801c0cd2 100644 --- a/docs/tokens/index.md +++ b/docs/tokens/index.md @@ -49,6 +49,34 @@ To install design tokens, please visit our dedicated repo for instructions. Install our design tokens +## Types of tokens + +
+ +

Global tokens

+

Global tokens represent the foundations of our design language and should + have context-agnostic names. These can be used and are inherited by other + token types.

+

Example: --rh-brand-red-500

+
+ + +

Semantic tokens

+

Semantic tokens represent context or abstraction. They communicate the purpose + of a token and are effective when a value with a single intent is used + multiple times.

+

Example: --rh-color-surface-lightest

+
+ + +

Element tokens

+

Element tokens link semantic tokens to specific elements. They are + prefixed with the element name and ship in the @rhds/elements package, + rather than @rhds/tokens.

+

Example: --rh-cta-color-primary

+
+
+ ## Token categories We want your feedback on our tokens. [Contact us][contact] if there are missing @@ -127,34 +155,6 @@ values or if you have an idea for an output format or tool integration. -## Types of tokens - -
-
-

Global tokens

-

Global tokens represent the foundations of our design language and should - have context-agnostic names. These can be used and are inherited by other - token types.

- --rh-brand-red-500 -
- -
-

Semantic tokens

-

Semantic tokens represent context or abstraction. They communicate the purpose - of a token and are effective when a value with a single intent is used - multiple times.

- --rh-color-surface-lightest -
- -
-

Element tokens

-

Element tokens link semantic tokens to specific elements. They are - prefixed with the element name and ship in the @rhds/elements package, - rather than @rhds/tokens.

- --rh-cta-color-primary -
-
- ## Why we need tokens In addition to being the source of truth of our design decisions, design tokens From 4d5db77c8b3106a39667da8b6ade5aa4af2a4764 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Thu, 5 Dec 2024 09:57:24 -0500 Subject: [PATCH 2/3] docs(tokens): import r-card --- docs/tokens/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tokens/index.md b/docs/tokens/index.md index 24801c0cd2..ac7285191d 100644 --- a/docs/tokens/index.md +++ b/docs/tokens/index.md @@ -10,6 +10,7 @@ tokenSearch: true From 2ab94ced58c50749ca4a93cbfb11fc7179c656f8 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Thu, 5 Dec 2024 10:08:05 -0500 Subject: [PATCH 3/3] docs(tokens): fix card height alignment --- docs/tokens/index.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/tokens/index.md b/docs/tokens/index.md index ac7285191d..d29dfdda48 100644 --- a/docs/tokens/index.md +++ b/docs/tokens/index.md @@ -15,7 +15,7 @@ tokenSearch: true ## Introduction @@ -52,13 +56,13 @@ To install design tokens, please visit our dedicated repo for instructions. ## Types of tokens -
+

Global tokens

Global tokens represent the foundations of our design language and should have context-agnostic names. These can be used and are inherited by other token types.

-

Example: --rh-brand-red-500

+

Example:
--rh-brand-red-500

@@ -66,7 +70,7 @@ To install design tokens, please visit our dedicated repo for instructions.

Semantic tokens represent context or abstraction. They communicate the purpose of a token and are effective when a value with a single intent is used multiple times.

-

Example: --rh-color-surface-lightest

+

Example:
--rh-color-surface-lightest

@@ -74,7 +78,7 @@ To install design tokens, please visit our dedicated repo for instructions.

Element tokens link semantic tokens to specific elements. They are prefixed with the element name and ship in the @rhds/elements package, rather than @rhds/tokens.

-

Example: --rh-cta-color-primary

+

Example:
--rh-cta-color-primary