Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 820 Bytes

color-helpers.md

File metadata and controls

39 lines (21 loc) · 820 Bytes

File Helpers

This document outlines file helpers available.

Usage

Import the helper from the library:

import { ColorHelper } from "@supernovaio/export-helpers";

And use any static method available on the helper object ColorHelper.

Available methods

formattedColorOrVariableName

Converts a color token value to a formatted color or variable name if token is a reference with format of your choosing

formattedColor

Converts a color token value to a formatted color with format of your choosing

colorToRgb

Converts a color token value to a RGB color

colorToHex

Converts a color token value to a HEX color

colorToHsl

Converts a color token value to a HSL color

colorToUIColor

Converts a color token value to a UIColor