Ultimate Dark Ever
Publisher: PeDaniel-cerpaThemes in package: 1
That's a theme inspired by Everforest
That's a theme inspired by Everforest
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 | #7f897d | italic |
| meta.preprocessor.cs, meta.preprocessor, keyword.control.directive.region.cs, keyword.control.directive.endregion.cs, keyword.control.directive.region, keyword.control.directive.endregion, keyword.control.directive.cs, punctuation.definition.directive.cs, entity.name.function.preprocessor | #6f7a70 | — |
| meta.preprocessor.string.cs, meta.preprocessor.string, entity.name.section.region.cs, meta.preprocessor.region.cs | #859289 | — |
| string, string.quoted, string.template, string.regexp | #a7c080 | — |
| constant.character.escape, string.regexp.character-class | #83c092 | — |
| constant.numeric | #d699b6 | — |
| constant.language, constant.language.null, constant.language.undefined, constant.language.null.php, constant.language.boolean | #d699b6 | — |
| variable.other.constant, constant.other | #d699b6 | — |
| keyword, keyword.control, keyword.other | #e67e80 | italic |
| keyword.operator, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.assignment | #e69875 | — |
| keyword.operator.access, keyword.operator.member, keyword.operator.object-access, keyword.operator.scope-resolution, keyword.operator.key-value, keyword.operator.object-access.php, keyword.operator.scope-resolution.php, keyword.operator.class.php, keyword.operator.array.php, punctuation.accessor, punctuation.separator.accessor, punctuation.separator.coloncolon, punctuation.separator.object-access, punctuation.separator.key-value, punctuation.separator.dictionary.key-value, punctuation.separator.object-access.php, punctuation.separator.coloncolon.php, punctuation.separator.key-value.php | #e69875 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #7fbbb3 | — |
| keyword.control.return, keyword.control.flow, storage.modifier.async | #e67e80 | — |
| storage.type, storage.modifier | #e67e80 | italic |
| storage.type.function.php | #e69875 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #dbbc7f | italic |
| variable.parameter.type, entity.name.type.parameter | #e69875 | — |
| entity.other.inherited-class | #a7c080 | italic underline |
| entity.name.function, meta.function-call entity.name.function, support.function | #83c092 | — |
| meta.function-call | #d3c6aa | — |
| variable, variable.other, variable.other.readwrite | #d3c6aa | — |
| punctuation.definition.variable.php | #e69875 | — |
| variable.parameter | #e69875 | — |
| variable.language.this, variable.language.self, variable.language.this.php | #d699b6 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #7fbbb3 | — |
| variable.other.member, variable.other.readwrite.member | #d3c6aa | — |
| punctuation, punctuation.separator, punctuation.terminator | #7f897d | — |
| punctuation.definition.block, punctuation.definition.parameters, meta.brace | #9aa79d | — |
| entity.name.tag, meta.tag.sgml | #e67e80 | — |
| entity.other.attribute-name | #dbbc7f | italic |
| string.quoted.double.html, string.quoted.single.html | #a7c080 | — |
| support.class.component, entity.name.tag.tsx, entity.name.tag.jsx | #dbbc7f | — |
| punctuation.section.embedded, punctuation.definition.template-expression | #83c092 | italic |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #dbbc7f | — |
| support.type.property-name.css, meta.property-name | #7fbbb3 | — |
| support.constant.property-value.css, meta.property-value | #a7c080 | — |
| keyword.other.unit.css | #e69875 | — |
| constant.other.color.rgb-value.css, support.constant.color | #d699b6 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #83c092 | — |
| markup.heading, entity.name.section.markdown | #e67e80 | bold |
| markup.bold | #dbbc7f | bold |
| markup.italic | #d699b6 | italic |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.fenced_code, markup.inline.raw | #a7c080 | — |
| markup.underline.link, string.other.link | #83c092 | — |
| markup.underline | — | underline |
| punctuation.definition.list.begin.markdown | #e69875 | — |
| markup.quote | #7f897d | — |
| punctuation.definition.thematic-break | #e69875 | — |
| markup.list.numbered.bullet | #a7c080 | — |
| markup.quote punctuation.definition.blockquote, markup.list punctuation.definition.list_item | #e69875 | — |
| text punctuation.definition.italic | text punctuation.definition.bold | #d699b6 | — |
| support.type.property-name.json, source.yaml entity.name.tag | #7fbbb3 | — |
| source.yaml string.unquoted | #a7c080 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust | #e69875 | — |
| support.macro.rust, entity.name.function.macro.rust | #83c092 | — |
| meta.attribute.rust | #7f897d | — |
| source.go entity.name.package | #dbbc7f | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator | #d699b6 | italic |
| invalid | #e67e80 | — |
| invalid.deprecated | #e69875 | — |
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}!`;
}