Vytalitech Light
Publisher: VytalitechThemes in package: 1
A light grey theme for maximum zen.
A light grey theme for maximum zen.
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 |
|---|---|---|
| storage.type.interface.ts, storage.type.namespace.ts, storage.type.enum.ts, storage.type.class.ts, storage.modifier.ts, storage.type.interface.tsx, storage.type.namespace.tsx, storage.type.enum.tsx, storage.type.class.tsx, storage.modifier.tsx, storage.type.interface.js, storage.type.namespace.js, storage.type.enum.js, storage.type.class.js, storage.modifier.js | #033e6e | bold |
| entity.other.attribute-name.html | #818c8f | |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #818c8f | |
| support.type.property-name.css | #188cd9 | |
| text.html.derivative | #000000 | |
| entity.name.type.class.ts, entity.name.type.class.tsx, entity.name.type.class.js, entity.name.type, entity.name.type.ts, entity.name.type.tsx, support.class, entity.name.type.js | #0281FF | |
| support.function, entity.name.function | #8757c8 | |
| variable, variable.parameter.ts, variable.parameter.tsx, variable.parameter.js | #5E5E5E | |
| string | #50b03c | |
| Comments | #6a737d | italic |
| keyword.control.as.ts, entity.name.type.ts, keyword.control.as.tsx, entity.name.type.tsx, keyword.control.as.js, entity.name.type.js | #8c9156 | |
| variable.object.property.ts, meta.object-literal.key.ts, meta.definition.property.ts, meta.field.declaration.ts, meta.brace.round.ts, punctuation.terminator.statement.ts, punctuation.accessor.ts, variable.object.property.tsx, meta.object-literal.key.tsx, meta.definition.property.tsx, meta.field.declaration.tsx, meta.brace.round.tsx, punctuation.terminator.statement.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.html, variable.object.property.js, meta.object-literal.key.js, meta.definition.property.js, meta.field.declaration.js, meta.brace.round.js, punctuation.terminator.statement.js, punctuation.accessor.js | #000000 | |
| storage.type.property.ts, storage.type.property.tsx, storage.type.property.js | #000000 | bold |
| keyword.control.import.ts, keyword.control.from.ts, keyword.control.import.tsx, keyword.control.from.tsx, keyword.control.import.js, keyword.control.from.js | #8E813F | |
| entity.other.inherited-class.ts, entity.other.inherited-class.tsx, entity.other.inherited-class.js | #4d0045 | |
| meta.type.annotation.ts, keyword.operator.type.annotation.ts, keyword.operator.optional.ts, support.type.builtin.ts, keyword.operator.type.ts, support.type.primitive.ts, keyword.operator.new.ts, keyword.control.export.ts, keyword.operator.assignment.ts, keyword.control.flow.ts, keyword.operator.comparison.ts, keyword.operator.ternary.ts, meta.type.annotation.tsx, keyword.operator.type.annotation.tsx, keyword.operator.optional.tsx, support.type.builtin.tsx, keyword.operator.type.tsx, support.type.primitive.tsx, keyword.operator.new.tsx, keyword.control.export.tsx, keyword.operator.assignment.tsx, keyword.control.flow.tsx, keyword.operator.comparison.tsx, keyword.operator.ternary.tsx, keyword, meta.type.annotation.js, keyword.operator.type.annotation.js, keyword.operator.optional.js, support.type.builtin.js, keyword.operator.type.js, support.type.primitive.js, support.type.primitive, keyword.operator.new.js, keyword.control.export.js, keyword.operator.assignment.js, keyword.control.flow.js, keyword.operator.comparison.js, keyword.operator.ternary.js | #8e813f | |
| keyword.operator.arithmetic.ts, keyword.operator.arithmetic.tsx, keyword.operator.arithmetic.js | #160eac | |
| variable.language.this.ts, variable.other.property.ts, variable.other.object.property.ts, entity.name.function.ts, variable.other.constant.ts, variable.other.readwrite.ts, variable.other.readwrite.alias.ts, variable.other.object.ts, variable.language.this.tsx, variable.other.property.tsx, variable.other.object.property.tsx, entity.name.function.tsx, variable.other.constant.tsx, variable.other.readwrite.tsx, variable.other.readwrite.alias.tsx, variable.other.object.tsx, variable.language.this.js, variable.other.property.js, variable.other.object.js, variable.other.object.property.js, entity.name.function.js, variable.other.constant.js, variable.other.readwrite.js, variable.other.readwrite.alias.js | #0067ce | |
| entity.other.attribute-name.js, punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js, punctuation.definition.tag.begin.ts, punctuation.definition.tag.end.ts, entity.other.attribute-name.ts, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.other.attribute-name.tsx | #888888 | |
| storage.type.js, storage.type.function.arrow.js, storage.type.ts, storage.type.function.arrow.ts, storage.type.tsx, storage.type.function.arrow.tsx | #0A3640 | bold |
| string.template.ts, string.quoted.double.ts, string.quoted.single.ts, string.template.tsx, string.quoted.double.tsx, string.quoted.single.tsx, string.quoted.double.js, string.quoted.single.js, string.template.js | #31ad35 | |
| storage.modifier.async.js, storage.modifier.async.ts, storage.modifier.async.tsx | #000000 | bold |
| constant.numeric, constant.numeric.decimal.js, constant.numeric.decimal.ts, constant.numeric.decimal.tsx | #DE4A80 | |
| constant.language.boolean.true.js, constant.language.null.js, constant.character.escape.js, constant.language.boolean.false.js, constant.language.boolean.true.ts, constant.language.boolean.false.ts, constant.language.null.ts, constant.character.escape.ts, constant.language.boolean.true.tsx, constant.language.boolean.false.tsx, constant.language.null.tsx, constant.character.escape.tsx | #C95E16 |
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}!`;
}