Extensions

The following extensions are available globally.

Core Colors

  • Anatomy includes standardized, named colors such as primaryBrandViolet or statusSuccess.

    These colors can be accessed by name via color literals in the asset catalog or programmatically via static properties.

    Colors should be used based on their semantic definition on on their currently existing color as these colors can be changed in any given version. For example, to report successful statuses, use statusSuccess, but if you merely need a green color then don’t assume this color will always be green.

    The grayscale colors are an exception to this, since they’re named by their shade of gray, and can be reliably used based on their color name.

    See more

    Declaration

    Swift

    public extension UIColor

Anatomy Typography

  • Anatomy includes standardized, named typography. These names map almost exactly to what iOS provides natively, but are the preferred way to match fonts in the Design System.

    See more

    Declaration

    Swift

    public extension UIFont

Anatomy Internal Images