Dark Ever
Publisher: Correia DarkThemes in package: 8
A theme extension with Everforest, Gruvbox, Kanagawa, and Nordic variants for Visual Studio Code.
A theme extension with Everforest, Gruvbox, Kanagawa, and Nordic variants for Visual Studio 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, punctuation.definition.comment | #727B8E | italic |
| keyword, storage, keyword.control | #D3BF8A | — |
| string, string.quoted, string.regexp | #8FBF9A | — |
| constant, constant.numeric, constant.language | #B7A1D9 | — |
| entity.name.function, support.function, meta.function-call | #8FB7D6 | — |
| entity.name.type, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, storage.type, entity.name.type.rust, support.type.rust, entity.name.type.parameter.rust | #B48F5D | — |
| support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, entity.name.type.class | #B48F5D | — |
| entity.name.variant.rust, entity.name.enum.variant.rust, entity.name.type.variant, entity.name.type.variant.rust, entity.name.constant.rust, meta.enum.rust entity.name.type.rust, variable.other.enummember, support.constant.enum, constant.other.enum | #D9DEE8 | — |
| entity.name.type.lifetime.rust | #E69875 | — |
| punctuation.brackets.angle, punctuation.brackets.angle.rust, punctuation.brackets.square, punctuation.brackets.square.rust, punctuation.section.braces.begin, punctuation.section.braces.end, punctuation.section.block.begin, punctuation.section.block.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, keyword.operator.arrow.rust, keyword.operator.fat-arrow.rust, storage.type.function.arrow.rust, punctuation.definition.generic.begin.rust, punctuation.definition.generic.end.rust | #BEAF84 | — |
| variable, variable.parameter | #C6C8CF | — |
| punctuation.definition.variable.php, meta.variable.php punctuation.definition.variable.php, source.php punctuation.definition.variable | #B48F5D | — |
| variable.language.this, variable.language.this.php, variable.language.self | #B39AC8 | — |
| punctuation, punctuation.definition | #AEB5C3 | — |
| keyword.operator, keyword.operator.arrow, keyword.operator.arrow.rust, keyword.operator.fat-arrow, keyword.operator.fat-arrow.rust, storage.type.function.arrow, storage.type.function.arrow.rust, punctuation.brackets.angle, punctuation.brackets.angle.rust, punctuation.brackets.square, punctuation.brackets.square.rust, punctuation.section.braces.begin, punctuation.section.braces.end, punctuation.section.block.begin, punctuation.section.block.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.separator.key-value, punctuation.separator.key-value.rust, punctuation.definition.generic.begin.rust, punctuation.definition.generic.end.rust | #BEAF84 | — |
| markup.heading, markup.heading.markdown | #D3BF8A | bold |
| entity.name.tag, meta.tag | #8FB7D6 | — |
| entity.other.attribute-name | #D3BF8A | — |
| support.macro.rust, entity.name.function.macro.rust, entity.name.function.macro.dark-ever.rust | #B7A1D9 | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator, storage.type.annotation, storage.type.annotation.java, entity.name.type.annotation, entity.name.type.annotation.java, meta.annotation, meta.annotation.java | #B39AC8 | — |
| meta.enum.rust entity.name.type.rust, meta.enum.rust entity.name.type, meta.enum.rust meta.block.rust entity.name.type.rust, meta.enum.rust meta.block.rust entity.name.type, meta.enum.rust meta.group.rust entity.name.type.rust, meta.enum.rust meta.group.rust entity.name.type, meta.block.rust meta.enum.rust entity.name.type.rust, meta.block.rust meta.enum.rust entity.name.type, entity.name.type.variant, entity.name.type.variant.rust, entity.name.type.enum.variant, entity.name.type.enum.variant.rust, meta.enum.rust variable.other.readwrite, meta.enum.rust variable.other | #D9DEE8 | — |
| keyword.declaration.enum.rust storage.type.rust, keyword.declaration.struct.rust storage.type.rust | #D3BF8A | — |
| entity.name.namespace.rust | #B48F5D | — |
| invalid, invalid.illegal | #C27A7A | — |
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}!`;
}