Bright Day Theme
Publisher: SquarelogicThemes in package: 1
Coda Bright Like Theme
Coda Bright Like Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment | #878787 | italic |
| string | #DD2400 | — |
| constant.numeric | #007AB7 | — |
| constant.language | #000000 | — |
| constant.character, constant.other | #000000 | — |
| variable | #000000 | |
| keyword | #0045AA | — |
| storage | #F92672 | |
| storage.type | #0045AA | — |
| entity.name.class | #000000 | underline |
| entity.other.inherited-class | #000000 | italic underline |
| entity.name.function | #3F6E7D | |
| variable.parameter | #000000 | italic |
| entity.name.tag | #0045AA | |
| entity.other.attribute-name | #007AB7 | |
| support.function | #400080 | |
| support.constant | #007AB7 | |
| support.type, support.class | #000000 | italic |
| support.other.variable | #000000 | |
| invalid | #DD2400 | — |
| punctuation.definition.tag | #0045AA | — |
| text.html.mt, string.html, meta.tag.block.any.html, string.quoted.double.html | #5D8F00 | — |
| constant.language | #007AB7 | — |
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}!`;
}