wild-cherry Theme
Publisher: geraneThemes in package: 1
wild-cherry Theme ported from the wild-cherry TextMate Theme
wild-cherry Theme ported from the wild-cherry TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #6272a4 | |
| string | #fed888 | — |
| constant.numeric | #9b5fe0 | — |
| constant.language | #9b5fe0 | — |
| constant.character, constant.other | #9b5fe0 | — |
| variable | — | |
| keyword | #e15d97 | — |
| meta.tag, declaration.tag | #e15d97 | |
| storage | #e15d97 | |
| storage.type | #0aacc5 | italic |
| entity.name.class | #35ba66 | underline |
| entity.other.inherited-class | #35ba66 | italic underline |
| entity.name.function | #35ba66 | |
| variable.parameter | #ffb86c | italic |
| entity.name.tag | #e15d97 | |
| entity.other.attribute-name | #35ba66 | |
| support.function | #0aacc5 | |
| support.constant | #6be5fd | |
| support.type, support.class | #66d9ef | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #6272a4 | — |
| markup.deleted | #e15d97 | — |
| markup.inserted | #35ba66 | — |
| markup.changed | #fed888 | — |
| constant.numeric.line-number.find-in-files - match | #9b5fe0 | — |
| entity.name.filename | #fed888 | — |
| message.error | #bd1c14 | — |
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}!`;
}