ez.theme
Publisher: EZ SyntaxThemes in package: 1
VS-Code ligh theme
VS-Code ligh 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 |
|---|---|---|
| #333333 | ||
| meta.type.annotation | #747474 | |
| variable.other.constant, variable.other.object, punctuation, meta.brace, meta.function-call, variable.object, constant.language, meta.method.declaration, meta.field.declaration, meta.jsx.children, variable.parameter | #333333 | |
| storage.type.function, storage.type.class, variable.language.this, meta.var.expr, keyword, entity.other.inherited-class | #4B83CD | |
| keyword.operator.type.annotation | #AA3731 | bold |
| variable.object.property | #AA3731 | bold |
| storage.modifier.async, storage.modifier | #7A3E9D | |
| keyword.control.flow, keyword.control.export, entity.name.function punctuation.definition.block, string.template punctuation.definition.template-expression | #5600f7 | |
| string.template | #AB6526 | |
| string.quoted.single, string.quoted.double | #AB6526 | |
| meta.function, meta.definition.method, meta.class | #4A525A | bold |
| meta.decorator, meta.decorator punctuation, meta.decorator meta.brace, meta.decorator string.quoted.single, meta.decorator string.quoted.double, meta.decorator meta.function-call, keyword.control.import, meta.import, meta.import string, meta.import string.quoted.single, meta.import string.quoted.double, meta.import keyword, meta.import punctuation, meta.import variable.other.readwrite, punctuation.decorator, punctuation.decorator entity, comment, punctuation.definition.comment.html | #d1d1d1 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #d1d1d1 | — |
| meta.tag, entity.name.tag | #D73A49 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #4c00ff | — |
| text.html.derivative | #12642a | |
| meta.ng-binding.event | #64124f | |
| expression.ng string.quoted.double, expression.ng string.quoted.single, meta.tag.custom.start string.quoted.double, meta.tag.custom.start string.quoted.double.single | #000 | |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #1240d4 | |
| meta.ng-binding.property | #0b70ec | — |
| support.type.property-name.json | #084ea3 | — |
| string.quoted.double.json | #666666 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7A3E9D | — |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| 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}!`;
}