Isolum
Publisher: plajiwThemes in package: 2
Tema Dark e Light de fundo neutro, acentos harmonizados e sintaxe legível. / Dark and Light theme with a neutral background, harmonized accents, and readable syntax.
Tema Dark e Light de fundo neutro, acentos harmonizados e sintaxe legível. / Dark and Light theme with a neutral background, harmonized accents, and readable syntax.
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, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment, string.comment | #6a6a6a | italic |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, storage, storage.type, storage.modifier, modifier | #ff7b72 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, punctuation.accessor | #cccccc | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, entity.name.struct, entity.other.inherited-class, support.type, support.class, storage.type.primitive, meta.type.name | #d2a8ff | — |
| entity.name.function, entity.name.function.member, entity.name.function.call, support.function, support.function.builtin, meta.function-call, meta.function-call.generic, meta.function-call entity.name.function, variable.function | #e3bb5f | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.property, variable.other.object.property, variable.parameter, meta.object-literal.key variable | #cccccc | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, keyword.other.dockerfile | #ff7b72 | — |
| keyword.operator.flag.dockerfile, punctuation.separator.key-value.dockerfile | #8c8c8c | — |
| variable.language, variable.language.this, variable.language.super | #ff7b72 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, keyword.other.unit | #79c0ff | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #79c0ff | — |
| variable.other.constant, constant.other, support.constant | #79c0ff | — |
| constant.character.escape, constant.character.entity | #79c0ff | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.interpolated, punctuation.definition.string | #a5d6ff | — |
| string.quoted.docstring.multi.python | #6a6a6a | italic |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression | #ff7b72 | — |
| string.regexp, string.regex, constant.other.character-class.regexp, keyword.control.anchor.regexp | #7ee787 | — |
| punctuation.definition.block, punctuation.section.brackets, punctuation.section.parens, punctuation.section.braces, meta.brace | #cccccc | — |
| punctuation.separator, punctuation.terminator, punctuation.comma, punctuation.definition.parameters | #8c8c8c | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, support.class.component | #7ee787 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx | #79c0ff | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #8c8c8c | — |
| entity.name.tag.css, entity.name.tag.scss | #7ee787 | — |
| entity.other.attribute-name.class.css | #cccccc | — |
| entity.other.attribute-name.id.css | #d2a8ff | — |
| support.type.property-name.css, support.type.property-name.scss | #79c0ff | — |
| support.type.property-name.json, support.type.property-name.jsonc, entity.name.tag.yaml, entity.name.tag.yaml.key, support.type.property-name.toml, keyword.key.toml | #e3bb5f | — |
| string.quoted.double.json, string.quoted.double.jsonc | #a5d6ff | — |
| string.unquoted.plain.out.yaml | #cccccc | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.annotation, storage.type.annotation, storage.modifier.annotation | #d2a8ff | — |
| entity.name.namespace, entity.name.type.namespace, entity.name.module, support.other.namespace | #d2a8ff | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown | #e8e8e8 | bold |
| markup.heading.1.markdown, heading.1.markdown | #f2f2f2 | bold |
| markup.heading.2.markdown, heading.2.markdown | #e8e8e8 | bold |
| markup.heading.3.markdown, heading.3.markdown | #d4d4d4 | bold |
| markup.heading.4.markdown, heading.4.markdown | #b8b8b8 | — |
| markup.heading.5.markdown, markup.heading.6.markdown | #8c8c8c | — |
| punctuation.definition.heading.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.constant.markdown | #565656 | — |
| meta.separator.markdown | #2c2c2c | — |
| markup.bold, markup.bold.markdown | #cccccc | bold |
| markup.italic, markup.italic.markdown | #cccccc | italic |
| markup.inline.raw, markup.inline.raw.string.markdown, markup.raw.inline | #f28a6e | — |
| fenced_code.block.language, markup.fenced_code.block.language, fenced_code.block.language.attribute.markdown | #9c8e76 | — |
| string.other.link.title.markdown, constant.other.reference.link.markdown | #3b9eff | — |
| markup.underline.link, markup.underline.link.markdown, markup.underline.link.image.markdown | #8c8c8c | underline |
| markup.quote, markup.quote.markdown | #8c8c8c | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #cccccc | — |
| markup.inserted | #7ee787 | — |
| markup.deleted | #ea7f7b | — |
| markup.changed | #e3bb5f | — |
| invalid, invalid.illegal | #ea7f7b | — |
| invalid.deprecated | #8c8c8c | strikethrough |
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}!`;
}