Cozy Latte Theme
Publisher: lilinThemes in package: 2
A warm, coffee-inspired VS Code theme collection. Cozy light & dark modes for long, comfortable coding sessions — like a warm latte beside your keyboard.
A warm, coffee-inspired VS Code theme collection. Cozy light & dark modes for long, comfortable coding sessions — like a warm latte beside your keyboard.
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, string.comment | #B5A18A | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, storage, storage.type, storage.modifier, variable.language, constant.language, keyword.other.important | #8B6F47 | |
| keyword.control.flow, keyword.control.return, keyword.control.import, keyword.control.export, keyword.control.from | #8B6F47 | italic |
| keyword.operator, punctuation.separator.key-value, punctuation.accessor | #93826E | — |
| entity.name.function, support.function, meta.function-call.generic, meta.require, variable.function, entity.name.method | #B8875B | — |
| variable.parameter, meta.function.parameters variable | #7A6A55 | italic |
| string, string.quoted, string.template, punctuation.definition.string, markup.inline.raw.string | #7F8B6A | — |
| string.regexp, constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded | #C98B52 | — |
| constant.numeric, constant.other, constant.character, variable.other.constant, support.constant | #C98B52 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.python | #C98B52 | italic |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.interface, entity.name.type.alias, entity.name.namespace, meta.type.annotation entity.name.type | #A0764B | — |
| support.type.primitive, support.type.builtin, keyword.type | #A0764B | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation | #C98B52 | italic |
| variable, variable.other.readwrite, meta.definition.variable, support.variable | #5A4B3B | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #7A6A55 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.parameter.function.language.special.self.python | #8B6F47 | italic |
| entity.name.tag, punctuation.definition.tag, support.class.component | #8B6F47 | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.custom | #A0764B | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #B8875B | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #8B6F47 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #B8875B | — |
| support.constant.property-value.css, keyword.other.unit.css, constant.numeric.css | #C98B52 | — |
| support.type.property-name.json, meta.structure.dictionary.key.python string | #8B6F47 | — |
| meta.structure.dictionary.value string.quoted.json, string.quoted.double.json | #7F8B6A | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading.markdown | #8B6F47 | bold |
| markup.bold, punctuation.definition.bold | #A0764B | bold |
| markup.italic, punctuation.definition.italic | #B8875B | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #7FA69B | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #A0764B | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #C98B52 | — |
| markup.quote | #9A8971 | italic |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown punctuation.definition.list | #B8875B | — |
| support.function.builtin.python, support.function.magic.python, support.variable.magic.python | #B8875B | italic |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.definition.block | #8A7A66 | — |
| invalid, invalid.illegal | #C1665A | — |
| markup.inserted, meta.diff.header.to-file | #7F8B6A | — |
| markup.deleted, meta.diff.header.from-file | #C1665A | — |
| markup.changed | #C98B52 | — |
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}!`;
}