ultrafocus dark
Publisher: xlqrrwThemes in package: 1
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 | #98A3C6 | — |
| comment | #98A3C6 | — |
| string.quoted.docstring.multi.python | #b2b2b2 | — |
| comment markup.link | #b2b2b2 | — |
| markup.inserted.diff | #9a55ff | — |
| markup.deleted.diff | #E25F65 | — |
| keyword.control.cpp | #ffbe6e | — |
| punctuation.separator.key-value | #b2b2b2 | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.language.super | — | — |
| variable.language.super.js | #ffbe6e | — |
| keyword.operator.expression.import | #ffbe6e | — |
| support.constant.math | #ffbe6e | — |
| support.constant.property.math | #3bff67 | — |
| variable.other.jsdoc | #b2b2b2 | — |
| meta.embedded.line.js | #b2b2b2 | — |
| storage.type.annotation.java | #ffbe6e | — |
| storage.modifier.import.java,storage.type.java | #ffbe6e | — |
| meta.definition.variable.name.java | #ffbe6e | — |
| keyword.operator.logical.js | #ffbe6e | — |
| keyword.operator.bitwise | #ffbe6e | — |
| support.constant.property-value.scss,support.constant.property-value.css | #3bff67 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #3bff67 | — |
| punctuation.separator.list.comma.css | #b2b2b2 | — |
| support.constant.color.w3c-standard-color-name.css | #3bff67 | — |
| support.type.vendored.property-name.css | #ffbe6e | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #ffbe6e | — |
| support.module.node,support.type.object.module,support.module.node | #ffbe6e | — |
| support.constant.json | #3bff67 | — |
| keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.ternary | #3bff67 | — |
| support.type.object.console | #ffbe6e | — |
| support.variable.property.process | #3bff67 | — |
| entity.name.function,support.function.console | #ffbe6e | — |
| keyword.operator | #ffbe6e | — |
| support.type.object.dom | #ffbe6e | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #ffbe6e | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c | #3bff67ff | — |
| punctuation.separator.delimiter.c | #b2b2b2 | — |
| support.type.posix-reserved.c | #ffbe6e | — |
| keyword.operator.sizeof.c | #C178DD | — |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #ffbe6e | — |
| support.type.python | #ffbe6e | — |
| keyword.operator.logical.python | #3bff67 | — |
| variable.parameter.function.python | #D18C4E | — |
| meta.function-call.generic.python | #ffbe6e | — |
| punctuation.definition.comment | #98A3C6 | — |
| none | #b2b2b2 | — |
| keyword.operator | #b2b2b2 | — |
| keyword | #3bff67 | — |
| import.storage.java | #ffbe6e | — |
| token.package.keyword | #3bff67 | — |
| token.package | #b2b2b2 | — |
| entity.name.function, meta.require, support.function.any-method | #ffbe6e | — |
| entity.name.type.namespace | #ffbe6e | — |
| support.class, entity.name.type.class | #ffbe6e | — |
| entity.name.class.identifier.namespace.type | #ffbe6e | — |
| entity.name.class | #ffbe6e | — |
| entity.name.type | #ffbe6e | — |
| keyword.control | #3bff67 | — |
| control.elements, keyword.operator.less | #3bff67 | — |
| keyword.other.special-method | #ffbe6e | — |
| storage | #3bff67 | — |
| token.storage | #3bff67 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #3bff67 | — |
| token.storage.type.java | #ffbe6e | — |
| support.function | #ffbe6e | — |
| support.constant.property-value | #b2b2b2 | — |
| support.constant.font-name | #3bff67 | — |
| meta.tag | #b2b2b2 | — |
| string | #9a55ff | — |
| entity.other.inherited-class | #ffbe6e | — |
| constant.other.symbol | #ffbe6e | — |
| constant.numeric | #3bff67 | — |
| none | #3bff67 | — |
| none | #3bff67 | — |
| constant | #3bff67 | — |
| punctuation.definition.constant | #3bff67 | — |
| entity.name.tag | #ffbe6e | — |
| entity.other.attribute-name | #3bff67 | — |
| entity.other.attribute-name.id | #ffbe6e | — |
| entity.other.attribute-name.class.css | #3bff67 | — |
| meta.selector | #3bff67 | — |
| none | #D2945D | — |
| markup.heading | #b2b2b2 | bold |
| markup.heading punctuation.definition.heading, entity.name.section | — | — |
| keyword.other.unit | #3bff67 | — |
| markup.bold,todo.bold | — | bold |
| emphasis md | #3bff67 | — |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #b2b2b2 | — |
| beginning.punctuation.definition.list.markdown | #E25F65 | — |
| markup.quote.markdown | #b2b2b2 | italic |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #b2b2b2 | italic |
| string.other.link.title.markdown,string.other.link.description.markdown | #ffbe6e | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #ffbe6e | — |
| constant.character.escape | #ffbe6e | — |
| punctuation.section.embedded, variable.interpolation | #b2b2b2 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #E25F65 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #E25F65 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #9a55ff | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #ffbe6e | — |
| entity.name.function.decorator.python | #ffbe6e | — |
| function.parameter | #3bff67 | — |
| function.parameter | #b2b2b2 | — |
| function.brace | #b2b2b2 | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #ffbe6e | — |
| block.scope.end,block.scope.begin | #b2b2b2 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #E25F65 | — |
| token.debug-token | #b267e6 | — |
| variable.other.normal.shell, variable.other.positional.shell | #E25F65 | — |
| entity.name.tag.yaml | #b2b2b2ff | — |
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}!`;
}