Cherry Cosmos
Publisher: MichealThemes in package: 1
Experience the allure of Cherry Cosmos. Let vibrant cherry reds adorn your coding environment against a cosmic backdrop. Elevate your coding experience with elegance and warmth.
Experience the allure of Cherry Cosmos. Let vibrant cherry reds adorn your coding environment against a cosmic backdrop. Elevate your coding experience with elegance and warmth.
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 |
|---|---|---|
| variable | #2276aa | — |
| variable.other.readwrite | #2276aa | — |
| entity.name.variable | #2276aa | — |
| variable.other.property | #2276aa | — |
| variable.parameter | #2276aa | — |
| variable.other.constant.property | #2276aa | — |
| variable.language | #2276aa | — |
| entity.name.function | #f2140d | — |
| entity.name.type | #f2140d | — |
| entity.name.section | #f2140d | — |
| support.function | #f2140d | — |
| support.type.property-name.css | #f2140d | — |
| keyword | #c2100a | — |
| keyword.control | #c2100a | — |
| keyword.other | #c2100a | — |
| keyword.declaration | #c2100a | — |
| storage.type | #c2100a | — |
| storage.modifier | #c2100a | — |
| entity.name.tag | #c2100a | — |
| support.type | #c2100a | — |
| entity.name.tag.css | #c2100a | — |
| comment | #a0a7c5 | — |
| comment.line | #a0a7c5 | — |
| comment.block | #a0a7c5 | — |
| punctuation | #a0a7c5 | — |
| keyword.operator | #a0a7c5 | — |
| punctuation.definition.array.begin | #a0a7c5 | — |
| punctuation.definition.array.end | #a0a7c5 | — |
| punctuation.section.brackets.begin | #a0a7c5 | — |
| punctuation.section.brackets.end | #a0a7c5 | — |
| constant | #55a9dd | — |
| constant.character | #55a9dd | — |
| constant.language | #55a9dd | — |
| constant.other | #55a9dd | — |
| entity.name.type.class | #55a9dd | — |
| support.class | #55a9dd | — |
| variable.other.constant | #55a9dd | — |
| support.constant.* | #55a9dd | — |
| entity.other.inherited-class | #55a9dd | — |
| entity.other.attribute-name | #55a9dd | — |
| entity.other.attribute-name.class.css | #55a9dd | — |
| entity.other.attribute-name.id.css | #55a9dd | — |
| entity.other.attribute-name.pseudo-class.css | #55a9dd | — |
| entity.other.attribute-name.pseudo-element.css | #55a9dd | — |
| constant.numeric | #aad4ee | — |
| support.constant.property-value.css | #aad4ee | — |
| constant.other.color | #aad4ee | — |
| constant.other.color.rgb-value.css | #aad4ee | — |
| string | #f7726e | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}