Capo-Light Theme
Publisher: geraneThemes in package: 1
Capo-Light Theme ported from the Capo-Light TextMate Theme
Capo-Light Theme ported from the Capo-Light TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #2A2A2A | — |
| comment | #858B7C | — |
| keyword.operator.class, source.php.embedded.line | #0000bb | |
| constant.other | #9128b1 | |
| variable, support.other.variable, string.other.link, string.regexp, entity.name.tag, entity.other.attribute-name, meta.tag, declaration.tag | #0066cc | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, punctuation.section.embedded, keyword.other.unit | #9128b1 | |
| entity.name.class, entity.name.type.class, support.type, support.class | #0066cc | |
| string, constant.other.symbol, entity.other.inherited-class, markup.heading | #af1212 | |
| keyword.operator | #0000bb | — |
| constant.other.color | #0000bb | — |
| entity.name.function, keyword.other.special-method, meta.block-level | #007700 | |
| meta.function-call | #007700 | |
| support.function | #007700 | |
| keyword, storage, storage.type, entity.name.tag.css | #0000bb | |
| invalid | #CED2CF | |
| meta.separator | #000000 | — |
| invalid.deprecated | #CED2CF |
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}!`;
}