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 | #F0DFAF | — |
| comment | #7F9F7F | — |
| markup.heading | #CC9393 | — |
| entity.name.tag | #4F4F4F | — |
| entity.name.tag | #F0DFAF | — |
| comment | #7F9F7F | — |
| markup.underline.link | #DC8CC3 | — |
| keyword | #7CB8BB | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #CC9393 | — |
| invalid | #CC9393 | — |
| keyword | #E0CF9F | — |
| keyword | #CC9393 | — |
| invalid.deprecated | #DFAF8F | — |
| invalid.deprecated | — | — |
| markup.inserted | #7F9F7F | — |
| markup.inserted | #657f65 | — |
| comment | #8FB28F | — |
| comment | #a9a1e1 | — |
| comment | #F0DFAF | — |
| comment | #DFAF8F | — |
| comment | #7F9F7F | — |
| comment | #94BFF3 | — |
| keyword | #93E0E3 | — |
| gitDecoration.addedResourceForeground | #7F9F7F | — |
| gitDecoration.untrackedResourceForeground | #9FC59F | — |
| gitDecoration.ignoredResourceForeground | #7F9F7F | — |
| gitDecoration.renamedResourceForeground | #9FC59F | — |
| gitDecoration.modifiedResourceForeground | #a9a1e1 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #CC9393 | — |
| explorer.fileForeground | #DCDCDC | — |
| explorer.directoryForeground | #DCDCDC | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #8CD0D3 | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #DCDCDC | — |
| invalid | #FF0000 | — |
| invalid | #93E0E3 | — |
| invalid | #7CB8BB | — |
| invalid | #7CB8BB | — |
| invalid | #7F9F7F | — |
| invalid, invalid.deprecated | #DFAF8F | — |
| invalid | #CC9393 | — |
| invalid.deprecated | #F0DFAF | — |
| invalid | #CC9393 | — |
| invalid | #CC9393 | — |
| invalid.deprecated | #E0CF9F | — |
| invalid | #CC9393 | — |
| invalid.deprecated | #DFAF8F | — |
| invalid | #CC9393 | — |
| entity.name.type | #F0DFAF | — |
| variable | #FFA500 | — |
| entity.name.function | #4D4DDDDDDDDD | — |
| constant | #FF1493 | — |
| string | #FFA500 | — |
| comment.documentation | #7F9F7F | — |
| diffEditor.insertedTextBackground | #7F9F7F | — |
| diffEditor.removedTextBackground | #CC9393 | — |
| invalid | #FF0000 | — |
| entity.name.function | #93E0E3 | — |
| diff.insertedTextBackground | #7F9F7F | — |
| diff.removedTextBackground | #CC9393 | — |
| meta.diff.header.file | #8CD0D3 | — |
| meta.diff.header | #93E0E3 | — |
| invalid.deprecated | #CC9393 | — |
| invalid.deprecated | #DFAF8F | — |
| entity.name.function | #DFAF8F | — |
| invalid.deprecated | #F0DFAF | — |
| string | #FFFFE0 | — |
| invalid.deprecated | #DFAF8F | — |
| invalid | #CC9393 | — |
| invalid.deprecated | #DFAF8F | — |
| invalid | #CC9393 | — |
| variable | #7F9F7F | — |
| variable | #8CD0D3 | — |
| variable | #494949 | — |
| comment | #494949 | — |
| comment | #DCDCDC | — |
| comment.documentation | #7F9F7F | — |
| editor.findMatchBackground | #7F9F7F | — |
| editor.findMatchHighlightBackground | #D0BF8F | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #D0BF8F | — |
| string.regexp | #8CD0D3 | — |
| string.regexp | #8CD0D3 | — |
| string.regexp | #CC9393 | — |
| meta.preprocessor, keyword.control.import | #8CD0D3 | — |
| invalid.deprecated | #E0CF9F | — |
| invalid.deprecated | #E0CF9F | — |
| constant, constant.language, support.constant | #BFEBBF | — |
| constant | #BFEBBF | — |
| storage.type, support.type, entity.name.type | #7CB8BB | — |
| entity.name.type | #7CB8BB | — |
| variable | #DFAF8F | — |
| variable, variable.other | #DFAF8F | — |
| variable | #DFAF8F | — |
| entity.name.function | #93E0E3 | — |
| entity.name.function, support.function | #93E0E3 | — |
| entity.name.function | #93E0E3 | — |
| support.function, support.class, support.type | #DCDCDC | — |
| keyword, storage, keyword.control, storage.modifier | #F0DFAF | — |
| keyword | #F0DFAF | — |
| comment.documentation | #BFEBBF | — |
| comment.documentation, comment.block.documentation | #9FC59F | — |
| comment.documentation | #9FC59F | — |
| string, string.quoted, string.template | #CC9393 | — |
| string | #CC9393 | — |
| comment, punctuation.definition.comment | #5F7F5F | — |
| comment | #5F7F5F | — |
| comment, punctuation.definition.comment | #7F9F7F | — |
| comment | #7F9F7F | — |
| invalid | — | — |
| invalid | — | — |
| invalid.illegal | #3F3F3F | — |
| editor.wordHighlightStrongBackground | #93E0E3 | — |
| invalid.deprecated | #DFAF8F | — |
| invalid.illegal | #CC9393 | — |
| editorCursor.foreground | #DCDCDC | — |
| editorGutter.background | #494949 | — |
| editorGroup.border | #656555 | — |
| editorGroupHeader.tabsBackground | #8FB28F | — |
| statusBar.noFolderBackground | #989890 | — |
| statusBar.background, statusBar.foreground | #8FB28F | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #D0BF8F | — |
| editorLineNumber.foreground | #6F6F6F | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | — | — |
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}!`;
}