cut0-kage
Publisher: Cut0Themes in package: 1
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
| key | HEX | RGB | RGBA |
|---|---|---|---|
activityBar.activeBorder | |||
activityBar.background | |||
activityBar.border | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
activityBarBadge.foreground | |||
badge.foreground | |||
breadcrumb.activeSelectionForeground | |||
breadcrumb.focusForeground | |||
breadcrumb.foreground | |||
button.foreground | |||
button.secondaryForeground | |||
charts.foreground | |||
checkbox.foreground | |||
commandCenter.activeBorder | |||
commandCenter.activeForeground | |||
commandCenter.foreground | |||
contrastBorder | |||
dart.closingLabels | |||
debugConsole.infoForeground | |||
debugConsole.sourceForeground | |||
debugConsoleInputIcon.foreground | |||
debugTokenExpression.name | |||
debugTokenExpression.value | |||
debugView.exceptionLabelForeground | |||
debugView.stateLabelForeground | |||
dropdown.foreground | |||
editor.background | |||
editor.findMatchBackground | |||
editor.findMatchBorder | |||
editor.foreground | |||
editor.lineHighlightBackground | |||
editor.lineHighlightBorder | |||
editor.selectionBackground | |||
editor.selectionForeground | |||
editor.wordHighlightBackground | |||
editor.wordHighlightBorder | |||
editorCursor.foreground | |||
editorError.border | |||
editorGroup.border | |||
editorGroup.dropIntoPromptForeground | |||
editorGroupHeader.border | |||
editorGroupHeader.noTabsBackground | |||
editorGutter.background | |||
editorGutter.commentRangeForeground | |||
editorGutter.foldingControlForeground | |||
editorHoverWidget.foreground | |||
editorLineNumber.foreground | |||
editorOverviewRuler.border | |||
editorRuler.foreground | |||
editorSuggestWidget.foreground | |||
editorWidget.background | |||
editorWidget.foreground | |||
extensionBadge.remoteForeground | |||
focusBorder | |||
foreground | |||
icon.foreground | |||
input.background | |||
input.border | |||
input.foreground | |||
inputOption.activeForeground | |||
issues.closed | |||
issues.newIssueDecoration | |||
issues.open | |||
keybindingLabel.foreground | |||
list.focusBackground | |||
menu.foreground | |||
menubar.selectionForeground | |||
minimap.selectionHighlight | |||
minimap.selectionOccurrenceHighlight | |||
notebookStatusRunningIcon.foreground | |||
notifications.foreground | |||
panel.background | |||
panel.border | |||
panel.dropBorder | |||
panelTitle.activeForeground | |||
panelTitle.inactiveForeground | |||
peekViewResult.fileForeground | |||
peekViewResult.lineForeground | |||
peekViewResult.selectionForeground | |||
peekViewTitleLabel.foreground | |||
pickerGroup.border | |||
pickerGroup.foreground | |||
pullRequests.notification | |||
quickInput.foreground | |||
settings.checkboxForeground | |||
settings.dropdownForeground | |||
settings.headerForeground | |||
settings.numberInputForeground | |||
settings.textInputForeground | |||
sideBar.background | |||
sideBar.border | |||
sideBarSectionHeader.background | |||
sideBarSectionHeader.border | |||
statusBar.background | |||
statusBar.debuggingForeground | |||
statusBar.foreground | |||
statusBar.noFolderForeground | |||
statusBarItem.errorForeground | |||
statusBarItem.prominentForeground | |||
statusBarItem.remoteForeground | |||
statusBarItem.warningForeground | |||
symbolIcon.arrayForeground | |||
symbolIcon.booleanForeground | |||
symbolIcon.colorForeground | |||
symbolIcon.constantForeground | |||
symbolIcon.fileForeground | |||
symbolIcon.folderForeground | |||
symbolIcon.keyForeground | |||
symbolIcon.keywordForeground | |||
symbolIcon.moduleForeground | |||
symbolIcon.namespaceForeground | |||
symbolIcon.nullForeground | |||
symbolIcon.numberForeground | |||
symbolIcon.objectForeground | |||
symbolIcon.operatorForeground | |||
symbolIcon.packageForeground | |||
symbolIcon.propertyForeground | |||
symbolIcon.referenceForeground | |||
symbolIcon.snippetForeground | |||
symbolIcon.stringForeground | |||
symbolIcon.structForeground | |||
symbolIcon.textForeground | |||
symbolIcon.typeParameterForeground | |||
symbolIcon.unitForeground | |||
tab.activeForeground | |||
tab.inactiveForeground | |||
tab.inactiveModifiedBorder | |||
tab.unfocusedActiveForeground | |||
tab.unfocusedActiveModifiedBorder | |||
tab.unfocusedInactiveForeground | |||
tab.unfocusedInactiveModifiedBorder | |||
terminal.ansiBrightWhite | |||
terminal.background | |||
terminal.foreground | |||
testing.message.error.decorationForeground | |||
textBlockQuote.border | |||
titleBar.activeBackground | |||
titleBar.activeForeground | |||
titleBar.border | |||
titleBar.inactiveBackground |
Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
| scope | HEX | RGB | RGBA |
|---|---|---|---|
comment | |||
comment.block | |||
comment.block.documentation | |||
comment.line | |||
constant | |||
constant.character | |||
constant.character.escape | |||
constant.numeric | |||
constant.numeric.integer | |||
constant.numeric.float | |||
constant.numeric.hex | |||
constant.numeric.octal | |||
constant.other | |||
constant.other.placeholder | |||
entity | |||
entity.name | |||
entity.name.class | |||
entity.name.function | |||
entity.name.namespace | |||
entity.name.tag | |||
entity.name.type | |||
entity.name.type.enum | |||
entity.name.type.interface | |||
entity.name.type.struct | |||
entity.other | |||
entity.other.attribute-name | |||
entity.other.inherited-class | |||
invalid | |||
invalid.deprecated | |||
invalid.illegal | |||
keyword | |||
keyword.control | |||
keyword.control.flow | |||
keyword.operator | |||
keyword.operator.new | |||
keyword.operator.assignment | |||
keyword.operator.arithmetic | |||
keyword.operator.logical | |||
keyword.other | |||
markup | |||
markup.bold | |||
markup.changed | |||
markup.deleted | |||
markup.heading | |||
markup.inline.raw | |||
markup.inserted | |||
markup.italic | |||
markup.list | |||
markup.list.numbered | |||
markup.list.unnumbered | |||
markup.quote | |||
meta | |||
meta.function-call | |||
meta.tag | |||
storage | |||
storage.modifier | |||
storage.type | |||
string | |||
string.interpolated | |||
string.other | |||
string.quoted | |||
string.quoted.double | |||
string.quoted.other | |||
string.quoted.single | |||
string.quoted.triple | |||
string.regexp | |||
string.template | |||
string.unquoted | |||
support | |||
support.class | |||
support.constant | |||
support.function | |||
support.other | |||
support.type | |||
support.type.primitive | |||
support.type.property-name | |||
variable | |||
variable.function | |||
variable.language | |||
variable.name | |||
variable.other | |||
variable.other.constant | |||
variable.other.property | |||
variable.other.readwrite | |||
variable.parameter |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}