@yamlresume/core
    Preparing search index...

    Function resolveColorHex

    • Resolve a color to a 6-character uppercase hex string without #.

      Named color presets are mapped via ACCENT_COLOR_PRESET_HEX_MAP, raw #RRGGBB hex strings are normalized (stripped of # and uppercased).

      Note: schema validation errors are non-fatal in the CLI build pipeline, so a malformed value may still reach the renderers; in that case we return null and fall back to the template default instead of emitting broken engine code.

      Parameters

      • color:
            | "black"
            | "blue"
            | "burgundy"
            | "cerulean"
            | "green"
            | "grey"
            | "orange"
            | "purple"
            | "red"
            | `#${string}`

        The color to resolve.

      Returns string

      The resolved hex string, or null when the color is unset or malformed.