Summer Light
Publisher: Annie KoopThemes in package: 1
Light theme for VS Code inspired by the bold, fun colors of summertime.
Light theme for VS Code inspired by the bold, fun colors of summertime.
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 |
|---|---|---|
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #F78000 | italic |
| comment, punctuation.definition.comment | #6273a4c2 | italic |
| comment.block.preprocessor | #6273a4c2 | |
| comment.documentation, comment.block.documentation | #6273a4c2 | — |
| invalid.illegal | #FF1313 | — |
| keyword.operator | #da288c | — |
| keyword, storage | #da288c | — |
| storage.type, support.type | #2388ff | — |
| constant.language, support.constant, variable.language | #2388ff | — |
| variable, support.variable | #21253F | — |
| entity.name.function, support.function | #0078FF | bold |
| entity.name.type, entity.other.inherited-class, support.class | #0EB279 | bold |
| entity.name.exception | #ff0000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #2388ff | — |
| string | #0EB279 | — |
| constant.character.escape | #00C6FD | — |
| string.regexp | #AC43FF | — |
| constant.other.symbol | #2388FF | — |
| punctuation | #21253F | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #2388ff | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #21253F | — |
| entity.name.tag | #FF248D | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #2388ff | italic |
| constant.character.entity, punctuation.definition.entity | #00C6FD | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #2388ff | — |
| meta.property-name, support.type.property-name | #21253F | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #2388FF | — |
| keyword.other.important | — | bold |
| markup.changed | #21253F | — |
| markup.deleted | #21253F | — |
| markup.italic | — | italic |
| markup.error | #FF1313 | — |
| markup.inserted | #2388FF | — |
| meta.link | #2388FF | — |
| markup.output, markup.raw | #21253F | — |
| markup.prompt | #21253F | — |
| markup.heading | #2388ff | — |
| markup.bold | — | bold |
| markup.traceback | #21253F | — |
| markup.underline | — | underline |
| markup.quote | #21253F | — |
| markup.list | #2388ff | — |
| markup.bold, markup.italic | #0EB279 | — |
| markup.inline.raw | #FF6116 | |
| meta.diff.range, meta.diff.index, meta.separator | #21253F | — |
| meta.diff.header.from-file | #21253F | — |
| meta.diff.header.to-file | #21253F | — |
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}!`;
}