Ooh! A Flower!
Publisher: Dashiell PowersThemes in package: 1
A soft, floral theme
A soft, floral 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 | #948293 | italic |
| string | #6AA36F | — |
| constant.numeric | #64AAE3 | — |
| constant.language | #D953A3 | — |
| constant.character, constant.other | #D872DB | bold |
| variable, punctuation.definition.variable | #653ba8 | |
| keyword | #9e188c | — |
| storage | #D481E3 | |
| storage.type | #9e188c | — |
| entity.name.class | #0C02CC | — |
| entity.other.inherited-class | #79009E | — |
| entity.name.function | #E352D0 | |
| variable.parameter | #653ba8 | — |
| entity.name.tag | #9B45E6 | |
| entity.other.attribute-name | #002A9E | |
| support.function | #C712C7 | — |
| support.variable.property | #653ba8 | — |
| support.constant | #D11463 | |
| support.type, support.class | #5888D1 | — |
| support.other.variable | — | |
| invalid | — | |
| invalid.deprecated | — | — |
| meta.structure.dictionary.json string.quoted.double.json | #6AA36F | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #00A8C6 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| meta.function-call | #E352D0 | — |
| punctuation.definition, punctuation.section, punctuation.terminator, punctuation.separator, punctuation.accessor, meta.brace | #8467b391 | — |
| keyword.operator | #653ba8 | — |
| comment, punctuation.definition.comment | #948293 | italic |
| Keyword, Storage | — | italic |
| keyword.control | — | italic |
| entity.other.attribute-name | — | italic |
| entity.name.method.js | — | italic |
| variable.language | — | italic |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | — | italic |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | — | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | — | italic |
| markup.italic | — | italic |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | — | bold |
| markup.quote | — | italic |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}