clesy-theme-dark
Publisher: Evgeniy GerasimenkoThemes 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 | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #ffffff | — |
| keyword, storage, keyword.control.from.js, keyword.control.import.js, keyword.control.export.js, keyword.control.conditional.js, constant.numeric.decimal.js | #ff069f | — |
| string.quoted.double.js, meta.tag.attributes.js, meta.tag.js, meta.embedded.expression.js, punctuation.definition.string.template.begin.js, punctuation.definition.string.template.end.js, string.template.js | #4FC3F7 | — |
| storage.type, support.type | #00E5FF | italic |
| variable, support.variable | #EEFF41 | italic |
| entity.name.function, support.function | #AEEA00 | — |
| entity.name.type, entity.other.inherited-class, support.class | #41c300 | bold underline |
| constant.language.boolean.false.js, constant.language.boolean.true.js | #26A69A | — |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| string, punctuation | #ffffff | — |
| constant.character.escape | #777777 | — |
| string.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.set.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp, constant.other.character-class.range.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.escape.backslash.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js | #4B83CD | — |
| keyword.operator.logical.js | #B3E5FC | — |
| variable.parameter.js, variable.other.object.js | #F57C00 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.tag, meta.brace.round.js | #ffffff | — |
| entity.name.tag | #ff069f | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #AEEA00 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| keyword.other.unit.px.css, constant.numeric.css | #FF069F | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #41c300 | — |
| punctuation.definition.constant.css | #ffffff | — |
| constant.other.color.rgb-value.hex.css | #AEEA00 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| entity.name.tag.css, meta.property-list.scss, punctuation.definition.entity.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.class.css | #EEFF41 | — |
| punctuation.definition.entity.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #EEFF41 | — |
| support.type.property-name.css | #00E5FF | italic |
| support.constant.property-value.css | #AEEA00 | italic |
| punctuation.definition.keyword.scss, keyword.control.at-rule.media.scss | #FF069F | — |
| meta.property-name.media-query.scss, meta.property-list.media-query.scss, constant.other.color.rgb-value.hex.css | #AEEA00 | — |
| support.constant.media.css, support.type.property-name.media.css, meta.property-name.media-query.scss, meta.property-list.media-query.scss | #00E5FF | — |
| punctuation.definition.media-query.begin.bracket.round.scss, meta.property-list.media-query.scss, punctuation.definition.media-query.end.bracket.round.scss, punctuation.separator.delimiter.scss, punctuation.section.property-list.begin.bracket.curly.scss, punctuation.separator.key-value.scss, punctuation.section.function.scss, punctuation.terminator.rule.scss, punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, punctuation.section.property-list.end.bracket.curly.scss | #ffffff | — |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}