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 | #ffb86c | — |
| comment | #606580 | — |
| markup.heading | #57c7ff | — |
| entity.name.tag | #ff6ac1 | — |
| entity.name.tag | #ffb86c | — |
| comment | #606580 | — |
| markup.underline.link | #ff6ac1 | — |
| keyword | #9aedfe | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #ff5c57 | — |
| invalid | #ff5c57 | — |
| keyword | #f3f99d | — |
| keyword | #f3f99d | — |
| invalid.deprecated | #f3f99d | — |
| invalid.deprecated | — | — |
| markup.inserted | #5af78e | — |
| markup.inserted | #48c571 | — |
| comment | #bd93f9 | — |
| comment | #ffb86c | — |
| comment | #ffb86c | — |
| comment | #5af78e | — |
| comment | #ff6ac1 | — |
| keyword | #9aedfe | — |
| gitDecoration.addedResourceForeground | #5af78e | — |
| gitDecoration.untrackedResourceForeground | #f5fab5 | — |
| gitDecoration.ignoredResourceForeground | #606580 | — |
| gitDecoration.renamedResourceForeground | #f5fab5 | — |
| gitDecoration.modifiedResourceForeground | #bd93f9 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #f3f99d | — |
| explorer.fileForeground | #f9f9f9 | — |
| explorer.directoryForeground | #f9f9f9 | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #57c7ff | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #f9f9f9 | — |
| invalid | #FF0000 | — |
| invalid | #57c7ff | — |
| invalid | #9aedfe | — |
| invalid | #9aedfe | — |
| invalid | #5af78e | — |
| invalid, invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| invalid | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| entity.name.type | #ffb86c | — |
| variable | #FFA500 | — |
| entity.name.function | #4D4DDDDDDDDD | — |
| constant | #FF1493 | — |
| string | #FFA500 | — |
| comment.documentation | #606580 | — |
| diffEditor.insertedTextBackground | #5af78e | — |
| diffEditor.removedTextBackground | #ff5c57 | — |
| invalid | #FF0000 | — |
| entity.name.function | #9aedfe | — |
| diff.insertedTextBackground | #5af78e | — |
| diff.removedTextBackground | #ff5c57 | — |
| meta.diff.header.file | #57c7ff | — |
| meta.diff.header | #9aedfe | — |
| invalid.deprecated | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| entity.name.function | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| string | #FFFFE0 | — |
| invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| invalid | #ff5c57 | — |
| variable | #5af78e | — |
| variable | #ff6ac1 | — |
| variable | #848688 | — |
| comment | #848688 | — |
| comment | #f9f9f9 | — |
| comment.documentation | #5af78e | — |
| editor.findMatchBackground | #5af78e | — |
| editor.findMatchHighlightBackground | #ff5c57 | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #ff5c57 | — |
| string.regexp | #ff6ac1 | — |
| string.regexp | #ff6ac1 | — |
| string.regexp | #f3f99d | — |
| meta.preprocessor, keyword.control.import | #ff6ac1 | — |
| invalid.deprecated | #f3f99d | — |
| invalid.deprecated | #f3f99d | — |
| constant, constant.language, support.constant | #5af78e | — |
| constant | #5af78e | — |
| storage.type, support.type, entity.name.type | #9aedfe | — |
| entity.name.type | #9aedfe | — |
| variable | #ff5c57 | — |
| variable, variable.other | #ff5c57 | — |
| variable | #ff5c57 | — |
| entity.name.function | #57c7ff | — |
| entity.name.function, support.function | #57c7ff | — |
| entity.name.function | #57c7ff | — |
| support.function, support.class, support.type | #ff6ac1 | — |
| keyword, storage, keyword.control, storage.modifier | #ffb86c | — |
| keyword | #ffb86c | — |
| comment.documentation | #5af78e | — |
| comment.documentation, comment.block.documentation | #f5fab5 | — |
| comment.documentation | #f5fab5 | — |
| string, string.quoted, string.template | #f3f99d | — |
| string | #f3f99d | — |
| comment, punctuation.definition.comment | #606580 | — |
| comment | #606580 | — |
| comment, punctuation.definition.comment | #606580 | — |
| comment | #606580 | — |
| invalid | #282a36 | — |
| invalid | — | — |
| invalid.illegal | #282a36 | — |
| editor.wordHighlightStrongBackground | #ff5c57 | — |
| invalid.deprecated | #f3f99d | — |
| invalid.illegal | #ff5c57 | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #a5a5a9 | — |
| editorGroup.border | #2e2f37 | — |
| editorGroupHeader.tabsBackground | — | — |
| statusBar.noFolderBackground | #e2e4e5 | — |
| statusBar.background, statusBar.foreground | — | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #f9f9f9 | — |
| editorLineNumber.foreground | #3a3d4d | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #282a36 | — |
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}!`;
}