Emacs Themes Ported
Publisher: voidfooThemes in package: 136
Popular Emacs themes ported for VS Code
Popular Emacs themes ported for VS Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment | #3B6EA8 | — |
| comment | #8b94a5 | — |
| markup.heading | #99324B | — |
| entity.name.tag | #AEBACF | — |
| entity.name.tag | #3B6EA8 | — |
| comment | #8b94a5 | — |
| markup.underline.link | #97365B | — |
| keyword | #9A7500 | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #99324B | — |
| invalid | #99324B | — |
| keyword | #9A7500 | — |
| keyword | #4F894C | — |
| invalid.deprecated | #9A7500 | — |
| invalid.deprecated | — | — |
| markup.inserted | #4F894C | — |
| markup.inserted | #3f6d3c | — |
| comment | #842879 | — |
| comment | #3B6EA8 | — |
| comment | #AC4426 | — |
| comment | #4F894C | — |
| comment | #97365B | — |
| keyword | #398EAC | — |
| gitDecoration.addedResourceForeground | #4F894C | — |
| gitDecoration.untrackedResourceForeground | #828b9b | — |
| gitDecoration.ignoredResourceForeground | #8b94a5 | — |
| gitDecoration.renamedResourceForeground | #828b9b | — |
| gitDecoration.modifiedResourceForeground | #842879 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #4F894C | — |
| explorer.fileForeground | #3B4252 | — |
| explorer.directoryForeground | #3B4252 | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #5d86b6 | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #3B4252 | — |
| invalid | #FF0000 | — |
| invalid | #29838D | — |
| invalid | #9A7500 | — |
| invalid | #9A7500 | — |
| invalid | #4F894C | — |
| invalid, invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| invalid | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| entity.name.type | #3B6EA8 | — |
| variable | #B22222 | — |
| entity.name.function | #00008B | — |
| constant | #FF1493 | — |
| string | #CD0000 | — |
| comment.documentation | #8b94a5 | — |
| diffEditor.insertedTextBackground | #4F894C | — |
| diffEditor.removedTextBackground | #99324B | — |
| invalid | #FF0000 | — |
| entity.name.function | #398EAC | — |
| diff.insertedTextBackground | #4F894C | — |
| diff.removedTextBackground | #99324B | — |
| meta.diff.header.file | #3B6EA8 | — |
| meta.diff.header | #398EAC | — |
| invalid.deprecated | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| entity.name.function | #842879 | — |
| invalid.deprecated | #9A7500 | — |
| string | #00008B | — |
| invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| invalid | #99324B | — |
| variable | #4F894C | — |
| variable | #97365B | — |
| variable | #B8C5DB | — |
| comment | #B8C5DB | — |
| comment | #3B4252 | — |
| comment.documentation | #4F894C | — |
| editor.findMatchBackground | #4F894C | — |
| editor.findMatchHighlightBackground | #F0F4FC | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #F0F4FC | — |
| string.regexp | #3B6EA8 | — |
| string.regexp | #3B6EA8 | — |
| string.regexp | #4F894C | — |
| meta.preprocessor, keyword.control.import | #3B6EA8 | — |
| invalid.deprecated | #9A7500 | — |
| invalid.deprecated | #9A7500 | — |
| constant, constant.language, support.constant | #97365B | — |
| constant | #97365B | — |
| storage.type, support.type, entity.name.type | #9A7500 | — |
| entity.name.type | #9A7500 | — |
| variable | #842879 | — |
| variable, variable.other | #842879 | — |
| variable | #842879 | — |
| entity.name.function | #29838D | — |
| entity.name.function, support.function | #29838D | — |
| entity.name.function | #29838D | — |
| support.function, support.class, support.type | #29838D | — |
| keyword, storage, keyword.control, storage.modifier | #3B6EA8 | — |
| keyword | #3B6EA8 | — |
| comment.documentation | #97365B | — |
| comment.documentation, comment.block.documentation | #828b9b | — |
| comment.documentation | #828b9b | — |
| string, string.quoted, string.template | #4F894C | — |
| string | #4F894C | — |
| comment, punctuation.definition.comment | #8b94a5 | — |
| comment | #8b94a5 | — |
| comment, punctuation.definition.comment | #8b94a5 | — |
| comment | #8b94a5 | — |
| invalid | #F0F4FC | — |
| invalid | — | — |
| invalid.illegal | #C2D0E7 | — |
| editor.wordHighlightStrongBackground | #99324B | — |
| invalid.deprecated | #9A7500 | — |
| invalid.illegal | #99324B | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #B8C5DB | — |
| editorGroup.border | #c2c6cb | — |
| editorGroupHeader.tabsBackground | — | — |
| statusBar.noFolderBackground | #A1ACC0 | — |
| statusBar.background, statusBar.foreground | — | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #60728C | — |
| editorLineNumber.foreground | #bec7d8 | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #F0F4FC | — |
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}!`;
}