@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
64 lines (40 loc) • 1.9 kB
text/mdx
import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
import {InformationHighlight} from '@workday/canvas-kit-preview-react/information-highlight';import {BorderRadius, Space, Depth, Colors, Type} from './examples/Tokens';
import Overview from './examples/Overview';
<InformationHighlight>
<InformationHighlight.Icon />
<InformationHighlight.Heading>New Tokens Package Available!</InformationHighlight.Heading>
<InformationHighlight.Body>
The tokens documented below are still available in Canvas Kit but are being replaced by our new
Canvas Tokens Web package. We encourage you to begin moving to our new tokens.
</InformationHighlight.Body>
<InformationHighlight.Link href="https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs">
View the Docs
</InformationHighlight.Link>
</InformationHighlight>
Tokens are the smallest pieces of our Design System with the primary function of storing UI
information. They enable building components and patterns with consistency across our platforms.
<ExampleCodeBlock code={Overview} />
<ExampleCodeBlock code={BorderRadius} />
Our color system enables consistency and recognition across many contexts. There are 27 sets of hues
with six shades in each color set.
<ExampleCodeBlock code={Colors} />
Light and shadows are utilized to indicate a sense of depth. This establishes hierarchy and provides
predictability within the Canvas user interface.
<ExampleCodeBlock code={Depth} />
This guide will help you make decisions when spacing elements in your designs using our space Tokens
<ExampleCodeBlock code={Space} />
Typography is at the core of our interface. With it, we create clear hierarchies that guide users
through our products.
<ExampleCodeBlock code={Type} />