Hew
Publisher: MattThemes in package: 1
A relaxing theme
A relaxing theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #428421 | italic |
| invalid | #e42142 | bold |
| constant.language, keyword.operator.alignas, keyword.operator.alignof, keyword.operator.cast, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.new, keyword.operator.noexcept, keyword.operator.sizeof, keyword.operator.typeid, keyword.operator.wordlike, keyword, punctuation.definition.interpolation, punctuation.definition.template-expression, punctuation.section.embedded, storage, variable.language | — | bold |
| constant.other.caps, entity.name.tag.yaml, keyword.operator, meta.embedded, meta.interpolation, meta.preprocessor, meta.template.expression, storage.modifier.import.java, storage.modifier.package.java, support.type.property-name | — | |
| constant, keyword.operator.plus.exponent, keyword.operator.minus.exponent, meta.embedded.assembly, meta.preprocessor.numeric, meta.preprocessor.string, keyword.other.unit, string | — | bold italic |
| constant.character, punctuation.definition.entity | — | bold |
| entity.name.tag, meta.selector | — | bold |
| markup.heading | — | bold |
| markup.quote | — | italic |
| markup.inline.raw | — | bold italic |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
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}!`;
}