Evil Green Theme
Publisher: CodeFasterThemes in package: 2
A theme who loves green and red colors.
A theme who loves green and red colors.
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 |
|---|---|---|
| — | #d3d0c8ff | — |
| variable.parameter.function | #1ce566 | — |
| comment, punctuation.definition.comment | #60576f | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #d3d0c8 | — |
| none | #e40043 | — |
| keyword.operator | #008ed2 | — |
| entity.name.atomtag.vinala-atomium | #e40043 | — |
| entity.name.echo.vinala-atomium | #9f47ff | — |
| keyword | #e45100 | — |
| variable | #a5d851 | — |
| entity.name.function, meta.require, support.function.any-method | #008ed2 | — |
| support.class, entity.name.class, entity.name.type.class | #9f47ff | — |
| meta.class | #00ffff | — |
| keyword.other.special-method | #6699cc | — |
| storage | #ae51d8 | — |
| support.function | #66cccc | — |
| string, constant.other.symbol, entity.other.inherited-class | #c30051 | — |
| constant.numeric | #f99157 | — |
| none | #f99157 | — |
| none | #f99157 | — |
| constant | #f99157 | — |
| entity.name.tag | #20b2aa | — |
| entity.name.subtag | #00ff00 | — |
| entity.other.attribute-name | #00bcd4 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #6699cc | — |
| meta.selector | #cc99cc | — |
| none | #f99157 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #6699cc | |
| keyword.other.unit | #f99157 | — |
| markup.bold, punctuation.definition.bold | #ffcc66 | bold |
| markup.italic, punctuation.definition.italic | #cc99cc | italic |
| markup.raw.inline | #99cc99 | — |
| string.other.link | #f2777a | — |
| meta.link | #f99157 | — |
| markup.list | #f2777a | — |
| markup.quote | #f99157 | — |
| meta.separator | #d3d0c8 | — |
| markup.inserted, markup.inserted.git_gutter | #d21d52 | — |
| markup.deleted, markup.deleted.git_gutter | #f2777a | — |
| markup.changed, markup.changed.git_gutter | #cc99cc | — |
| markup.ignored, markup.ignored.git_gutter | #515151 | — |
| markup.untracked, markup.untracked.git_gutter | #515151 | — |
| constant.other.color | #66cccc | — |
| string.regexp | #66cccc | — |
| constant.character.escape | #66cccc | — |
| punctuation.section.embedded, variable.interpolation | #d27b53 | — |
| invalid.illegal | #2d2d2d | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #8bc34a | — |
| meta.property-name, support.type.property-name | #15b7ff | — |
| keyword.other.important | #ff0960 | bold |
| markup.deleted.git_gutter | #F92672 | — |
| markup.inserted.git_gutter | #A6E22E | — |
| markup.changed.git_gutter | #967EFB | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}