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 | #3a81c3 | — |
| comment | #715ab1 | — |
| markup.heading | #6c3163 | — |
| entity.name.tag | #a094a2 | — |
| entity.name.tag | #ba2f59 | — |
| comment | #2aa1ae | — |
| markup.underline.link | #2d9574 | — |
| keyword | #ba2f59 | — |
| markup.list | #a094a2 | — |
| invalid | #ADD8E6 | — |
| keyword | #dc752f | — |
| keyword | #2d9574 | — |
| invalid.deprecated | #dc752f | — |
| invalid.deprecated | — | — |
| markup.inserted | #22aa22 | — |
| markup.inserted | #22aa22 | — |
| comment | #2d9574 | — |
| comment | #3a81c3 | — |
| comment | #3a81c3 | — |
| comment | #2d9574 | — |
| comment | #3a81c3 | — |
| keyword | #2d9574 | — |
| gitDecoration.addedResourceForeground | #67b11d | — |
| gitDecoration.untrackedResourceForeground | #2d9574 | — |
| gitDecoration.ignoredResourceForeground | #b1951d | — |
| gitDecoration.renamedResourceForeground | #da8b55 | — |
| gitDecoration.modifiedResourceForeground | #3a81c3 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #4e3163 | — |
| explorer.fileForeground | #655370 | — |
| explorer.directoryForeground | #6c3163 | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #3a81c3 | — |
| editorSuggestWidget.selectedBackground | #655370 | — |
| editorSuggestWidget.background | #8c799f | — |
| invalid | #fbf8ef | — |
| invalid | #3a81c3 | — |
| invalid | #ba2f59 | — |
| invalid | #ba2f59 | — |
| invalid | #6c3163 | — |
| invalid | #42ae2c | — |
| invalid, invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| invalid | #88090B | — |
| invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| entity.name.type | #3a81c3 | — |
| variable | #B22222 | — |
| entity.name.function | #00008B | — |
| constant | #FF1493 | — |
| string | #2d9574 | — |
| comment.documentation | #2d9574 | — |
| diffEditor.insertedTextBackground | — | — |
| diffEditor.removedTextBackground | — | — |
| invalid | #FF0000 | — |
| entity.name.function | #6c3163 | — |
| diff.insertedTextBackground | — | — |
| diff.removedTextBackground | — | — |
| meta.diff.header.file | #655370 | — |
| meta.diff.header | #6c3163 | — |
| invalid.deprecated | #e0211d | — |
| invalid.deprecated | #dc752f | — |
| entity.name.function | #715ab1 | — |
| invalid.deprecated | #dc752f | — |
| string | #00008B | — |
| invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| invalid.deprecated | #dc752f | — |
| invalid | #e0211d | — |
| variable | #0000FF | — |
| variable | #0000FF | — |
| comment | #00008B | — |
| comment | — | — |
| comment.documentation | #006400 | — |
| entity.name.function | #ba2f59 | — |
| editor.findMatchBackground | #ba2f59 | — |
| editor.findMatchHighlightBackground | — | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #fbf8ef | — |
| string.regexp | #2d9574 | — |
| meta.preprocessor, keyword.control.import | #6c3163 | — |
| invalid.deprecated | #dc752f | — |
| invalid.deprecated | #dc752f | — |
| constant, constant.language, support.constant | #4e3163 | — |
| constant | #4e3163 | — |
| storage.type, support.type, entity.name.type | #ba2f59 | — |
| entity.name.type | #ba2f59 | — |
| variable | #715ab1 | — |
| variable, variable.other | #715ab1 | — |
| variable | #715ab1 | — |
| entity.name.function | #6c3163 | — |
| entity.name.function, support.function | #6c3163 | — |
| entity.name.function | #6c3163 | — |
| support.function, support.class, support.type | #3a81c3 | — |
| keyword, storage, keyword.control, storage.modifier | #3a81c3 | — |
| keyword | #3a81c3 | — |
| comment.documentation | #4e3163 | — |
| comment.documentation, comment.block.documentation | #da8b55 | — |
| comment.documentation | #da8b55 | — |
| string, string.quoted, string.template | #2d9574 | — |
| string | #2d9574 | — |
| comment, punctuation.definition.comment | #2aa1ae | — |
| comment | #2aa1ae | — |
| comment, punctuation.definition.comment | #2aa1ae | — |
| comment | #2aa1ae | — |
| invalid | #655370 | — |
| invalid | — | — |
| invalid.illegal | #e0211d | — |
| editor.wordHighlightStrongBackground | #ba2f59 | — |
| invalid.deprecated | #dc752f | — |
| invalid.illegal | #e0211d | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #655370 | — |
| editorGroup.border | #b3b9be | — |
| editorGroupHeader.tabsBackground | — | — |
| statusBar.noFolderBackground | #655370 | — |
| statusBar.background, statusBar.foreground | #655370 | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #655370 | — |
| editorLineNumber.foreground | #a8a8bf | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #655370 | — |
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}!`;
}