Options
All
  • Public
  • Public/Protected
  • All
Menu

Project @beamwind/colors - v2.0.3

Index

Type aliases

ThemeColors

ThemeColors: Record<string, undefined | string>

Functions

Const createOnColor

Const createShadeVariants

Const generateColors

Const generateOnColors

Const getContrastVariant

  • getContrastVariant(color: string): string

Const getDarkVariant

  • getDarkVariant(color: string): string
  • Parameters

    • color: string

    Returns string

Const getLightVariant

  • getLightVariant(color: string): string
  • Parameters

    • color: string

    Returns string

Const getShadeVariant

  • getShadeVariant(color: string, ifLight: number, ifDark?: number): string

Const isLight

  • isLight(color: string): boolean
  • Parameters

    • color: string

    Returns boolean

Const shade

  • shade(color: string, amount: number): string

Generated using TypeDoc