Cozy Vintage Theme
Publisher: lilinThemes in package: 2
A warm, low-saturation vintage-inspired VS Code theme with cozy dark and light variants for calm, comfortable coding.
A warm, low-saturation vintage-inspired VS Code theme with cozy dark and light variants for calm, comfortable coding.
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 | #8A7A6B | italic |
| string | #FDF4D2 | — |
| string.quoted | #F2D9A0 | — |
| string.regexp | #D8B57A | — |
| constant.numeric | #946D6D | — |
| constant.language | #946D6D | — |
| constant.character.escape | #D8B57A | — |
| keyword | #A290B7 | — |
| keyword.control | #A290B7 | — |
| keyword.operator | #C9B79E | — |
| storage.type | #A290B7 | — |
| storage.modifier | #A290B7 | — |
| entity.name.function | #B0CDE6 | — |
| support.function | #B0CDE6 | — |
| entity.name.type | #9488B0 | — |
| entity.name.class | #9488B0 | — |
| entity.name.namespace | #9488B0 | — |
| entity.other.attribute-name | #A290B7 | — |
| variable | #B49C84 | — |
| variable.parameter | #C9B79E | — |
| support.type | #9488B0 | — |
| support.class | #9488B0 | — |
| meta.tag | #A290B7 | — |
| punctuation.definition.tag | #C9B79E | — |
| entity.name.tag | #A290B7 | — |
| markup.heading | #B0CDE6 | bold |
| markup.bold | #C9B79E | bold |
| markup.italic | — | italic |
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 | #9A8A72 | italic |
| string | #A9852B | — |
| string.quoted | #B8941F | — |
| string.regexp | #B5853A | — |
| constant.numeric | #946D6D | — |
| constant.language | #946D6D | — |
| constant.character.escape | #B5853A | — |
| keyword | #6E5A88 | — |
| keyword.control | #6E5A88 | — |
| keyword.operator | #6F5F4C | — |
| storage.type | #6E5A88 | — |
| storage.modifier | #6E5A88 | — |
| entity.name.function | #4E7BA6 | — |
| support.function | #4E7BA6 | — |
| entity.name.type | #5B5387 | — |
| entity.name.class | #5B5387 | — |
| entity.name.namespace | #5B5387 | — |
| entity.other.attribute-name | #6E5A88 | — |
| variable | #7A6B5B | — |
| variable.parameter | #6F5F4C | — |
| support.type | #5B5387 | — |
| support.class | #5B5387 | — |
| meta.tag | #6E5A88 | — |
| punctuation.definition.tag | #6F5F4C | — |
| entity.name.tag | #6E5A88 | — |
| markup.heading | #4E7BA6 | bold |
| markup.bold | #6F5F4C | bold |
| markup.italic | — | italic |
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}!`;
}
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}!`;
}