tuil
ReferencePackages@mwillbanks/tuil-codeAPI

CodeTheme

interface exported by @mwillbanks/tuil-code.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-code.

export interface CodeTheme {
  readonly tokenStyles: Readonly<
    Record<string, { readonly foreground?: string; readonly bold?: boolean }>
  >;
  readonly diagnosticStyles: Readonly<
    Record<CodeDiagnostic["severity"], { readonly foreground: string }>
  >;
}

Members

MemberTypeRequiredDescriptionRelated types
tokenStylesReadonly<Record<string, &#123; readonly foreground?: string; readonly bold?: boolean; &#125;>>YesThe tokenStyles member uses the Readonly<Record<string, &#123; readonly foreground?: string; readonly bold?: boolean; &#125;>> contract.
diagnosticStylesReadonly<Record<"info" | "warning" | "error", &#123; readonly foreground: string; &#125;>>YesThe diagnosticStyles member uses the Readonly<Record<"info" | "warning" | "error", &#123; readonly foreground: string; &#125;>> contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-code

On this page