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 | #96CBFE | — |
| comment | #5B6268 | — |
| markup.heading | #ff6c60 | — |
| entity.name.tag | #5B6268 | — |
| entity.name.tag | #96CBFE | — |
| comment | #5B6268 | — |
| markup.underline.link | #FF73FD | — |
| keyword | #FFFFB6 | — |
| markup.fenced_code, markup.inline.raw | — | — |
| markup.list | #ff6c60 | — |
| invalid | #ff6c60 | — |
| keyword | #FFFFB6 | — |
| keyword | #A8FF60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid.deprecated | — | — |
| markup.inserted | #A8FF60 | — |
| markup.inserted | #86cc4c | — |
| comment | #a9a1e1 | — |
| comment | #96CBFE | — |
| comment | #E9C062 | — |
| comment | #A8FF60 | — |
| comment | #FF73FD | — |
| keyword | #C6C5FE | — |
| gitDecoration.addedResourceForeground | #A8FF60 | — |
| gitDecoration.untrackedResourceForeground | #83898d | — |
| gitDecoration.ignoredResourceForeground | #5B6268 | — |
| gitDecoration.renamedResourceForeground | #83898d | — |
| gitDecoration.modifiedResourceForeground | #a9a1e1 | — |
| breadcrumb.foreground, tree.tableColumnHeader.foreground | #A8FF60 | — |
| explorer.fileForeground | #f6f3e8 | — |
| explorer.directoryForeground | #f6f3e8 | — |
| comment.documentation | #696969 | — |
| editorSuggestWidget.highlightForeground | #96CBFE | — |
| editorSuggestWidget.selectedBackground | — | — |
| editorSuggestWidget.background | #f6f3e8 | — |
| invalid | #FF0000 | — |
| invalid | #FFD2A7 | — |
| invalid | #FFFFB6 | — |
| invalid | #FFFFB6 | — |
| invalid | #A8FF60 | — |
| invalid, invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| invalid | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| entity.name.type | #96CBFE | — |
| variable | #FFA500 | — |
| entity.name.function | #4D4DDDDDDDDD | — |
| constant | #FF1493 | — |
| string | #FFA500 | — |
| comment.documentation | #5B6268 | — |
| diffEditor.insertedTextBackground | #A8FF60 | — |
| diffEditor.removedTextBackground | #ff6c60 | — |
| invalid | #FF0000 | — |
| entity.name.function | #C6C5FE | — |
| diff.insertedTextBackground | #A8FF60 | — |
| diff.removedTextBackground | #ff6c60 | — |
| meta.diff.header.file | #96CBFE | — |
| meta.diff.header | #C6C5FE | — |
| invalid.deprecated | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| entity.name.function | #ffabfd | — |
| invalid.deprecated | #FFFFB6 | — |
| string | #FFFFE0 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid | #ff6c60 | — |
| variable | #A8FF60 | — |
| variable | #FF73FD | — |
| variable | #3f444a | — |
| comment | #3f444a | — |
| comment | #f6f3e8 | — |
| comment.documentation | #A8FF60 | — |
| editor.findMatchBackground | #A8FF60 | — |
| editor.findMatchHighlightBackground | #DFDFDF | — |
| editor.findMatchBackground, editor.findMatchHighlightBackground | #DFDFDF | — |
| string.regexp | #ffffff | — |
| string.regexp | #ffffff | — |
| string.regexp | #A8FF60 | — |
| meta.preprocessor, keyword.control.import | #ffffff | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid.deprecated | #FFFFB6 | — |
| constant, constant.language, support.constant | #99CC99 | — |
| constant | #99CC99 | — |
| storage.type, support.type, entity.name.type | #FFFFB6 | — |
| entity.name.type | #FFFFB6 | — |
| variable | #ffabfd | — |
| variable, variable.other | #ffabfd | — |
| variable | #ffabfd | — |
| entity.name.function | #FFD2A7 | — |
| entity.name.function, support.function | #FFD2A7 | — |
| entity.name.function | #FFD2A7 | — |
| support.function, support.class, support.type | #FF73FD | — |
| keyword, storage, keyword.control, storage.modifier | #96CBFE | — |
| keyword | #96CBFE | — |
| comment.documentation | #99CC99 | — |
| comment.documentation, comment.block.documentation | #83898d | — |
| comment.documentation | #83898d | — |
| string, string.quoted, string.template | #A8FF60 | — |
| string | #A8FF60 | — |
| comment, punctuation.definition.comment | #5B6268 | — |
| comment | #5B6268 | — |
| comment, punctuation.definition.comment | #5B6268 | — |
| comment | #5B6268 | — |
| invalid | #1B2229 | — |
| invalid | — | — |
| invalid.illegal | #1B2229 | — |
| editor.wordHighlightStrongBackground | #ff6c60 | — |
| invalid.deprecated | #FFFFB6 | — |
| invalid.illegal | #ff6c60 | — |
| editorCursor.foreground | — | — |
| editorGutter.background | #3f444a | — |
| editorGroup.border | #5B6268 | — |
| editorGroupHeader.tabsBackground | #ffffff | — |
| statusBar.noFolderBackground | #5B6268 | — |
| statusBar.background, statusBar.foreground | #ffffff | — |
| editorLineNumber.activeForeground | — | — |
| editorLineNumber.activeForeground | #FFFF00 | — |
| editorLineNumber.foreground | #5B6268 | — |
| invalid.deprecated | — | — |
| editor.selectionHighlightBackground | — | — |
| editor.selectionBackground, editor.selectionForeground | — | — |
| editor.findMatchBackground | #1B2229 | — |
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}!`;
}