-
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.
Browse files
Browse the repository at this point in the history
This PR moves Tokens docs from Introduction to Separate page that links to existing token docs. It also adds a note on Compilers and compatibility to introduction and cleans up syntax highlighting and links in other documentation pages
- Loading branch information
1 parent
ce024f5
commit 9ddad0e
Showing
9 changed files
with
47 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Meta } from '@storybook/addon-docs' | ||
import LinkTo from '@storybook/addon-links/react' | ||
|
||
<Meta title="Overview/Tokens" /> | ||
|
||
# Tokens | ||
|
||
Tokens are defined in `src/core/tokens` | ||
|
||
- All core tokens are defined in `src/core/tokens/base_tokens.scss` | ||
- Color scale tokens are defined in `src/core/tokens/scale_color_tokens.scss` | ||
- Dark mode tokens are defined in `src/core/tokens/dark_mode_tokens.scss` | ||
|
||
There are also a few component specific tokens that are defined in their respective component file, but those are not indented to be global or used outside of that file. | ||
|
||
There is a JSON file in `docs/token_structure.json` that lists all the current tokens in one place and shows how the names indicate organization. | ||
|
||
## Base Tokens | ||
|
||
- <LinkTo kind="tokens-border--default">Border</LinkTo> | ||
- <LinkTo kind="tokens-typography-font-family">Font Family</LinkTo> | ||
- <LinkTo kind="tokens-typography-font-size">Font Size</LinkTo> | ||
- <LinkTo kind="tokens-typography-font-weight">Font Weight</LinkTo> | ||
- <LinkTo kind="tokens-typography-letter-spacing">Letter Spacing</LinkTo> | ||
- <LinkTo kind="tokens-typography-line-height">Line Height</LinkTo> | ||
- <LinkTo kind="tokens-shadow--x-small">Shadow</LinkTo> | ||
- <LinkTo kind="tokens-transition--default">Transition</LinkTo> |
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
File renamed without changes.
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 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