Skip to main content
Icon Group | Coding Theme
Home Theme VS Code Icon Group A professional theme for Visual Studio Code inspired by Icon Group's brand identity. Features navy blue backgrounds, gold accents, and healthcare-focused aesthetics reflecting Icon Group's leadership in cancer care.
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
actionBar.toggledBackground #FDBD1040 activityBar.activeBackground #0E2A4A50 activityBar.activeBorder #FDBD10 activityBar.activeFocusBorder #FDBD10 activityBar.background #081A30 activityBar.border #081A30 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment #8098AD80 italic variable, string constant.other.placeholder #E0E8F0 — constant.other.color #FDBD10 — invalid, invalid.illegal #E8635A — keyword, storage.type, storage.modifier
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}
Icon Group — Icon Group Dark main*
0 1
Copilot
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
Dark+
activityBar.dropBorder #FDBD10
activityBar.foreground #E0E8F0
activityBar.inactiveForeground #B0BEC580
activityBarBadge.background #FDBD10
activityBarBadge.foreground #E0E8F0
activityBarTop.activeBackground #0E2A4A50
activityBarTop.activeBorder #FDBD10
activityBarTop.background #081A30
activityBarTop.dropBorder #FDBD10
activityBarTop.foreground #E0E8F0
activityBarTop.inactiveForeground #B0BEC580
activityErrorBadge.background #E8635A
activityErrorBadge.foreground #E0E8F0
activityWarningBadge.background #FDBD10
activityWarningBadge.foreground #E0E8F0
agentSessionReadIndicator.foreground #FDBD10
agentSessionSelectedBadge.border #FDBD1050
agentSessionSelectedUnfocusedBadge.border #E0E8F050
agentStatusIndicator.background #12305A
aiCustomizationManagement.sashBorder #FDBD10
badge.background #FDBD10
badge.foreground #E0E8F0
banner.background #FDBD10
banner.foreground #E0E8F0
banner.iconForeground #E0E8F0
breadcrumb.activeSelectionForeground #FDBD10
breadcrumb.background #0E2A4A
breadcrumb.focusForeground #E0E8F0
breadcrumb.foreground #B0BEC5
breadcrumbPicker.background #0B2240
button.background #FDBD10
button.border #FDBD1000
button.foreground #E0E8F0
button.hoverBackground #E5AA0E
button.secondaryBackground #12305A
button.secondaryBorder #FDBD1050
button.secondaryForeground #E0E8F0
button.secondaryHoverBackground #163458
button.separator #E0E8F040
charts.blue #FDBD10
charts.foreground #E0E8F0
charts.green #4CAF7D
charts.lines #B0BEC580
charts.orange #F0E6C8
charts.purple #B48EE0
charts.red #E8635A
charts.yellow #FDBD10
chat.avatarBackground #FDBD10
chat.avatarForeground #E0E8F0
chat.checkpointSeparator #FDBD1050
chat.editedFileForeground #9B6FCF
chat.inputWorkingBorderColor1 #FDBD10
chat.inputWorkingBorderColor2 #E5AA0E
chat.inputWorkingBorderColor3 #FDBD10
chat.linesAddedForeground #4CAF7DCC
chat.linesRemovedForeground #E8635ACC
chat.requestBackground #12305A
chat.requestBorder #FDBD1050
chat.requestBubbleBackground #12305AE6
chat.requestBubbleHoverBackground #163458E6
chat.requestCodeBorder #FDBD1030
chat.slashCommandBackground #FDBD10
chat.slashCommandForeground #E0E8F0
chat.thinkingShimmer #FDBD1040
chatManagement.sashBorder #FDBD10
checkbox.background #1A3A5E
checkbox.border #FDBD1050
checkbox.disabled.background #1A3A5E80
checkbox.disabled.foreground #B0BEC560
checkbox.foreground #FDBD10
checkbox.selectBackground #1A3A5E
checkbox.selectBorder #FDBD10
commandCenter.activeBackground #E0E8F025
commandCenter.activeBorder #E0E8F050
commandCenter.activeForeground #E0E8F0
commandCenter.background #E0E8F015
commandCenter.border #E0E8F030
commandCenter.debuggingBackground #4DA6E830
commandCenter.foreground #E0E8F0
commandCenter.inactiveBorder #E0E8F020
commandCenter.inactiveForeground #B0BEC580
commentsView.resolvedIcon #4CAF7D
commentsView.unresolvedIcon #FDBD10
contrastActiveBorder #FDBD1000
contrastBorder #FDBD1000
debugConsole.errorForeground #E8635A
debugConsole.infoForeground #4DA6E8
debugConsole.sourceForeground #B0BEC5
debugConsole.warningForeground #FDBD10
debugConsoleInputIcon.foreground #FDBD10
debugExceptionWidget.background #E8635A20
debugExceptionWidget.border #E8635A80
debugIcon.breakpointCurrentStackframeForeground #FDBD10
debugIcon.breakpointDisabledForeground #B0BEC580
debugIcon.breakpointForeground #E8635A
debugIcon.breakpointStackframeForeground #4CAF7D
debugIcon.breakpointUnverifiedForeground #FDBD10
debugIcon.continueForeground #4CAF7D
debugIcon.disconnectForeground #E8635A
debugIcon.pauseForeground #FDBD10
debugIcon.restartForeground #4CAF7D
debugIcon.startForeground #4CAF7D
debugIcon.stepBackForeground #FDBD10
debugIcon.stepIntoForeground #FDBD10
debugIcon.stepOutForeground #FDBD10
debugIcon.stepOverForeground #FDBD10
debugIcon.stopForeground #E8635A
debugTokenExpression.boolean #F0E6C8
debugTokenExpression.error #E8635A
debugTokenExpression.name #B48EE0
debugTokenExpression.number #F0E6C8
debugTokenExpression.string #7BC8A4
debugTokenExpression.type #B48EE0
debugTokenExpression.value #7BC8A4
debugToolBar.background #0B2240
debugView.exceptionLabelBackground #E8635A80
debugView.exceptionLabelForeground #E0E8F0
debugView.stateLabelBackground #FDBD1050
debugView.stateLabelForeground #E0E8F0
debugView.valueChangedHighlight #FDBD1080
descriptionForeground #B0BEC5
diffEditor.border #FDBD1020
diffEditor.diagonalFill #FDBD1020
diffEditor.insertedLineBackground #4CAF7D15
diffEditor.insertedTextBackground #4CAF7D20
diffEditor.insertedTextBorder #4CAF7D50
diffEditor.move.border #FDBD1080
diffEditor.moveActive.border #FDBD10
diffEditor.removedLineBackground #E8635A15
diffEditor.removedTextBackground #E8635A20
diffEditor.removedTextBorder #E8635A50
diffEditor.unchangedCodeBackground #0E2A4A80
diffEditor.unchangedRegionBackground #0B2240
diffEditor.unchangedRegionForeground #B0BEC580
diffEditor.unchangedRegionShadow #05101A30
diffEditorGutter.insertedLineBackground #4CAF7D30
diffEditorGutter.removedLineBackground #E8635A30
diffEditorOverview.insertedForeground #4CAF7D80
diffEditorOverview.removedForeground #E8635A80
disabledForeground #B0BEC560
dropdown.background #1A3A5E
dropdown.border #FDBD1050
dropdown.foreground #E0E8F0
dropdown.listBackground #0B2240
editor.background #0E2A4A
editor.compositionBorder #FDBD10
editor.findMatchBackground #FDBD1080
editor.findMatchBorder #FDBD10
editor.findMatchForeground #E0E8F0
editor.findMatchHighlightBackground #FDBD1050
editor.findMatchHighlightBorder #FDBD1080
editor.findMatchHighlightForeground #E0E8F0
editor.findRangeHighlightBackground #FDBD1020
editor.findRangeHighlightBorder #FDBD1000
editor.focusedStackFrameHighlightBackground #4CAF7D30
editor.foldBackground #FDBD1015
editor.foldPlaceholderForeground #B0BEC580
editor.foreground #E0E8F0
editor.hoverHighlightBackground #FDBD1025
editor.inactiveLineHighlightBackground #1A3A5E80
editor.inactiveSelectionBackground #FDBD1030
editor.inlineValuesBackground #FDBD1015
editor.inlineValuesForeground #B0BEC5CC
editor.lineHighlightBackground #1A3A5E
editor.lineHighlightBorder #FDBD1015
editor.linkedEditingBackground #FDBD1030
editor.placeholder.foreground #B0BEC580
editor.rangeHighlightBackground #FDBD1015
editor.rangeHighlightBorder #FDBD1000
editor.selectionBackground #FDBD1050
editor.selectionForeground #E0E8F0
editor.selectionHighlightBackground #FDBD1030
editor.selectionHighlightBorder #FDBD1050
editor.stackFrameHighlightBackground #FDBD1030
editor.symbolHighlightBackground #FDBD1030
editor.symbolHighlightBorder #FDBD1050
editor.wordHighlightBackground #FDBD1030
editor.wordHighlightBorder #FDBD1050
editor.wordHighlightStrongBackground #FDBD1050
editor.wordHighlightStrongBorder #FDBD1080
editor.wordHighlightTextBackground #FDBD1020
editor.wordHighlightTextBorder #FDBD1040
editorActionList.background #0B2240
editorActionList.focusBackground #FDBD1040
editorActionList.focusForeground #E0E8F0
editorActionList.foreground #E0E8F0
editorBracketHighlight.foreground1 #FDBD10
editorBracketHighlight.foreground2 #9B6FCF
editorBracketHighlight.foreground3 #4DA6E8
editorBracketHighlight.foreground4 #4CAF7D
editorBracketHighlight.foreground5 #E8635A
editorBracketHighlight.foreground6 #7BC8A4
editorBracketHighlight.unexpectedBracket.foreground #E8635A
editorBracketMatch.border #FDBD1080
editorBracketMatch.foreground #FDBD10
editorBracketPairGuide.activeBackground1 #FDBD1080
editorBracketPairGuide.activeBackground2 #9B6FCF80
editorBracketPairGuide.activeBackground3 #4DA6E880
editorBracketPairGuide.activeBackground4 #4CAF7D80
editorBracketPairGuide.activeBackground5 #E8635A80
editorBracketPairGuide.activeBackground6 #7BC8A480
editorBracketPairGuide.background1 #FDBD1040
editorBracketPairGuide.background2 #9B6FCF40
editorBracketPairGuide.background3 #4DA6E840
editorBracketPairGuide.background4 #4CAF7D40
editorBracketPairGuide.background5 #E8635A40
editorBracketPairGuide.background6 #7BC8A440
editorCodeLens.foreground #B0BEC580
editorCommentsWidget.rangeActiveBackground #FDBD1020
editorCommentsWidget.rangeBackground #FDBD1010
editorCommentsWidget.replyInputBackground #1A3A5E
editorCommentsWidget.resolvedBorder #4CAF7D50
editorCommentsWidget.unresolvedBorder #FDBD10
editorCursor.background #0E2A4A
editorCursor.foreground #FDBD10
editorError.background #E8635A15
editorError.border #E8635A00
editorError.foreground #E8635A
editorGhostText.background #FDBD1000
editorGhostText.border #FDBD1000
editorGhostText.foreground #FDBD1080
editorGroup.border #FDBD1020
editorGroup.dropBackground #FDBD1030
editorGroup.dropIntoPromptBackground #0B2240
editorGroup.dropIntoPromptBorder #FDBD1050
editorGroup.dropIntoPromptForeground #E0E8F0
editorGroup.emptyBackground #0E2A4A
editorGroup.focusedEmptyBorder #FDBD1050
editorGroupHeader.border #FDBD1020
editorGroupHeader.noTabsBackground #0E2A4A
editorGroupHeader.tabsBackground #0B2240
editorGroupHeader.tabsBorder #FDBD1020
editorGutter.addedBackground #4CAF7D
editorGutter.addedSecondaryBackground #4CAF7D80
editorGutter.background #0E2A4A
editorGutter.commentDraftGlyphForeground #FDBD1080
editorGutter.commentGlyphForeground #FDBD10
editorGutter.commentRangeForeground #B0BEC550
editorGutter.commentUnresolvedGlyphForeground #FDBD10
editorGutter.deletedBackground #E8635A
editorGutter.deletedSecondaryBackground #E8635A80
editorGutter.foldingControlForeground #B0BEC580
editorGutter.itemBackground #0B2240
editorGutter.itemGlyphForeground #FDBD10
editorGutter.modifiedBackground #9B6FCF
editorGutter.modifiedSecondaryBackground #9B6FCF80
editorHint.border #4CAF7D00
editorHint.foreground #4CAF7D
editorHoverWidget.background #0B2240
editorHoverWidget.border #FDBD1050
editorHoverWidget.foreground #E0E8F0
editorHoverWidget.highlightForeground #FDBD10
editorHoverWidget.statusBarBackground #12305A
editorIndentGuide.activeBackground1 #FDBD10
editorIndentGuide.activeBackground2 #9B6FCF
editorIndentGuide.activeBackground3 #4DA6E8
editorIndentGuide.activeBackground4 #4CAF7D
editorIndentGuide.activeBackground5 #E8635A
editorIndentGuide.activeBackground6 #7BC8A4
editorIndentGuide.background1 #FDBD1025
editorIndentGuide.background2 #9B6FCF25
editorIndentGuide.background3 #4DA6E825
editorIndentGuide.background4 #4CAF7D25
editorIndentGuide.background5 #E8635A25
editorIndentGuide.background6 #7BC8A425
editorInfo.background #4DA6E815
editorInfo.border #4DA6E800
editorInfo.foreground #4DA6E8
editorInlayHint.background #1A3A5E
editorInlayHint.foreground #B0BEC5
editorInlayHint.parameterBackground #1A3A5E
editorInlayHint.parameterForeground #B0BEC5
editorInlayHint.typeBackground #1A3A5E
editorInlayHint.typeForeground #7BC8A4
editorLightBulb.foreground #FDBD10
editorLightBulbAi.foreground #FDBD10
editorLightBulbAutoFix.foreground #4CAF7D
editorLineNumber.activeForeground #FDBD10
editorLineNumber.dimmedForeground #B0BEC550
editorLineNumber.foreground #B48EE0
editorLink.activeForeground #FDBD10
editorMarkerNavigation.background #0B2240
editorMarkerNavigationError.background #E8635A30
editorMarkerNavigationError.headerBackground #E8635A20
editorMarkerNavigationInfo.background #4DA6E830
editorMarkerNavigationInfo.headerBackground #4DA6E820
editorMarkerNavigationWarning.background #FDBD1030
editorMarkerNavigationWarning.headerBackground #FDBD1020
editorMinimap.inlineChatInserted #4CAF7D40
editorMinimap.inlineChatRemoved #E8635A40
editorMultiCursor.primary.background #0E2A4A
editorMultiCursor.primary.foreground #FDBD10
editorMultiCursor.secondary.background #0E2A4A
editorMultiCursor.secondary.foreground #B48EE0
editorOverviewRuler.addedForeground #4CAF7D
editorOverviewRuler.background #0E2A4A
editorOverviewRuler.border #FDBD1020
editorOverviewRuler.bracketMatchForeground #FDBD1080
editorOverviewRuler.commentDraftForeground #FDBD1060
editorOverviewRuler.commentForeground #FDBD1040
editorOverviewRuler.commentUnresolvedForeground #FDBD1080
editorOverviewRuler.commonContentForeground #B0BEC550
editorOverviewRuler.currentContentForeground #4CAF7D80
editorOverviewRuler.deletedForeground #E8635A
editorOverviewRuler.errorForeground #E8635A
editorOverviewRuler.findMatchForeground #FDBD10CC
editorOverviewRuler.incomingContentForeground #9B6FCF80
editorOverviewRuler.infoForeground #4DA6E8
editorOverviewRuler.inlineChatInserted #4CAF7D80
editorOverviewRuler.inlineChatRemoved #E8635A80
editorOverviewRuler.modifiedForeground #9B6FCF
editorOverviewRuler.rangeHighlightForeground #FDBD1099
editorOverviewRuler.selectionHighlightForeground #FDBD1099
editorOverviewRuler.warningForeground #FDBD10
editorOverviewRuler.wordHighlightForeground #FDBD1099
editorOverviewRuler.wordHighlightStrongForeground #FDBD10CC
editorOverviewRuler.wordHighlightTextForeground #FDBD1080
editorPane.background #0E2A4A
editorRuler.foreground #B48EE030
editorSnippetFinalTabstopHighlightBackground #4CAF7D30
editorSnippetFinalTabstopHighlightBorder #4CAF7D00
editorSnippetTabstopHighlightBackground #FDBD1030
editorSnippetTabstopHighlightBorder #FDBD1000
editorStickyScroll.background #0B2240
editorStickyScroll.border #FDBD1020
editorStickyScroll.shadow #05101A30
editorStickyScrollGutter.background #0B2240
editorStickyScrollHover.background #163458
editorSuggestWidget.background #0B2240
editorSuggestWidget.border #FDBD1050
editorSuggestWidget.focusHighlightForeground #FDBD10
editorSuggestWidget.foreground #E0E8F0
editorSuggestWidget.highlightForeground #FDBD10
editorSuggestWidget.selectedBackground #FDBD1050
editorSuggestWidget.selectedForeground #E0E8F0
editorSuggestWidget.selectedIconForeground #E0E8F0
editorSuggestWidgetStatus.foreground #B0BEC580
editorUnicodeHighlight.background #FDBD1020
editorUnicodeHighlight.border #FDBD10
editorUnnecessaryCode.border #B0BEC550
editorUnnecessaryCode.opacity #000000AA
editorWarning.background #FDBD1015
editorWarning.border #FDBD1000
editorWarning.foreground #FDBD10
editorWhitespace.foreground #B48EE050
editorWidget.background #0B2240
editorWidget.border #FDBD1050
editorWidget.foreground #E0E8F0
editorWidget.resizeBorder #FDBD10
errorForeground #E8635A
extensionBadge.remoteBackground #FDBD10
extensionBadge.remoteForeground #E0E8F0
extensionButton.background #FDBD10
extensionButton.border #FDBD1000
extensionButton.foreground #E0E8F0
extensionButton.hoverBackground #E5AA0E
extensionButton.prominentBackground #FDBD10
extensionButton.prominentForeground #E0E8F0
extensionButton.prominentHoverBackground #E5AA0E
extensionButton.separator #E0E8F040
extensionIcon.preReleaseForeground #FDBD10
extensionIcon.privateForeground #B0BEC580
extensionIcon.sponsorForeground #B48EE0
extensionIcon.starForeground #FDBD10
extensionIcon.verifiedForeground #4CAF7D
focusBorder #FDBD10
foreground #E0E8F0
gauge.background #0B2240
gauge.border #FDBD1030
gauge.errorBackground #E8635A30
gauge.errorForeground #E8635A
gauge.foreground #E0E8F0
gauge.warningBackground #FDBD1030
gauge.warningForeground #FDBD10
git.blame.editorDecorationForeground #B0BEC560
gitDecoration.addedResourceForeground #4CAF7D
gitDecoration.conflictingResourceForeground #FDBD10
gitDecoration.deletedResourceForeground #E8635A
gitDecoration.ignoredResourceForeground #B0BEC580
gitDecoration.modifiedResourceForeground #9B6FCF
gitDecoration.renamedResourceForeground #FDBD10
gitDecoration.stageDeletedResourceForeground #E8635ACC
gitDecoration.stageModifiedResourceForeground #9B6FCFCC
gitDecoration.submoduleResourceForeground #7BC8A4
gitDecoration.untrackedResourceForeground #4CAF7D
icon.foreground #FDBD10
inlineChat.background #0B2240
inlineChat.border #FDBD1050
inlineChat.foreground #E0E8F0
inlineChat.shadow #05101A80
inlineChatDiff.inserted #4CAF7D30
inlineChatDiff.removed #E8635A30
inlineChatInput.background #1A3A5E
inlineChatInput.border #FDBD1050
inlineChatInput.focusBorder #FDBD10
inlineChatInput.placeholderForeground #B0BEC580
inlineEdit.gutterIndicator.background #0B2240
inlineEdit.gutterIndicator.primaryBackground #FDBD1020
inlineEdit.gutterIndicator.primaryBorder #FDBD10
inlineEdit.gutterIndicator.primaryForeground #FDBD10
inlineEdit.gutterIndicator.secondaryBackground #B48EE020
inlineEdit.gutterIndicator.secondaryBorder #B48EE0
inlineEdit.gutterIndicator.secondaryForeground #B48EE0
inlineEdit.gutterIndicator.successfulBackground #4CAF7D20
inlineEdit.gutterIndicator.successfulBorder #4CAF7D
inlineEdit.gutterIndicator.successfulForeground #4CAF7D
inlineEdit.modifiedBackground #9B6FCF15
inlineEdit.modifiedBorder #9B6FCF50
inlineEdit.modifiedChangedLineBackground #9B6FCF20
inlineEdit.modifiedChangedTextBackground #9B6FCF30
inlineEdit.originalBackground #E8635A10
inlineEdit.originalBorder #E8635A30
inlineEdit.originalChangedLineBackground #E8635A15
inlineEdit.originalChangedTextBackground #E8635A25
inlineEdit.tabWillAcceptModifiedBorder #4CAF7D80
inlineEdit.tabWillAcceptOriginalBorder #E8635A50
input.background #1A3A5E
input.border #FDBD1050
input.foreground #E0E8F0
input.placeholderForeground #B0BEC580
inputOption.activeBackground #FDBD1040
inputOption.activeBorder #FDBD10
inputOption.activeForeground #E0E8F0
inputOption.hoverBackground #FDBD1020
inputValidation.errorBackground #E8635A20
inputValidation.errorBorder #E8635A
inputValidation.errorForeground #E8635A
inputValidation.infoBackground #4DA6E820
inputValidation.infoBorder #4DA6E8
inputValidation.infoForeground #4DA6E8
inputValidation.warningBackground #FDBD1020
inputValidation.warningBorder #FDBD10
inputValidation.warningForeground #FDBD10
interactive.activeCodeBorder #FDBD10
interactive.inactiveCodeBorder #FDBD1030
keybindingLabel.background #FDBD1020
keybindingLabel.border #FDBD1040
keybindingLabel.bottomBorder #FDBD1060
keybindingLabel.foreground #E0E8F0
keybindingTable.headerBackground #12305A
keybindingTable.rowsBackground #0E2A4A80
list.activeSelectionBackground #FDBD1050
list.activeSelectionForeground #E0E8F0
list.activeSelectionIconForeground #E0E8F0
list.deemphasizedForeground #B0BEC580
list.dropBackground #FDBD1030
list.dropBetweenBackground #FDBD10
list.errorForeground #E8635A
list.filterMatchBorder #FDBD1080
list.focusAndSelectionOutline #FDBD10
list.focusBackground #FDBD1040
list.focusForeground #E0E8F0
list.focusHighlightForeground #FDBD10
list.focusOutline #FDBD1080
list.highlightForeground #FDBD10
list.hoverBackground #FDBD1020
list.hoverForeground #E0E8F0
list.inactiveFocusBackground #FDBD1020
list.inactiveFocusOutline #FDBD1050
list.inactiveSelectionBackground #FDBD1030
list.inactiveSelectionForeground #E0E8F0
list.inactiveSelectionIconForeground #E0E8F0
list.invalidItemForeground #E8635A
list.warningForeground #FDBD10
listFilterWidget.background #1A3A5E
listFilterWidget.noMatchesOutline #E8635A
listFilterWidget.outline #FDBD10
listFilterWidget.shadow #05101A50
markdownAlert.caution.foreground #E8635A
markdownAlert.important.foreground #B48EE0
markdownAlert.note.foreground #4DA6E8
markdownAlert.tip.foreground #4CAF7D
markdownAlert.warning.foreground #FDBD10
mcpIcon.starForeground #FDBD10
menu.background #0B2240
menu.border #FDBD1020
menu.foreground #E0E8F0
menu.selectionBackground #FDBD1050
menu.selectionBorder #FDBD1000
menu.selectionForeground #E0E8F0
menu.separatorBackground #FDBD1030
menubar.selectionBackground #FDBD1050
menubar.selectionBorder #FDBD1000
menubar.selectionForeground #E0E8F0
merge.border #FDBD1050
merge.commonContentBackground #B0BEC520
merge.commonHeaderBackground #B0BEC550
merge.currentContentBackground #4CAF7D20
merge.currentHeaderBackground #4CAF7D50
merge.incomingContentBackground #9B6FCF20
merge.incomingHeaderBackground #9B6FCF50
mergeEditor.change.background #FDBD1020
mergeEditor.change.word.background #FDBD1040
mergeEditor.changeBase.background #B0BEC515
mergeEditor.changeBase.word.background #B0BEC530
mergeEditor.conflict.handled.minimapOverViewRuler #4CAF7D
mergeEditor.conflict.handledFocused.border #4CAF7D
mergeEditor.conflict.handledUnfocused.border #4CAF7D50
mergeEditor.conflict.input1.background #4CAF7D20
mergeEditor.conflict.input2.background #9B6FCF20
mergeEditor.conflict.unhandled.minimapOverViewRuler #FDBD10
mergeEditor.conflict.unhandledFocused.border #FDBD10
mergeEditor.conflict.unhandledUnfocused.border #FDBD1080
mergeEditor.conflictingLines.background #FDBD1020
minimap.background #0E2A4A
minimap.chatEditHighlight #FDBD1040
minimap.errorHighlight #E8635A
minimap.findMatchHighlight #FDBD1080
minimap.foregroundOpacity #000000FF
minimap.infoHighlight #4DA6E8
minimap.selectionHighlight #FDBD1050
minimap.selectionOccurrenceHighlight #FDBD1040
minimap.warningHighlight #FDBD10
minimapGutter.addedBackground #4CAF7D
minimapGutter.deletedBackground #E8635A
minimapGutter.modifiedBackground #9B6FCF
minimapSlider.activeBackground #FDBD1070
minimapSlider.background #FDBD1030
minimapSlider.hoverBackground #FDBD1050
multiDiffEditor.background #0E2A4A
multiDiffEditor.border #FDBD1020
multiDiffEditor.headerBackground #0B2240
notebook.cellBorderColor #FDBD1030
notebook.cellEditorBackground #0B2240
notebook.cellHoverBackground #163458
notebook.cellInsertionIndicator #FDBD10
notebook.cellStatusBarItemHoverBackground #FDBD1030
notebook.cellToolbarSeparator #FDBD1020
notebook.editorBackground #0E2A4A
notebook.focusedCellBackground #12305A
notebook.focusedCellBorder #FDBD10
notebook.focusedEditorBorder #FDBD10
notebook.inactiveFocusedCellBorder #FDBD1050
notebook.inactiveSelectedCellBorder #FDBD1030
notebook.outputContainerBackgroundColor #081A30
notebook.outputContainerBorderColor #FDBD1020
notebook.selectedCellBackground #FDBD1020
notebook.selectedCellBorder #FDBD1080
notebook.symbolHighlightBackground #FDBD1030
notebookEditorOverviewRuler.runningCellForeground #FDBD10
notebookScrollbarSlider.activeBackground #FDBD1070
notebookScrollbarSlider.background #FDBD1030
notebookScrollbarSlider.hoverBackground #FDBD1050
notebookStatusErrorIcon.foreground #E8635A
notebookStatusRunningIcon.foreground #FDBD10
notebookStatusSuccessIcon.foreground #4CAF7D
notificationCenter.border #FDBD1020
notificationCenterHeader.background #0B2240
notificationCenterHeader.foreground #E0E8F0
notificationLink.foreground #FDBD10
notifications.background #0B2240
notifications.border #FDBD1020
notifications.foreground #E0E8F0
notificationsErrorIcon.foreground #E8635A
notificationsInfoIcon.foreground #4DA6E8
notificationsWarningIcon.foreground #FDBD10
notificationToast.border #FDBD1020
outputView.background #0B2240
outputViewStickyScroll.background #0B2240
panel.background #0B2240
panel.border #FDBD1020
panel.dropBorder #FDBD10
panelInput.border #FDBD1050
panelSection.border #FDBD1020
panelSection.dropBackground #FDBD1030
panelSectionHeader.background #0B224080
panelSectionHeader.border #FDBD1020
panelSectionHeader.foreground #FDBD10
panelStickyScroll.background #0B2240
panelStickyScroll.border #FDBD1020
panelStickyScroll.shadow #05101A30
panelTitle.activeBorder #FDBD10
panelTitle.activeForeground #FDBD10
panelTitle.border #FDBD1020
panelTitle.inactiveForeground #B0BEC580
panelTitleBadge.background #FDBD10
panelTitleBadge.foreground #E0E8F0
peekView.border #FDBD10
peekViewEditor.background #0E2A4A
peekViewEditor.matchHighlightBackground #FDBD1050
peekViewEditor.matchHighlightBorder #FDBD1080
peekViewEditorGutter.background #0E2A4A
peekViewEditorStickyScroll.background #0B2240
peekViewEditorStickyScrollGutter.background #0B2240
peekViewResult.background #0B2240
peekViewResult.fileForeground #E0E8F0
peekViewResult.lineForeground #B0BEC5
peekViewResult.matchHighlightBackground #FDBD1050
peekViewResult.selectionBackground #FDBD1050
peekViewResult.selectionForeground #E0E8F0
peekViewTitle.background #05101A
peekViewTitleDescription.foreground #B0BEC5
peekViewTitleLabel.foreground #FDBD10
pickerGroup.border #FDBD1030
pickerGroup.foreground #FDBD10
ports.iconRunningProcessForeground #4CAF7D
problemsErrorIcon.foreground #E8635A
problemsInfoIcon.foreground #4DA6E8
problemsWarningIcon.foreground #FDBD10
profileBadge.background #FDBD10
profileBadge.foreground #E0E8F0
profiles.sashBorder #FDBD10
progressBar.background #FDBD10
quickInput.background #0B2240
quickInput.border #FDBD1030
quickInput.foreground #E0E8F0
quickInputList.focusBackground #FDBD1040
quickInputList.focusForeground #E0E8F0
quickInputList.focusIconForeground #E0E8F0
quickInputList.hoverBackground #163458
quickInputTitle.background #12305A
radio.activeBackground #FDBD10
radio.activeBorder #FDBD10
radio.activeForeground #E0E8F0
radio.inactiveBackground #1A3A5E
radio.inactiveBorder #FDBD1050
radio.inactiveForeground #B0BEC5
radio.inactiveHoverBackground #163458
sash.hoverBorder #FDBD10
scmGraph.foreground1 #FDBD10
scmGraph.foreground2 #B48EE0
scmGraph.foreground3 #7BC8A4
scmGraph.foreground4 #FDBD10
scmGraph.foreground5 #4CAF7D
scmGraph.historyItemBaseRefColor #7BC8A4
scmGraph.historyItemHoverAdditionsForeground #4CAF7D
scmGraph.historyItemHoverDeletionsForeground #E8635A
scmGraph.historyItemHoverLabelForeground #E0E8F0
scmGraph.historyItemRefColor #FDBD10
scmGraph.historyItemRemoteRefColor #B48EE0
scrollbar.background #0E2A4A00
scrollbar.shadow #05101A50
scrollbarSlider.activeBackground #FDBD1070
scrollbarSlider.background #FDBD1030
scrollbarSlider.hoverBackground #FDBD1050
search.resultsInfoForeground #B0BEC5
searchEditor.findMatchBackground #FDBD1040
searchEditor.findMatchBorder #FDBD1080
searchEditor.textInputBorder #FDBD1050
selection.background #FDBD1050
settings.checkboxBackground #1A3A5E
settings.checkboxBorder #FDBD1050
settings.checkboxForeground #FDBD10
settings.dropdownBackground #1A3A5E
settings.dropdownBorder #FDBD1050
settings.dropdownForeground #E0E8F0
settings.dropdownListBorder #FDBD1030
settings.focusedRowBackground #FDBD1015
settings.focusedRowBorder #FDBD1040
settings.headerBorder #FDBD1020
settings.headerForeground #E0E8F0
settings.modifiedItemIndicator #FDBD10
settings.numberInputBackground #1A3A5E
settings.numberInputBorder #FDBD1050
settings.numberInputForeground #E0E8F0
settings.rowHoverBackground #FDBD1015
settings.sashBorder #FDBD10
settings.settingsHeaderHoverForeground #FDBD10
settings.textInputBackground #1A3A5E
settings.textInputBorder #FDBD1050
settings.textInputForeground #E0E8F0
sideBar.background #0B2240
sideBar.border #FDBD1020
sideBar.dropBackground #FDBD1030
sideBar.foreground #E0E8F0
sideBarActivityBarTop.border #FDBD1020
sideBarSectionHeader.background #0B224080
sideBarSectionHeader.border #FDBD1020
sideBarSectionHeader.foreground #FDBD10
sideBarStickyScroll.background #0B2240
sideBarStickyScroll.border #FDBD1020
sideBarStickyScroll.shadow #05101A30
sideBarTitle.background #0B2240
sideBarTitle.border #FDBD1020
sideBarTitle.foreground #FDBD10
sideBySideEditor.horizontalBorder #FDBD1020
sideBySideEditor.verticalBorder #FDBD1020
simpleFindWidget.sashBorder #FDBD10
statusBar.background #081A30
statusBar.border #081A30
statusBar.debuggingBackground #4DA6E8
statusBar.debuggingBorder #4DA6E880
statusBar.debuggingForeground #E0E8F0
statusBar.focusBorder #FDBD10
statusBar.foreground #E0E8F0
statusBar.noFolderBackground #081A30
statusBar.noFolderBorder #081A30
statusBar.noFolderForeground #E0E8F0
statusBarItem.activeBackground #FDBD1050
statusBarItem.compactHoverBackground #FDBD1040
statusBarItem.errorBackground #E8635A
statusBarItem.errorForeground #E0E8F0
statusBarItem.errorHoverBackground #E8635ACC
statusBarItem.errorHoverForeground #E0E8F0
statusBarItem.focusBorder #FDBD10
statusBarItem.hoverBackground #FDBD1030
statusBarItem.hoverForeground #E0E8F0
statusBarItem.offlineBackground #B0BEC580
statusBarItem.offlineForeground #E0E8F0
statusBarItem.offlineHoverBackground #B0BEC560
statusBarItem.offlineHoverForeground #E0E8F0
statusBarItem.prominentBackground #FDBD10
statusBarItem.prominentForeground #E0E8F0
statusBarItem.prominentHoverBackground #E5AA0E
statusBarItem.prominentHoverForeground #E0E8F0
statusBarItem.remoteBackground #B48EE0
statusBarItem.remoteForeground #E0E8F0
statusBarItem.remoteHoverBackground #B48EE0CC
statusBarItem.remoteHoverForeground #E0E8F0
statusBarItem.warningBackground #FDBD10
statusBarItem.warningForeground #081A30
statusBarItem.warningHoverBackground #FDBD10CC
statusBarItem.warningHoverForeground #081A30
symbolIcon.arrayForeground #F0E6C8
symbolIcon.booleanForeground #F0E6C8
symbolIcon.classForeground #B48EE0
symbolIcon.colorForeground #FDBD10
symbolIcon.constantForeground #F0E6C8
symbolIcon.constructorForeground #4DA6E8
symbolIcon.enumeratorForeground #B48EE0
symbolIcon.enumeratorMemberForeground #F0E6C8
symbolIcon.eventForeground #FDBD10
symbolIcon.fieldForeground #FDBD10
symbolIcon.fileForeground #B0BEC5
symbolIcon.folderForeground #FDBD10
symbolIcon.functionForeground #4DA6E8
symbolIcon.interfaceForeground #B48EE0
symbolIcon.keyForeground #FDBD10
symbolIcon.keywordForeground #B48EE0
symbolIcon.methodForeground #4DA6E8
symbolIcon.moduleForeground #FDBD10
symbolIcon.namespaceForeground #FDBD10
symbolIcon.nullForeground #B0BEC580
symbolIcon.numberForeground #F0E6C8
symbolIcon.objectForeground #FDBD10
symbolIcon.operatorForeground #4DA6E8
symbolIcon.packageForeground #FDBD10
symbolIcon.propertyForeground #E0E8F0
symbolIcon.referenceForeground #FDBD10
symbolIcon.snippetForeground #7BC8A4
symbolIcon.stringForeground #7BC8A4
symbolIcon.structForeground #B48EE0
symbolIcon.textForeground #E0E8F0
symbolIcon.typeParameterForeground #B48EE0
symbolIcon.unitForeground #F0E6C8
symbolIcon.variableForeground #E0E8F0
tab.activeBackground #0E2A4A
tab.activeBorder #FDBD10
tab.activeBorderTop #FDBD1000
tab.activeForeground #E0E8F0
tab.activeModifiedBorder #9B6FCF
tab.border #FDBD1020
tab.dragAndDropBorder #FDBD10
tab.hoverBackground #1A3A5E80
tab.hoverBorder #FDBD1050
tab.hoverForeground #E0E8F0
tab.inactiveBackground #0B2240
tab.inactiveForeground #B0BEC580
tab.inactiveModifiedBorder #9B6FCF80
tab.lastPinnedBorder #FDBD1040
tab.selectedBackground #0E2A4A
tab.selectedBorderTop #FDBD10
tab.selectedForeground #E0E8F0
tab.unfocusedActiveBackground #0E2A4A
tab.unfocusedActiveBorder #FDBD1080
tab.unfocusedActiveBorderTop #FDBD1000
tab.unfocusedActiveForeground #E0E8F0CC
tab.unfocusedActiveModifiedBorder #9B6FCFCC
tab.unfocusedHoverBackground #1A3A5E60
tab.unfocusedHoverBorder #FDBD1030
tab.unfocusedHoverForeground #E0E8F0CC
tab.unfocusedInactiveBackground #0B2240
tab.unfocusedInactiveForeground #B0BEC560
tab.unfocusedInactiveModifiedBorder #9B6FCF60
terminal.ansiBlack #05101A
terminal.ansiBlue #4DA6E8
terminal.ansiBrightBlack #8098AD
terminal.ansiBrightBlue #6DBCF0
terminal.ansiBrightCyan #33C4B0
terminal.ansiBrightGreen #6AD89A
terminal.ansiBrightMagenta #B48EE0
terminal.ansiBrightRed #F07A72
terminal.ansiBrightWhite #F0F4F8
terminal.ansiBrightYellow #FFD04A
terminal.ansiCyan #00B09B
terminal.ansiGreen #4CAF7D
terminal.ansiMagenta #9B6FCF
terminal.ansiRed #E8635A
terminal.ansiWhite #E0E8F0
terminal.ansiYellow #FDBD10
terminal.background #0E2A4A
terminal.border #FDBD1020
terminal.dropBackground #FDBD1030
terminal.findMatchBackground #FDBD1080
terminal.findMatchBorder #FDBD10
terminal.findMatchHighlightBackground #FDBD1050
terminal.findMatchHighlightBorder #FDBD1080
terminal.foreground #E0E8F0
terminal.hoverHighlightBackground #FDBD1030
terminal.inactiveSelectionBackground #FDBD1030
terminal.initialHintForeground #B0BEC580
terminal.selectionBackground #FDBD1050
terminal.selectionForeground #E0E8F0
terminal.tab.activeBorder #FDBD10
terminalCommandDecoration.defaultBackground #FDBD1050
terminalCommandDecoration.errorBackground #E8635A80
terminalCommandDecoration.successBackground #4CAF7D80
terminalCommandGuide.foreground #FDBD1030
terminalCursor.background #0E2A4A
terminalCursor.foreground #FDBD10
terminalOverviewRuler.border #FDBD1020
terminalOverviewRuler.cursorForeground #FDBD10
terminalOverviewRuler.findMatchForeground #FDBD10CC
terminalStickyScroll.background #0B2240
terminalStickyScroll.border #FDBD1020
terminalStickyScrollHover.background #163458
terminalSymbolIcon.aliasForeground #FDBD10
terminalSymbolIcon.argumentForeground #F0E6C8
terminalSymbolIcon.branchForeground #4CAF7D
terminalSymbolIcon.commitForeground #FDBD10
terminalSymbolIcon.fileForeground #B0BEC5
terminalSymbolIcon.flagForeground #FDBD10
terminalSymbolIcon.folderForeground #FDBD10
terminalSymbolIcon.inlineSuggestionForeground #B0BEC580
terminalSymbolIcon.methodForeground #4DA6E8
terminalSymbolIcon.optionForeground #E0E8F0
terminalSymbolIcon.optionValueForeground #7BC8A4
terminalSymbolIcon.pullRequestDoneForeground #4CAF7D
terminalSymbolIcon.pullRequestForeground #FDBD10
terminalSymbolIcon.remoteForeground #B48EE0
terminalSymbolIcon.stashForeground #9B6FCF
terminalSymbolIcon.symbolicLinkFileForeground #FDBD1080
terminalSymbolIcon.symbolicLinkFolderForeground #FDBD1080
terminalSymbolIcon.symbolText #E0E8F0
terminalSymbolIcon.tagForeground #B48EE0
testing.coverCountBadgeBackground #FDBD10
testing.coverCountBadgeForeground #E0E8F0
testing.coveredBackground #4CAF7D15
testing.coveredBorder #4CAF7D40
testing.coveredGutterBackground #4CAF7D50
testing.iconErrored #E8635A
testing.iconErrored.retired #E8635A60
testing.iconFailed #E8635A
testing.iconFailed.retired #E8635A60
testing.iconPassed #4CAF7D
testing.iconPassed.retired #4CAF7D60
testing.iconQueued #FDBD10
testing.iconQueued.retired #FDBD1060
testing.iconSkipped #B0BEC580
testing.iconSkipped.retired #B0BEC550
testing.iconUnset #B0BEC580
testing.iconUnset.retired #B0BEC550
testing.message.error.badgeBackground #E8635A
testing.message.error.badgeBorder #E8635A80
testing.message.error.badgeForeground #E0E8F0
testing.message.error.lineBackground #E8635A15
testing.message.info.decorationForeground #4DA6E8
testing.message.info.lineBackground #4DA6E815
testing.messagePeekBorder #4DA6E8
testing.messagePeekHeaderBackground #4DA6E820
testing.peekBorder #E8635A
testing.peekHeaderBackground #E8635A20
testing.runAction #4CAF7D
testing.uncoveredBackground #E8635A15
testing.uncoveredBorder #E8635A40
testing.uncoveredBranchBackground #E8635A30
testing.uncoveredGutterBackground #E8635A50
textBlockQuote.background #12305A
textBlockQuote.border #FDBD1080
textCodeBlock.background #1A3A5E
textLink.activeForeground #FDBD10
textLink.foreground #FDBD10CC
textPreformat.background #1A3A5E
textPreformat.border #FDBD1030
textPreformat.foreground #7BC8A4
textSeparator.foreground #FDBD1030
titleBar.activeBackground #081A30
titleBar.activeForeground #E0E8F0
titleBar.border #081A30
titleBar.inactiveBackground #081A30
titleBar.inactiveForeground #B0BEC580
toolbar.activeBackground #FDBD1040
toolbar.hoverBackground #FDBD1030
toolbar.hoverOutline #FDBD1000
tree.inactiveIndentGuidesStroke #FDBD1020
tree.indentGuidesStroke #FDBD1040
tree.tableColumnsBorder #FDBD1020
tree.tableOddRowsBackground #0E2A4A50
walkThrough.embeddedEditorBackground #0B2240
walkthrough.stepTitle.foreground #E0E8F0
welcomePage.background #0E2A4A
welcomePage.progress.background #1A3A5E
welcomePage.progress.foreground #FDBD10
welcomePage.tileBackground #0B2240
welcomePage.tileBorder #FDBD1020
welcomePage.tileHoverBackground #163458
widget.border #FDBD1030
widget.shadow #05101A50
window.activeBorder #FDBD1000
window.inactiveBorder #FDBD1000 keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution #4DA6E8 —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #B48EE0 —
entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method #4DA6E8 —
meta.block variable.other #E0E8F0 —
support.other.variable, string.other.link #E0E8F0 —
constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other #F0E6C8 —
string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js #7BC8A4 —
entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types #4DA6E8 —
source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name #4DA6E8 —
entity.name.module.js, variable.import.parameter.js, variable.other.class.js #E0E8F0 —
variable.language #B48EE0 italic
entity.name.method.js #4DA6E8 italic
meta.class-method.js entity.name.function.js, variable.function.constructor #4DA6E8 —
entity.other.attribute-name #B48EE0 —
text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name #4DA6E8 italic
entity.other.attribute-name.class #4DA6E8 —
source.sass keyword.control #4DA6E8 —
constant.character.escape #4DA6E8 —
*url*, *link*, *uri* — underline
tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js #4DA6E8 italic
source.js constant.other.object.key.js string.unquoted.label.js #E0E8F0 italic
source.json meta.structure.dictionary.json support.type.property-name.json #FDBD10 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #B48EE0 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #7BC8A4 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #4DA6E8 —
text.html.markdown, punctuation.definition.list_item.markdown #E0E8F0 —
text.html.markdown markup.inline.raw.markdown #B48EE0 —
text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown #4DA6E8 —
markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown #FDBD10 —
markup.italic #B48EE0 italic
markup.bold, markup.bold string #B48EE0 bold
markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string #B48EE0 bold
markup.underline #7BC8A4 underline
markup.quote punctuation.definition.blockquote.markdown #4DA6E8 —
string.other.link.title.markdown #4DA6E8 —
string.other.link.description.title.markdown #B48EE0 —
constant.other.reference.link.markdown #7BC8A4 —
markup.raw.block.fenced.markdown #E0E8F0 —
punctuation.definition.fenced.markdown #E0E8F0 —
markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end #E0E8F0 —
variable.language.fenced.markdown #4DA6E8 —
meta.separator #FDBD10 bold
Open Editors fetchUser.ts index.ts README.md My-Project src components fetchUser.ts Button.tsx Modal.tsx hooks utils index.ts public package.json tsconfig.json README.md Outline fetchUser.ts
index.ts
README.md
src components fetchUser.ts fetchUser 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
~/my-project $
31
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}!`;
}