Coffee_Dark_Roast Theme
Publisher: geraneThemes in package: 1
Coffee_Dark_Roast Theme ported from the CoffeeDarkRoast TextMate Theme
Coffee_Dark_Roast Theme ported from the CoffeeDarkRoast TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFF2CF | — |
| comment | #4A4A4A | italic |
| constant | #074C76 | — |
| entity | #dc5f37 | — |
| invalid | #FFF2CF | — |
| keyword | #B96600 | — |
| markup | #8B3C23 | — |
| storage | #8B5C23 | — |
| string | #DC9237 | — |
| support | #DCBC63 | — |
| variable | #B92D00 | — |
| entity.name.type | #5A96BA | — |
| entity.other.inherited-class | #5A96BA | italic |
| constant.numeric | #074C76 | — |
| constant.language | #074C76 | — |
| constant.character, constant.other | #074C76 | — |
| invalid.deprecated | #FFF2CF | — |
| entity.name.function | #B98800 | — |
| variable.parameter | #B92D00 | italic |
| support.class | #5A96BA | — |
| support.constant | #074C76 | — |
| support.function | #B98800 | — |
| support.variable | #B92D00 | — |
| storage.type | #8B5C23 | — |
| entity.name.tag | #8B3C23 | bold |
| entity.other.attribute-name | #DC5F37 | italic |
| constant.numeric.line-number.find-in-files - match | #02314D | italic |
| entity.name.tag.yaml | — | none |
| punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json | #FFF2CF | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #DC9237 | — |
| meta.structure.dictionary.json string.quoted.double.json | #8B3C23 | — |
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}!`;
}