dark theme by ilex
Publisher: ilex_hThemes in package: 3
custom theme
custom theme
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 |
|---|---|---|
| variable.graphql, variable.object.property, variable.other.assignment, variable.other.block.crystal, variable.other.block, variable.other.bracket.shell, variable.other.declaration, variable.other.normal.shell, variable.other.object.js.jsx, variable.other.object.tsx, variable.other.object, variable.other.php, variable.other.positional.shell, variable.other.readwrite.instance.crystal, variable.other.readwrite, variable.other.ruby, variable.other, variable.scss | #c6c7ca | — |
| variable.language.self, variable.language.special.self, variable.language.super, variable.language.this, variable.other.alias.yaml, variable.other.class.php, variable.other.constant, variable.other.global.safer.php, variable.other.readwrite.class.ruby, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special.self, variable.other.readwrite.instance.crystal, variable.other.readwrite.module | #ff7979 | — |
| entity.alias.import | #ff7979 | — |
| support.variable, support.constant.color.w3c-standard-color-name, support.type, support.class, support.other.namespace | #ff99b3 | — |
| meta.method.declaration.js storage.type.js, support.function | #70dbc1 | — |
| meta.generic-where-clause.swift, meta.arguments.attribute.swift, storage.type.annotation, meta.attribute.rust | #c3ab85 | — |
| constant, support.constant, keyword.other.unit | #bfa6f2 | — |
| meta.object-literal.key, support.type.property-name.json, variable.other.property.js.jsx, variable.other.property.tsx, variable.other.object.property, variable.other.property, support.type.property-name | #e4aa81 | — |
| meta.function-call.arguments, variable.parameter | #e5e6e7 | — |
| entity.name.function | #85c3ab | — |
| entity.name.function-call, entity.name.function.call, meta.function-call, meta.method-call entity.name.function, meta.function-call entity.name.function, meta.function.call entity.name.function | #e0cd94 | — |
| keyword.control.module, keyword.control, keyword.operator.expression.of, keyword.operator.new, keyword.other.special-method, keyword.type.go, keyword, keyword storage.type, storage.modifier, storage.type.class, storage.type.function | #c385bc | — |
| entity.name.package, entity.name.type, entity.name.class, entity.name.namespace, entity.name.module, entity.name.scope-resolution, storage.modifier.package.java, storage.type.class.po, meta.inheritance-clause, entity.other.inherited-class | #859dc3 | — |
| keyword.operator.comparison, keyword.operator.logical | #93ecb8 | — |
| storage.type, keyword.type | #0bc2cb | — |
| keyword.operator | #f2f28c | — |
| source.elixir.embedded.source, storage.modifier.import.java, string.quoted.double, string | #9ebc8f | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ff7979 | — |
| meta.brace, punctuation | #abadb2 | — |
| comment.documentation, comment.block.documentation, string.quoted.docstring.multi.python, comment.block.documentation punctuation.definition.comment | #abadb2 | — |
| comment, punctuation.definition.comment, punctuation.whitespace.comment.leading.graphql | #464b55 | italic |
| comment.wildcard, meta.jsx.children | #c6c7ca | — |
| meta.structure.dictionary.value support.type.property-name.json | #c385bc | — |
| meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #0bc2cb | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #e0cd94 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #ff99b3 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #70dbc1 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #859dc3 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #ff7979 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #c3ab85 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #d9d326 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #e4aa81 | — |
| meta.tag.metadata, markup.underline.link | #c385bc | — |
| meta.tag.metadata.link, string.other.link.title.markdown | #85c3ab | — |
| markup.italic | #93ecb8 | — |
| punctuation.definition.tag | #797c83 | — |
| meta.tag.inline, entity.name.tag.js.jsx, entity.name.tag.tsx | #70dbc1 | — |
| meta.tag.object | #ff99b3 | — |
| meta.tag.metadata.style, source.vue entity.name.tag.style.html, string.other.link.description.markdown | #859dc3 | — |
| meta.tag.metadata.script, source.vue entity.name.tag.script.html | #d9d326 | — |
| meta.tag.custom | #bfa6f2 | — |
| meta.tag.structure, meta.tag, entity.name.tag.yaml, keyword.key.toml, markup.fenced_code.block, markup.inline.raw.string, fenced_code.block.language, markup.raw.block | #e4aa81 | — |
| entity.other.attribute-name, meta.selector.css, source.css.scss entity.name.tag.css | #e0cd94 | — |
| heading | #e0cd94 | — |
| invalid.illegal.tag-handle.yaml, text.html.markdown entity.name.tag.html, text.html.markdown punctuation.definition.tag, meta.tag.other.unrecognized, source.vue entity.name.tag.template.html | #ff7979 | — |
| markup.bold, punctuation.definition.bold | — | bold |
| markup.italic, punctuation.definition.italic, markup.quote.markdown | — | italic |
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}!`;
}