This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Artboard formatting
Thibault Maekelbergh edited this page Jun 24, 2019
·
4 revisions
Take a peek at the mock document to see correct usage of artboard formatting.
All your design tokens should be placed on a page inside the document called primitives
. Symbolizing your artboards does not matter for Hubble.
Tokens can be extracted by following the artboard format. Name your Artboards according to the format to have them extracted if they support Artboard formatting:
primitives/<token>/<id>/variant
e.g: primitives/color/secondary/100, primitives/shadow/inner-default
Some tokens have the option to be exported via Document tokens (e.g Sketch Document Colors, Text Styles). Refer to the table below to see how tokens are supported.
Token type | Token ID | Supports variants | Artboard | Document |
---|---|---|---|---|
Plain colors | color |
β | β | β |
Gradients | gradient |
β | β | |
Text Styles | text-style |
β | ||
Inner & Drop Shadows |
inner-shadow , drop-shadow
|
β | ||
Border Style (+color) | border |
β |
β οΈ Because Sketch does not tell us if a shadow is an inner or an outer shadow, you have to define it manually using the token format above.