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 | #ff79c6 | — |
| comment | #6272a4 | — |
| markup.heading | #ff5555 | — |
| entity.name.tag | #6272a4 | — |
| entity.name.tag | #ff79c6 | — |
| comment | #6272a4 | — |
| markup.underline.link | #ff79c6 | — |
| keyword | #bd93f9 | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #ff5555 | — |
| invalid | #ff5555 | — |
| keyword | #f1fa8c | — |
| keyword | #f1fa8c | — |
| invalid.deprecated | #f1fa8c | — |
| invalid.deprecated | — | — |
| markup.inserted | #50fa7b | — |
| markup.inserted | #40c862 | — |
| comment | #bd93f9 | — |
| comment | #ff79c6 | — |
| comment | #ffb86c | — |
| comment | #50fa7b | — |
| comment | #ff79c6 | — |
| keyword | #8be9fd | — |
| gitDecoration.addedResourceForeground | #50fa7b | — |
| gitDecoration.untrackedResourceForeground | #8995ba | — |
| gitDecoration.ignoredResourceForeground | #6272a4 | — |
| gitDecoration.renamedResourceForeground | #8995ba | — |
| gitDecoration.modifiedResourceForeground | #bd93f9 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #f1fa8c | — |
| explorer.fileForeground | #f8f8f2 | — |
| explorer.directoryForeground | #f8f8f2 | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #bd93f9 | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #f8f8f2 | — |
| invalid | #FF0000 | — |
| invalid | #50fa7b | — |
| invalid | #bd93f9 | — |
| invalid | #bd93f9 | — |
| invalid | #50fa7b | — |
| invalid, invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| invalid | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| entity.name.type | #ff79c6 | — |
| variable | #FFA500 | — |
| entity.name.function | #4D4DDDDDDDDD | — |
| constant | #FF1493 | — |
| string | #FFA500 | — |
| comment.documentation | #6272a4 | — |
| diffEditor.insertedTextBackground | #50fa7b | — |
| diffEditor.removedTextBackground | #ff5555 | — |
| invalid | #FF0000 | — |
| entity.name.function | #8be9fd | — |
| diff.insertedTextBackground | #50fa7b | — |
| diff.removedTextBackground | #ff5555 | — |
| meta.diff.header.file | #61bfff | — |
| meta.diff.header | #8be9fd | — |
| invalid.deprecated | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| entity.name.function | #ffc9e8 | — |
| invalid.deprecated | #f1fa8c | — |
| string | #FFFFE0 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid | #ff5555 | — |
| variable | #50fa7b | — |
| variable | #ff79c6 | — |
| variable | #565761 | — |
| comment | #565761 | — |
| comment | #f8f8f2 | — |
| comment.documentation | #50fa7b | — |
| editor.findMatchBackground | #50fa7b | — |
| editor.findMatchHighlightBackground | #f8f8f2 | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #f8f8f2 | — |
| string.regexp | #bd93f9 | — |
| string.regexp | #bd93f9 | — |
| string.regexp | #f1fa8c | — |
| meta.preprocessor, keyword.control.import | #bd93f9 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid.deprecated | #f1fa8c | — |
| constant, constant.language, support.constant | #8be9fd | — |
| constant | #8be9fd | — |
| storage.type, support.type, entity.name.type | #bd93f9 | — |
| entity.name.type | #bd93f9 | — |
| variable | #ffc9e8 | — |
| variable, variable.other | #ffc9e8 | — |
| variable | #ffc9e8 | — |
| entity.name.function | #50fa7b | — |
| entity.name.function, support.function | #50fa7b | — |
| entity.name.function | #50fa7b | — |
| support.function, support.class, support.type | #ffb86c | — |
| keyword, storage, keyword.control, storage.modifier | #ff79c6 | — |
| keyword | #ff79c6 | — |
| comment.documentation | #8be9fd | — |
| comment.documentation, comment.block.documentation | #8995ba | — |
| comment.documentation | #8995ba | — |
| string, string.quoted, string.template | #f1fa8c | — |
| string | #f1fa8c | — |
| comment, punctuation.definition.comment | #6272a4 | — |
| comment | #6272a4 | — |
| comment, punctuation.definition.comment | #6272a4 | — |
| comment | #6272a4 | — |
| invalid | #1E2029 | — |
| invalid | — | — |
| invalid.illegal | #1E2029 | — |
| editor.wordHighlightStrongBackground | #ff5555 | — |
| invalid.deprecated | #f1fa8c | — |
| invalid.illegal | #ff5555 | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #565761 | — |
| editorGroup.border | #242530 | — |
| editorGroupHeader.tabsBackground | — | — |
| statusBar.noFolderBackground | #6272a4 | — |
| statusBar.background, statusBar.foreground | — | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #f8f8f2 | — |
| editorLineNumber.foreground | #6272a4 | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #1E2029 | — |
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}!`;
}