Witch Hazel
Publisher: Thea FlowersThemes in package: 2
A dark and feminine color scheme
A dark and feminine color scheme
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 |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #BFBFBF | — |
| string | #81EEFF | — |
| constant.character.format.placeholder, constant.other.placeholder, meta.fstring.python variable | #FFA3C3 | italic |
| constant.numeric, keyword.other.unit.hexadecimal, constant.numeric.hex, storage.type.number | #FFF9A3 | — |
| constant.language | #C5A3FF | bold |
| constant.character, constant.other, entity.name.function.preprocessor | #C5A3FF | bold |
| variable | #F8F8F2 | |
| keyword | #81FFBE | — |
| storage | #FFB8D1 | |
| storage.modifier | #64BECB | bold italic |
| storage.type | #81FFBE | italic |
| entity.name.class, meta.class, entity.name.type.class | #A3F3FF | bold |
| entity.other.inherited-class | #81EEFF | italic |
| entity.name.function | #DCC8FF | |
| variable.parameter | #FFA3C3 | italic |
| entity.name.tag | #FFA3C3 | |
| entity.other.attribute-name | #FFF9A3 | |
| support.function | #A3FFCF | |
| support.constant | #A3FFCF | |
| support.type, support.class | #81EEFF | italic |
| support.other.variable | — | |
| meta.member.access, variable.other.property | — | italic |
| meta.bracket.square.access | #C8F8FF | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| markup.heading.markdown | #FFF781 | bold |
| meta.link.inline.markdown | #C8F8FF | — |
| meta.link.reference.markdown | #C8F8FF | — |
| string.other.link.title.markdown | #81FFBE | bold |
| markup.underline.link.markdown | — | italic |
| markup.underline.link.image.markdown | — | underline italic |
| markup.bold.markdown | #F8F8F2 | bold |
| markup.italic.markdown | #F8F8F2 | italic |
| meta.image.inline.markdown | #C5A3FF | italic |
| string.other.link.description.markdown | #A3F3FF | bold italic |
| markup.inline.raw.string.markdown | #FFFBC8 | — |
| markup.fenced_code.block.markdown | #FF81AD | — |
| fenced_code.block.language.markdown | — | italic |
| meta.embedded.block | #F8F8F0 | — |
| punctuation.definition.list.begin.markdown | #AE81FF | — |
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}!`;
}