Skip to content

Commit 6971900

Browse files
ktranDevtools-frontend LUCI CQ
authored andcommitted
[doc] Add info on token files
Bug: 357513556 Change-Id: Ifde54a74c877790dd361e1184f47ec820a704ae1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6229628 Commit-Queue: Kim-Anh Tran <[email protected]> Auto-Submit: Kim-Anh Tran <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
1 parent 38e4503 commit 6971900

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/styleguide/ux/styles.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
[TOC]
44

5+
## Design tokens
6+
7+
Design tokens are the building blocks for our design system, and they define
8+
values like colors, fonts, and sizes. Use these tokens instead of hard coded
9+
values. You can find the tokens in
10+
[design\_system\_tokens.css](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/design_system_tokens.css).
11+
12+
*Note*: In rare cases we allow for one-off tokens that are used in the code,
13+
e.g. if requested explicitly by our UX team. They are defined in
14+
[application\_tokens.css](https://crsrc.org/c/third_party/devtools-frontend/src/front_end/application_tokens.css).
15+
516
## Colors
617

718
We define three sets of color token types, **reference/palette tokens**,

0 commit comments

Comments
 (0)