Kairo Themes
Publisher: OdixCodezThemes in package: 6
A collection of carefully crafted dark and light themes for VS Code — Astral, Aurora, Default, Lavender, Light, and Mint.
A collection of carefully crafted dark and light themes for VS Code — Astral, Aurora, Default, Lavender, Light, and Mint.
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 | #607D8B | italic |
| keyword, keyword.control, keyword.operator.new, keyword.other.import | #CFD8DC | bold |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison | #26C6DA | — |
| storage, storage.type, storage.modifier | #AB47BC | italic |
| string, string.quoted, string.template | #66BB6A | — |
| constant.character.escape, string.regexp | #26C6DA | — |
| constant.numeric | #FFA726 | — |
| constant, constant.language | #FFB74D | — |
| entity.name.function, meta.definition.method entity.name.function | #64B5F6 | bold |
| meta.function-call, support.function | #CFD8DC | — |
| variable, variable.other | #ECEFF1 | — |
| variable.parameter | #B0BEC5 | italic |
| variable.language, variable.other.this, variable.other.self | #CFD8DC | italic |
| entity.name.type, entity.name.class, support.class | #FFA726 | bold |
| entity.name.interface, entity.name.enum | #CE93D8 | — |
| entity.name.tag | #EF5350 | — |
| entity.other.attribute-name | #64B5F6 | — |
| support.type.property-name | #CFD8DC | — |
| support.constant.property-value | #66BB6A | — |
| punctuation, meta.brace | #78909C | — |
| meta.decorator, punctuation.decorator | #FFA726 | 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}!`;
}