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 | #9E9E9E | italic |
| keyword, keyword.control, keyword.operator.new, keyword.other.import | #1976D2 | bold |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison | #00838F | — |
| storage, storage.type, storage.modifier | #7B1FA2 | italic |
| string, string.quoted, string.template | #2E7D32 | — |
| constant.character.escape, string.regexp | #00838F | — |
| constant.numeric | #F57C00 | — |
| constant, constant.language, constant.other | #EF6C00 | — |
| entity.name.function, meta.definition.method entity.name.function | #1565C0 | bold |
| meta.function-call, support.function | #1976D2 | — |
| variable, variable.other | #1C2033 | — |
| variable.parameter | #424242 | italic |
| variable.language, variable.other.this, variable.other.self | #1976D2 | italic |
| entity.name.type, entity.name.class, support.class | #7B1FA2 | bold |
| entity.name.interface, entity.name.enum | #9C27B0 | — |
| entity.name.tag | #D32F2F | — |
| entity.other.attribute-name | #1976D2 | — |
| support.type.property-name | #1565C0 | — |
| support.constant.property-value | #2E7D32 | — |
| punctuation, meta.brace | #9E9E9E | — |
| meta.decorator, punctuation.decorator | #EF6C00 | 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, punctuation.definition.comment | #8AB88A | italic |
| keyword, keyword.control, keyword.operator.new, keyword.other.import | #2E7D32 | bold |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison | #00695C | — |
| storage, storage.type, storage.modifier | #6A1B9A | italic |
| string, string.quoted, string.template | #1B7A4A | — |
| constant.character.escape, string.regexp | #00695C | — |
| constant.numeric | #EF6C00 | — |
| constant, constant.language | #E65100 | — |
| entity.name.function, meta.definition.method entity.name.function | #1565C0 | bold |
| meta.function-call, support.function | #2E7D32 | — |
| variable, variable.other | #1B2E1B | — |
| variable.parameter | #2E4430 | italic |
| variable.language, variable.other.this, variable.other.self | #2E7D32 | italic |
| entity.name.type, entity.name.class, support.class | #6A1B9A | bold |
| entity.name.interface, entity.name.enum | #5C6BC0 | — |
| entity.name.tag | #C62828 | — |
| entity.other.attribute-name | #2E7D32 | — |
| support.type.property-name | #1565C0 | — |
| support.constant.property-value | #1B7A4A | — |
| punctuation, meta.brace | #90A888 | — |
| meta.decorator, punctuation.decorator | #E65100 | 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}!`;
}