Skip to content

Instantly share code, notes, and snippets.

@alanbsmith
Last active May 28, 2021 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanbsmith/9b28620705ac365600719734ced7cbc4 to your computer and use it in GitHub Desktop.
Save alanbsmith/9b28620705ac365600719734ced7cbc4 to your computer and use it in GitHub Desktop.
Type Mappings

Type Hierarchy Mapping

Main Mapping

Labs Mapping

  • { type.body2 } => { type.levels.subtext.medium }

Type Variant Mapping

No Longer Variants

Button

  • { type.variant.button } => { fontWeight: type.properties.fontWeights.medium }

Caps

  • { type.variant.caps } => { fontWeight: type.properties.fontWeights.bold, textTransform: 'uppercase' }

Label

  • { type.variant.label } => { fontWeight: type.properties.fontWeights.medium }

Link

  • use Hyperlink component

Mono

  • { type.variant.mono } => { fontFamily: type.properties.fonts.monospace }

Still Variants, But Different Object Keys

Error

  • { type.variant.error } => { type.variants.error }

Hint

  • { type.variant.hint } => { type.variants.hint }

Inverse

  • { type.variant.inverse } => { type.variants.inverse }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment