Hydrangea
Publisher: Choonghwan LeeThemes in package: 1
A theme inspired by hydrangea
A theme inspired by hydrangea
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #dddddd | — |
| comment | #A7C75C | — |
| string | #B5BFCB | — |
| constant.numeric | #B5BFCB | — |
| constant.language | #B5BFCB | — |
| constant.character, constant.other | #F9DEBC | — |
| variable | #9FC0FC | — |
| keyword | #BB70BB | — |
| storage | #FED4EC | — |
| storage.type | #F29CA7 | — |
| entity.name.type | #F7AEC0 | — |
| entity.name.class | #FAC5FF | — |
| entity.other.inherited-class | #FAC5FF | — |
| entity.name.function | #F7AEC0 | — |
| variable.parameter | #9CCDFF | — |
| entity.name.tag | #F29CA7 | — |
| entity.other.attribute-name | #9FC0FC | — |
| support.function | #F7AEC0 | — |
| support.constant | #eeeeee | — |
| support.type, support.class | #F29CA7 | — |
| support.other.variable | #F29CA7 | — |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
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}!`;
}