vity
Publisher: AlexdeliaThemes in package: 1
color theme focused on visibility and readability
color theme focused on visibility and readability
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| constant.language, constant.other.caps, variable.other.constant | #4265e3 | — |
| variable.other.constant.ts | #aedbff | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #B5CEA8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #569CD6 | — |
| entity.name.tag.css | #D7BA7D | — |
| entity.other.attribute-name | #9CDCFE | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #D7BA7D | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #569CD6 | bold |
| markup.heading | #569CD6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #B5CEA8 | — |
| markup.deleted | #CE9178 | — |
| markup.changed | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #CE9178 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569CD6 | — |
| meta.preprocessor.string | #CE9178 | — |
| meta.preprocessor.numeric | #B5CEA8 | — |
| meta.structure.dictionary.key.python | #9CDCFE | — |
| meta.diff.header | #569CD6 | — |
| meta.template.expression | #D4D4D4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #9CDCFE | — |
| meta.object-literal.key | #9CDCFE | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #CE9178 | — |
| entity.name.label | #C8C8C8 | — |
| storage, storage.type, storage.modifier, keyword.operator.noexcept, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569CD6 | — |
| storage.type | #4BB3E3 | |
| entity.name.type, support.class, support.type.python, meta.indexed-name.python, meta.item-access.arguments.python | #4BE37E | |
| entity.name.type.numeric | #39f19b | |
| entity.name.type.primitive, storage.type.built-in.primitive, storage.type.primitive, support.type.primitive, support.type.builtin | #28e188 | |
| storage.type.built-in.primitive.cpp, storage.type.primitive.cpp | #569CD6 | |
| entity.name.type.result | #4be37ead | |
| storage.type.string | #EBFCFC | |
| variable | #EBFCFC | italic |
| variable.language | #569CD6 | — |
| string.quoted.double | #85c057 | — |
| string.quoted.single.char | #b9c252 | — |
| string.regexp, punctuation.definition.string.raw, string.quoted.byte.raw | #D16969 | — |
| string, string.tag, string.value, string.quoted.single, meta.embedded.assembly | #aeca76 | — |
| meta.interpolation | #b466d7 | italic |
| punctuation.definition.template-expression, punctuation.definition.interpolation | #942CC4 | |
| constant.character.escape | #FFD7D7 | — |
| constant.character.escape.bit | #d7fcff | — |
| constant.numeric, constant.numeric.decimal | #78F6FF | — |
| constant.numeric.bin | #98f8ff | — |
| constant.numeric.oct | #5af4ff | — |
| constant.numeric.hex | #9dcbff | — |
| constant.language.bool | #708dff | — |
| constant.language.NULL | #CC27E3 | |
| keyword | #569CD6 | — |
| keyword.operator | #D4D4D4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #569CD6 | — |
| keyword.other.unit | #B5CEA8 | — |
| source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #C586C0 | — |
| keyword.control.directive.include, keyword.other.import, keyword.control.import | #9A5FEB | — |
| punctuation.separator.scope-resolution.parameter, punctuation.separator.namespace.access, keyword.operator.namespace | #CCCCCC | — |
| keyword.control, keyword.operator.functionlike, keyword.operator.sizeof | #D9B036 | — |
| keyword.other.rust | #DAC829DE | |
| storage.modifier.specifier.const | #E4FF92CD | italic |
| storage.modifier.specifier.static | #FFFF0086 | italic |
| storage.modifier.mut | #C862E4 | |
| storage.type.function.async, storage.modifier.async | #D9B036 | italic |
| keyword.control.while, keyword.control.for | #CB62D9 | — |
| keyword.operator.logical | #E9BB32 | — |
| keyword.operator.logical.python | #E3E932 | — |
| keyword.operator.comparison, keyword.operator.logical.shell | #FF9E37 | |
| punctuation.brackets.angle | #ffffff90 | — |
| punctuation.separator.colon, punctuation.section.class.begin.python | #ffffff90 | — |
| keyword.operator.arithmetic, keyword.operator.math | #FFB6D7 | |
| keyword.operator.bitwise | #CDF4FF | italic |
| keyword.operator.assignment, keyword.operator.assignment.equal | #4ade00 | |
| keyword.operator.assignment.compound, keyword.operator.assignment.rust | #8DDE00 | |
| keyword.operator.increment | #FF9999 | |
| keyword.operator.decrement | #99FFEC | |
| keyword.operator.increment-decrement | #FF9999 | |
| storage.modifier.pointer | #00B5BF | |
| storage.modifier.reference | #00BF23 | |
| keyword.operator.dereference | #ffb4f6 | |
| keyword.operator.borrow | #adece8 | |
| keyword.operator.range | #cefcff | — |
| punctuation.separator.pointer-access, punctuation.separator.dot-access, punctuation.dot.dart | #D9C2FE | |
| keyword.operator.key-value, keyword.operator.ternary.dart, punctuation.separator.dict, punctuation.separator.annotation.python | #d3ffdaec | — |
| keyword.operator.arrow.fat | #767152c6 | |
| entity.name.function | #E34A87 | bold |
| support.function.magic | #E34AA8 | bold |
| entity.name.function.operator | #E9257D | |
| keyword.other.fn, storage.type.function | #569CD67f | — |
| punctuation.separator.annotation.result, keyword.operator.arrow.skinny, punctuation.section.function.begin.python | #FFFFFF90 | — |
| entity.name.function.preprocessor | #3C5EE6 | |
| entity.name.function.macro.rules | #5D85F6 | |
| entity.name.function.macro | #E34AA8 | bold |
| meta.attribute, meta.decorator | #d3b6d7 | |
| punctuation.definition.attribute, keyword.operator.attribute.inner, punctuation.brackets.attribute | #816675 | |
| punctuation.definition.comment | #F0F6FC2D | italic |
| comment | #D6E7F9B4 | italic |
| comment.line.documentation, string.quoted.docstring | #d6e7f9cc | italic |
| variable.language.this | #624E208A | |
| variable.parameter.function.language.special.self, variable.language.self | #545EE9B8 | italic |
| entity.name.namespace | #C9C94EAA | |
| entity.name.scope-resolution.cpp | #C9C94EA0 | |
| storage.type.class, keyword.declaration | #4b85b5 | — |
| storage.type.modifier.access.control.public | #C9C94E | |
| storage.type.modifier.access.control.private | #a9932f | |
| punctuation.definition.comment.shebang | #F0F6FC7f | — |
| meta.shebang | #d3b6d7ee | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #CE9178 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #D16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DCDCAA | — |
| keyword.operator.quantifier.regexp | #D7BA7D | — |
| storage.type.alias | #fff45c9e | — |
| punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell | #85C05799 | — |
| support.function.builtin | #e34adbe0 | — |
| storage.modifier.local | #569CD67f | — |
| storage.modifier.typeset | #569CD6bb | — |
| meta.argument, string.unquoted.argument | #8a86f3 | — |
| constant.other.option.dash | #b456d67f | — |
| constant.other.option | #b456d6 | — |
| variable.language.special.wildcard | #ff00dd | bold |
| punctuation.definition.variable.shell | #EBFCFC90 | — |
| punctuation.section.array.shell | #b3e5ff | — |
| meta.parameter-expansion | #f1b3ff | — |
| punctuation.definition.logical-expression.shell | #ddc683 | — |
| keyword.control.do.shell | #D9B0367f | — |
| punctuation.definition.evaluation.arithmetic.begin, punctuation.definition.evaluation.arithmetic.end | #cd8163bb | — |
| punctuation.definition.evaluation.parens.begin, punctuation.definition.evaluation.parens.end | #b863cdbb | — |
| string.other.math.shell | #dfffff | italic |
| punctuation.comma.dart, punctuation.terminator.dart | #767152c6 | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}