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 | #40B4C4 | — |
| comment | #91889B | — |
| markup.heading | #EB64B9 | — |
| entity.name.tag | #91889B | — |
| entity.name.tag | #40B4C4 | — |
| comment | #91889B | — |
| markup.underline.link | #FFFFFF | — |
| keyword | #FFE261 | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #91889B | — |
| invalid | #964C7B | — |
| keyword | #FFE261 | — |
| keyword | #B4DCE7 | — |
| invalid.deprecated | #FFE261 | — |
| invalid.deprecated | — | — |
| markup.inserted | #74DFC4 | — |
| markup.inserted | #5cb29c | — |
| comment | #B381C5 | — |
| comment | #40B4C4 | — |
| comment | #FFB85B | — |
| comment | #74DFC4 | — |
| comment | #EB64B9 | — |
| keyword | #B4DCE7 | — |
| gitDecoration.addedResourceForeground | #74DFC4 | — |
| gitDecoration.untrackedResourceForeground | #919ea7 | — |
| gitDecoration.ignoredResourceForeground | #91889B | — |
| gitDecoration.renamedResourceForeground | #919ea7 | — |
| gitDecoration.modifiedResourceForeground | #B381C5 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #B4DCE7 | — |
| explorer.fileForeground | #FFFFFF | — |
| explorer.directoryForeground | #FFFFFF | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #EB64B9 | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #FFFFFF | — |
| invalid | #FF0000 | — |
| invalid | #EB64B9 | — |
| invalid | #FFE261 | — |
| invalid | #FFE261 | — |
| invalid | #74DFC4 | — |
| invalid, invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| invalid | #964C7B | — |
| invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| entity.name.type | #40B4C4 | — |
| variable | #FFA500 | — |
| entity.name.function | #4D4DDDDDDDDD | — |
| constant | #FF1493 | — |
| string | #FFA500 | — |
| comment.documentation | #91889B | — |
| diffEditor.insertedTextBackground | #74DFC4 | — |
| diffEditor.removedTextBackground | #964C7B | — |
| invalid | #FF0000 | — |
| entity.name.function | #B4DCE7 | — |
| diff.insertedTextBackground | #74DFC4 | — |
| diff.removedTextBackground | #964C7B | — |
| meta.diff.header.file | #40B4C4 | — |
| meta.diff.header | #B4DCE7 | — |
| invalid.deprecated | #964C7B | — |
| invalid.deprecated | #FFE261 | — |
| entity.name.function | #FFFFFF | — |
| invalid.deprecated | #FFE261 | — |
| string | #FFFFE0 | — |
| invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| invalid.deprecated | #FFE261 | — |
| invalid | #964C7B | — |
| variable | #74DFC4 | — |
| variable | #EB64B9 | — |
| variable | #4E415C | — |
| comment | #4E415C | — |
| comment | #FFFFFF | — |
| comment.documentation | #74DFC4 | — |
| editor.findMatchBackground | #74DFC4 | — |
| editor.findMatchHighlightBackground | #FFFFFF | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #FFFFFF | — |
| string.regexp | #40B4C4 | — |
| string.regexp | #40B4C4 | — |
| string.regexp | #B4DCE7 | — |
| meta.preprocessor, keyword.control.import | #40B4C4 | — |
| invalid.deprecated | #FFE261 | — |
| invalid.deprecated | #FFE261 | — |
| constant, constant.language, support.constant | #B381C5 | — |
| constant | #B381C5 | — |
| storage.type, support.type, entity.name.type | #FFE261 | — |
| entity.name.type | #FFE261 | — |
| variable | #FFFFFF | — |
| variable, variable.other | #FFFFFF | — |
| variable | #FFFFFF | — |
| entity.name.function | #EB64B9 | — |
| entity.name.function, support.function | #EB64B9 | — |
| entity.name.function | #EB64B9 | — |
| support.function, support.class, support.type | #EB64B9 | — |
| keyword, storage, keyword.control, storage.modifier | #40B4C4 | — |
| keyword | #40B4C4 | — |
| comment.documentation | #B381C5 | — |
| comment.documentation, comment.block.documentation | #919ea7 | — |
| comment.documentation | #919ea7 | — |
| string, string.quoted, string.template | #B4DCE7 | — |
| string | #B4DCE7 | — |
| comment, punctuation.definition.comment | #91889B | — |
| comment | #91889B | — |
| comment, punctuation.definition.comment | #91889B | — |
| comment | #91889B | — |
| invalid | #222228 | — |
| invalid | — | — |
| invalid.illegal | #222228 | — |
| editor.wordHighlightStrongBackground | #FFE261 | — |
| invalid.deprecated | #FFE261 | — |
| invalid.illegal | #964C7B | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #4E415C | — |
| editorGroup.border | #1c1e24 | — |
| editorGroupHeader.tabsBackground | #1B1720 | — |
| statusBar.noFolderBackground | #ED60BA | — |
| statusBar.background, statusBar.foreground | #1B1720 | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #FFFFFF | — |
| editorLineNumber.foreground | #4E415C | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #222228 | — |
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}!`;
}