VLight Theme
Publisher: VladeegThemes in package: 1
Light, contrast, yet easy on eyes color theme
Light, contrast, yet easy on eyes color 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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #403f53 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #7c818d | — |
| constant.language | #ca1243 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #ca1243 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #9f00bd | — |
| entity.name.tag.css | #9f00bd | — |
| entity.other.attribute-name | #0950de | — |
| 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.attribute.scss, entity.other.attribute-name.scss | #0950de | — |
| invalid | #f44747 | — |
| markup.underline | #0950de | underline |
| markup.bold | #0950de | bold |
| markup.heading | #0950de | bold |
| markup.italic | — | italic |
| markup.inserted | #107874 | — |
| markup.deleted | #de3d3b | — |
| markup.changed | #0950de | — |
| punctuation.definition.quote.begin.markdown | #107874 | — |
| punctuation.definition.list.begin.markdown | #0950de | — |
| markup.inline.raw | #c5226e | — |
| punctuation.definition.tag | #9f00bd | — |
| meta.preprocessor, entity.name.function.preprocessor | #0950de | — |
| meta.preprocessor.string | #188d3f | — |
| meta.preprocessor.numeric | #ca1243 | — |
| meta.structure.dictionary.key.python | #9f00bd | — |
| meta.diff.header | #0950de | — |
| storage | #9f00bd | — |
| storage.type | #9f00bd | — |
| storage.modifier, keyword.operator.noexcept | #9f00bd | — |
| string, meta.embedded.assembly | #188d3f | — |
| string.tag | #188d3f | — |
| string.value | #188d3f | — |
| string.regexp | #107874 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #0950de | — |
| meta.template.expression | #0950de | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.other.less, source.coffee.embedded | #9f00bd | — |
| variable.scss | #0950de | — |
| keyword | #9f00bd | — |
| keyword.control | #9f00bd | — |
| keyword.operator | #9f00bd | — |
| 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 | #9f00bd | — |
| keyword.other.unit | #9f00bd | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #ca1243 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #403f53 | — |
| variable.language | #0950de | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #0950de | — |
| entity.name.type.class, entity.name.type.namespace | #0950de | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.generic.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #9f00bd | — |
| punctuation.definition.decorator.python, meta.function.decorator.python support.type.python, entity.name.function.decorator.python, punctuation.definition.annotation.java, storage.type.annotation.java | #4827a0 | — |
| meta.function-call | #107874 | — |
| punctuation.definition.arguments, punctuation.definition.parameters, meta.function-call.arguments | #403f53 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #0950de | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #9f00bd | — |
| variable | #403f53 | — |
| meta.definition.variable.name, support.variable, entity.name.variable | #403f53 | — |
| variable.other.object.property, variable.other.property | #107874 | — |
| variable.other.constant, variable.other.enummember | #0950de | — |
| meta.object-literal.key | #403f53 | — |
| 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 | #188d3f | — |
| 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 | #188d3f | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #188d3f | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #188d3f | — |
| keyword.operator.quantifier.regexp | #188d3f | — |
| constant.character | #0950de | — |
| constant.character.escape | #ca1243 | — |
| entity.name.label | #C8C8C8 | — |
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}!`;
}