Artisan Theme
Publisher: VheissuLabsThemes in package: 1
A clean light color theme inspired by Laravel's branding and Josh's streams.
A clean light color theme inspired by Laravel's branding and Josh's streams.
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 | #6B6B6B | italic |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.from, keyword.control.flow, keyword.control.trycatch, keyword.control.exception | #CA2606 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational | #171717 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.word | #CA2606 | — |
| storage, storage.type, storage.modifier | #CA2606 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, punctuation.definition.string.begin, punctuation.definition.string.end | #007A4C | — |
| meta.template.expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, meta.interpolation, punctuation.section.interpolation.begin, punctuation.section.interpolation.end | #171717 | — |
| string.regexp | #F9B803 | — |
| constant.character.escape | #EE9DAC | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #EE9DAC | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #EE9DAC | — |
| constant.other, variable.other.constant | #EE9DAC | — |
| variable, variable.other, variable.other.readwrite | #CA2606 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #CA2606 | italic |
| variable.parameter | #CA2606 | — |
| variable.other.property, variable.other.member, variable.other.object.property, support.variable.property | #CA2606 | — |
| entity.name.function, entity.name.function.method | #2176D3 | — |
| meta.function-call entity.name.function, variable.function, support.function | #2176D3 | — |
| entity.name.class, entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.name.type.alias | #2176D3 | — |
| entity.other.inherited-class | #2176D3 | — |
| support.type, support.class, storage.type.built-in, storage.type.primitive | #2176D3 | — |
| meta.annotation, meta.decorator, punctuation.decorator, entity.name.function.decorator | #F9B803 | — |
| entity.name.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #CA2606 | — |
| entity.other.attribute-name | #2176D3 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #CA2606 | — |
| support.type.property-name.css | #2176D3 | — |
| keyword.other.unit.css | #EE9DAC | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section, meta.brace.round, meta.brace.square, meta.brace.curly | #171717 | — |
| punctuation.definition.variable | #CA2606 | — |
| keyword.blade, support.function.construct.begin.blade, support.function.construct.end.blade | #CA2606 | — |
| markup.heading, entity.name.section, markup.heading.setext | #CA2606 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #2176D3 | — |
| markup.raw, markup.inline.raw, markup.raw.block, markup.fenced_code.block | #007A4C | — |
| markup.list punctuation.definition.list | #CA2606 | — |
| markup.quote | #6B6B6B | italic |
| markup.inserted | #007A4C | — |
| markup.deleted | #CA2606 | — |
| markup.changed | #2176D3 | — |
| support.type.property-name.json | #2176D3 | — |
| entity.name.tag.yaml | #2176D3 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| entity.name.namespace, entity.name.type.module | #2176D3 | — |
| support.constant | #EE9DAC | — |
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}!`;
}