chrome-light-theme
Publisher: byspeedsterThemes in package: 1
It's a plain vs code light theme, based on chrome dev tools/light code theme
It's a plain vs code light theme, based on chrome dev tools/light code 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 |
|---|---|---|
| comment, punctuation.definition.comment | #34b07b | italic |
| comment.block.preprocessor | #34b07b | |
| comment.documentation, comment.block.documentation, comment.line.double-slash, punctuation.definition.comment, comment.line.number-sign | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #000000 | — |
| keyword, storage | #770666 | — |
| storage.type, support.type | #770666 | — |
| constant.language, support.constant, variable.language | #770666 | — |
| variable, support.variable | #000000 | — |
| meta.brace.round, meta.brace.square | #000000 | — |
| entity.name.function, support.function | #022296 | — |
| entity.name.type, entity.other.inherited-class, support.class | #005040 | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #2720f5 | — |
| punctuation.definition.string, string.quoted, string.unquoted, string.template | #B72619 | — |
| source.css.scss | #4814a8 | bold |
| constant.character.escape | #B72619 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #B72619 | — |
| variable.other.property | #006772 | — |
| punctuation | #000000 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #B72619 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #032d64 | — |
| entity.name.tag | #4b04a8 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #032d64 | — |
| constant.character.entity, punctuation.definition.entity | #000000 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #770666 | — |
| meta.property-name, support.type.property-name | #000000 | — |
| 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 | #000000 | — |
| markup.prompt | #000000 | — |
| 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 | #000000 | |
| 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}!`;
}