docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a utility that validates terminal style profiles using the styling library's published metadata.
modifiers, foreground, and background string arrays; when all provided tokens exist in the dependency's metadata lists for their category (case-insensitive), returns no unsupported entries. @testexport interface StyleProfile {
modifiers?: string[];
foreground?: string[];
background?: string[];
}
export interface ValidationResult {
valid: Partial<Record<"modifiers" | "foreground" | "background", string[]>>;
unsupported: Partial<Record<"modifiers" | "foreground" | "background", string[]>>;
}
export function validateProfile(profile: StyleProfile): ValidationResult;
export function listSupportedStyles(): {
modifiers: string[];
foreground: string[];
background: string[];
};Provides terminal styling metadata for validation.