Warm up - Medium Dark Theme with clear colors
Publisher: Stephan LöcherThemes in package: 1
A dark brown color Theme with clearly highlighted Syntax.
A dark brown color Theme with clearly highlighted Syntax.
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.activeBackground | |||
activityBar.background | |||
activityBar.foreground | |||
activityBarBadge.background | |||
activityBarBadge.foreground | |||
badge.background | |||
badge.foreground | |||
button.background | |||
button.foreground | |||
debugConsole.errorForeground | |||
debugConsole.infoForeground | |||
debugConsole.sourceForeground | |||
debugConsole.warningForeground | |||
debugConsoleInputIcon.foreground | |||
debugExceptionWidget.background | |||
debugExceptionWidget.border | |||
debugIcon.breakpointCurrentStackframeForeground | |||
debugIcon.breakpointDisabledForeground | |||
debugIcon.breakpointForeground | |||
debugIcon.breakpointStackframeForeground | |||
debugIcon.breakpointUnverifiedForeground | |||
debugIcon.continueForeground | |||
debugIcon.disconnectForeground | |||
debugIcon.pauseForeground | |||
debugIcon.restartForeground | |||
debugIcon.startForeground | |||
debugIcon.stepBackForeground | |||
debugIcon.stepIntoForeground | |||
debugIcon.stepOutForeground | |||
debugIcon.stepOverForeground | |||
debugIcon.stopForeground | |||
debugTokenExpression.boolean | |||
debugTokenExpression.error | |||
debugTokenExpression.name | |||
debugTokenExpression.number | |||
debugTokenExpression.string | |||
debugTokenExpression.value | |||
debugToolBar.background | |||
debugView.exceptionLabelBackground | |||
debugView.exceptionLabelForeground | |||
debugView.stateLabelBackground | |||
debugView.stateLabelForeground | |||
debugView.valueChangedHighlight | |||
descriptionForeground | |||
diffEditor.insertedTextBackground | |||
diffEditor.removedTextBackground | |||
dropdown.background | |||
dropdown.border | |||
dropdown.foreground | |||
editor.background | |||
editor.findMatchBackground | |||
editor.foreground | |||
editor.hoverHighlightBackground | |||
editor.inactiveSelectionBackground | |||
editor.lineHighlightBackground | |||
editor.lineHighlightBorder | |||
editor.linkedEditingBackground | |||
editor.selectionBackground | |||
editor.selectionHighlightBackground | |||
editor.snippetFinalTabstopHighlightBorder | |||
editor.snippetTabstopHighlightBackground | |||
editor.stackFrameHighlightBackground | |||
editor.symbolHighlightBackground | |||
editor.wordHighlightBackground | |||
editorBracketMatch.border | |||
editorGroup.dropBackground | |||
editorGroupHeader.border | |||
editorGroupHeader.tabsBackground | |||
editorGutter.addedBackground | |||
editorGutter.background | |||
editorGutter.deletedBackground | |||
editorGutter.modifiedBackground | |||
editorIndentGuide.activeBackground | |||
editorIndentGuide.background | |||
editorLineNumber.activeForeground | |||
editorLineNumber.foreground | |||
editorSuggestWidget.highlightForeground | |||
editorSuggestWidget.selectedBackground | |||
editorWidget.background | |||
editorWidget.border | |||
extensionButton.prominentBackground | |||
extensionButton.prominentForeground | |||
focusBorder | |||
foreground | |||
gitDecoration.conflictingResourceForeground | |||
gitDecoration.deletedResourceForeground | |||
gitDecoration.ignoredResourceForeground | |||
gitDecoration.modifiedResourceForeground | |||
gitDecoration.untrackedResourceForeground | |||
input.border | |||
input.foreground | |||
input.placeholderForeground | |||
inputOption.activeBorder | |||
list.activeSelectionBackground | |||
list.dropBackground | |||
list.focusBackground | |||
list.hoverBackground | |||
panel.background | |||
panel.border | |||
panelSection.border | |||
panelSection.dropBackground | |||
panelTitle.activeBorder | |||
panelTitle.inactiveForeground | |||
peekView.border | |||
peekViewEditor.background | |||
peekViewEditor.matchHighlightBackground | |||
peekViewEditorGutter.background | |||
peekViewResult.background | |||
peekViewTitle.background | |||
peekViewTitleDescription.foreground | |||
pickerGroup.border | |||
problemsErrorIcon.foreground | |||
problemsInfoIcon.foreground | |||
problemsWarningIcon.foreground | |||
progressBar.background | |||
scrollbar.shadow | |||
sideBar.background | |||
sideBar.border | |||
sideBar.dropBackground | |||
sideBar.foreground | |||
sideBarSectionHeader.foreground | |||
statusBar.background | |||
statusBar.debuggingBackground | |||
statusBar.debuggingForeground | |||
statusBar.foreground | |||
statusBar.noFolderForeground | |||
statusBarItem.activeBackground | |||
statusBarItem.errorBackground | |||
statusBarItem.errorForeground | |||
statusBarItem.prominentBackground | |||
statusBarItem.prominentForeground | |||
statusBarItem.remoteBackground | |||
statusBarItem.remoteForeground | |||
tab.inactiveBackground | |||
tab.inactiveForeground | |||
terminal.ansiBlack | |||
terminal.ansiBrightBlack | |||
terminal.background | |||
terminal.foreground | |||
titleBar.activeBackground | |||
widget.shadow |
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.numeric | |||
constant.numeric.integer | |||
constant.numeric.float | |||
constant.numeric.hex | |||
constant.numeric.octal | |||
entity | |||
entity.name | |||
entity.name.function | |||
entity.name.tag | |||
entity.other | |||
entity.other.attribute-name | |||
keyword | |||
keyword.control | |||
keyword.control.flow | |||
keyword.operator | |||
meta | |||
storage | |||
storage.type | |||
string | |||
string.quoted | |||
string.quoted.double | |||
string.quoted.single | |||
support | |||
support.constant | |||
support.function | |||
support.type | |||
support.type.primitive | |||
support.type.property-name | |||
variable | |||
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}!`;
}