Skip to content

ColorScheme

export interface ColorScheme {
editor: {
bg: string
fg: string
cursor: string
lineNumber?: string
}
ui: {
bg: string
fg: string
border: string
shadow?: string
}
primary: string
primaryContent: string
accent: string
success?: string
info?: string
warn?: string
error?: string
misc?: string
syntax: {
keyword: string
variables: string
string: string
punctuation: string
numeric: string
class: string
const?: string
comment?: string
regexp?: string
macros?: string
func?: {
name?: string
param?: string
}
brackets?: {
1?: string
2?: string
3?: string
}
}
}

The ColorScheme type is used to represent the colors of a theme. It uses just RGB colors in hexadecimal format.

Properties

NameTypeDescription
editorEditorColorsEditor related colors
uiUiColorsUser Interface related colors
primarystringThe primary color of the theme.
primaryContentstringThe color of the content that will be inside the primary color
accentstringColor for details
successstring?Success
infostring?Information color
warnstring?Warning color
errorstring?Error color
miscstring?A miscellaneous color of the theme.
syntaxSyntaxColorsCode syntax related colors

EditorColors

NameTypeDescription
bgstringBackground color
fgstringForeground color
cursorstringCursor color
lineNumberstring?Line number color

UiColors

NameTypeDescription
bgstringBackground color
fgstringForeground color
borderstringBorder color
shadowstring?Shadow color

SyntaxColors

NameTypeDescription
keywordstringKeyword color
variablesstringVariables color
stringstringString color
punctuationstringPunctuation color
numericstringNumeric color
classstringClass color
conststring?Constant color
commentstring?Comment color
regexpstring?Regular expression color
macrosstring?Macros color
funcFunctionColors?Function related colors
bracketsBracketsColors?Bracket related colors

FunctionColors

NameTypeDescription
namestring?Function name color
paramstring?Function parameter color

BracketsColors

NameTypeDescription
1string?First level bracket color
2string?Second level bracket color
3string?Third level bracket color