1. Home
  2. Resources
  3. Implementation status

How Kanso reaches code, and where Kanso UI stands on the way.

Where it stands

  • Tokens: done. kanso-ui-core holds Kanso's tokens: kanso-ui 0.54.0 builds from kanso-ui-core 0.6.1, and react-native-kanso-ui 0.20.0 from the same 0.6.1. Kanso's own names sit beside Material Design's: kui-color-paper, kui-color-ink, kui-color-accent, kui-spacing-kanso-*, kui-radius-kanso-*, kui-shadow-kanso-*, kui-sizing-kanso-*, kui-typography-t-*. Every Material Design role is a reference to a Kanso colour (kui-color-surface is paper, kui-color-on-surface is ink, kui-color-on-surface-variant is ink-muted, kui-color-primary is accent), so the components drew in Kanso's colours the day the tokens landed.
  • Product colours: generic. No product's colour lives in Kanso UI. A product defines its palette with defineProductTheme, from kanso-ui-core 0.6.1, and both libraries draw the same theme: kanso-ui 0.54.0 with ThemeScope's productTheme and productThemeStyle, and react-native-kanso-ui 0.20.0 with ThemeScope's productTheme, since a phone has no <html> to style. The stories show it with the sample, violet.
  • Type: the faces are in place. Both libraries ship Roboto Serif, Flex and Mono, and Kanso's scale is published as --kui-typography-t-*. Text moves from the 15 Material Design roles to Kanso's scale with the type release.
  • Components: family by family. Each component takes the look and states on its Kanso page with its family's release, keeping its name and props where they exist. Actions are in Kanso in both libraries, since kanso-ui 0.54.0 and react-native-kanso-ui 0.19.0: Button, ButtonGroup, IconButton, Fab, Link, SplitButton and FabMenu. Until its release, a family keeps its current look, which follows its Material Design spec page.

What changes name

KansoKanso UI
DividerSeparator takes Divider's look, the now line included.
SegmentedControlSegmentedButton takes SegmentedControl's look.
FigureComing, to set the hero number and every other figure; Currency sets amounts today.
NavigationPaneComing, in place of NavigationRail and NavigationTree on wide windows.
SpotlightCard, StatusMark, InlineAlertComing, in both libraries.

EmptyState is built already, and takes Kanso's marks with its family.

Rules for code

  • Read colours, sizes and fonts from the tokens; never hard-code a value a token holds.
  • Keep this system's component names, so designs, docs and code say the same thing.
  • Every component change updates its page here: the guidelines and the preview are the contract. Each family's pull request brings its own pages, through the daily sync.
  • Check both themes, keyboard use, a right-to-left locale and a screen reader before a component ships.