licht-theme
Publisher: cnakazawaThemes in package: 1
A comfortable light theme for VS Code, SublimeText, Atom and TextMate.
A comfortable light theme for VS Code, SublimeText, Atom and TextMate.
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, comment punctuation | #919191 | — |
| comment.block.preprocessor | #adadad | — |
| comment.documentation, comment.block.documentation | #bc670f | — |
| invalid.deprecated | #ffffff | — |
| invalid.illegal | #cd3131 | — |
| keyword.operator | #352de3 | — |
| keyword, storage | #352de3 | — |
| storage.type, support.type | #c56e0e | — |
| constant.language, variable.language | #626fc9 | — |
| variable, support.variable | #111111 | — |
| variable punctuation | #111111 | — |
| entity.name.function, support.function, entity | #284181 | — |
| entity.name.type, entity.other.inherited-class, support.class | #bb28c7 | — |
| entity.name.exception | #f93232 | — |
| entity.name.section | — | |
| constant.numeric, constant | #dd3c2f | — |
| punctuation | #111111 | — |
| constant.character, string | #00a33f | — |
| string punctuation | #00a33f | — |
| constant.character.escape | — | bold |
| string.regexp | #699d36 | — |
| constant.numeric.line-number.bgr | #111111 | — |
| constant.other.symbol | — | bold |
| string.unquoted.label.js | #444444 | — |
| punctuation.quasi.element | #444444 | — |
| string source, text source | #434343 | — |
| meta.tag.sgml.doctype | #7f7f7f | — |
| entity.name.tag | #0072c8 | — |
| meta.tag string punctuation | #00a33f | — |
| punctuation.definition.tag | #4f9fcf | — |
| constant.character.entity | #111111 | — |
| entity.other.attribute-name | #0072c8 | — |
| meta.tag string.quoted, meta.tag string.quoted constant.character.entity | #00a33f | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #3a77bf | — |
| meta.property-name, support.type.property-name | #111111 | — |
| meta.property-name.json, support.type.property-name.json | #00a33f | — |
| meta.property-value constant.numeric, meta.property-value constant, meta.property-value keyword | #43a202 | — |
| markup.changed | #111111 | — |
| markup.deleted | #111111 | — |
| markup.italic | — | italic |
| markup.error | #cd3131 | — |
| markup.inserted | #111111 | — |
| markup.output, markup.raw | #7f7f7f | — |
| markup.prompt | #555555 | — |
| markup.heading | — | bold |
| markup.bold | — | bold |
| markup.traceback | #f93232 | — |
| markup.underline | — | underline |
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}!`;
}