CodinCat-theme
Publisher: CodinCatThemes in package: 3
An easy on eyes color scheme
An easy on eyes color scheme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #B5AF8F | — |
| comment | #75715E | italic |
| string, support.constant.font-name | #72a56c | — |
| constant.numeric, keyword.other.unit | #71a0c3 | — |
| constant.language, entity.other.attribute-name.id | #de4e4e | bold |
| constant.character, constant.other | #AE81FF | — |
| variable, support.constant.property-value.css | #a68b3a | — |
| keyword, support.type.property-name, meta.property-name, support.type.vendored.property-name | #da7b7b | — |
| storage | #da3c3c | bold |
| storage.type, entity.name.tag | #c5aa20 | bold |
| entity.name.class | #EB54FF | underline |
| entity.other.inherited-class | #b5b5b5 | italic underline |
| entity.name.function, entity.other.attribute-name.class | #c17936 | bold |
| variable.parameter | #79b4b5 | |
| entity.name.tag, punctuation.definition.tag | #68a3b7 | bold |
| entity.other.attribute-name | #dca807 | |
| support.function, meta.property-value, support.constant.property-value | #a5bd2e | |
| support.constant, entity.other.attribute-name.pseudo-element | #c259dc | |
| support.type, support.class | #b77bce | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| punctuation.terminator.rule, punctuation.separator.key-value | #B5AF8F | — |
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}!`;
}