Home / Type/ ArbitraryUtilityValue Type — tailwindcss Architecture

ArbitraryUtilityValue Type — tailwindcss Architecture

Architecture documentation for the ArbitraryUtilityValue type/interface in candidate.ts from the tailwindcss codebase.

Entity Profile

Source Code

packages/tailwindcss/src/candidate.ts lines 15–42

export type ArbitraryUtilityValue = {
  kind: 'arbitrary'

  /**
   * ```
   * bg-[color:var(--my-color)]
   *     ^^^^^
   *
   * bg-(color:--my-color)
   *     ^^^^^
   * ```
   */
  dataType: string | null

  /**
   * ```
   * bg-[#0088cc]
   *     ^^^^^^^
   *
   * bg-[var(--my_variable)]
   *     ^^^^^^^^^^^^^^^^^^
   *
   * bg-(--my_variable)
   *     ^^^^^^^^^^^^^^
   * ```
   */
  value: string
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free