Summer Ale
Publisher: Ievgen MartynovThemes in package: 1
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 | #6a6079 | italic |
| storage.type.function.arrow | #B39DFF | bold |
| meta.var.expr storage.type, meta.class storage.type, meta.function storage.type | #BEE946 | italic bold |
| variable.language.this, variable.language.stylus, entity.name.tag.reference.scss | #8AA933 | |
| keyword.control, storage.modifier, keyword.operator.assignment, support.function.coffee | #BEE946 | italic |
| meta.export.default keyword.control.default | — | underline |
| keyword.control.flow | — | bold |
| keyword.operator | #38FF6A | bold |
| keyword.operator.assignment | #F85611 | bold |
| constant.language | #738FCC | italic bold |
| variable.language.super | #E690FF | bold |
| variable.assignment, meta.definition.variable | #38FF6A | — |
| variable.other.readwrite | #0FDEC3 | — |
| meta.import variable.other.readwrite | #0FDEC3 | bold |
| variable.parameter | #0B9E8B | — |
| variable.other.property | #0FDEC3 | italic |
| variable.other.constant | #38FF6A | |
| entity.name.function | #C7B6FF | — |
| meta.function-call entity.name.function, meta.function-call support.function | #B39DFF | bold |
| punctuation.definition.block, punctuation.definition.parameters | #F85611 | bold |
| punctuation.definition.binding-pattern.object | #F85611 | bold |
| meta.brace.round | #38FF6A | bold |
| punctuation.definition.binding-pattern.array, meta.brace.square | #F85611 | bold |
| variable.other.object | #2BFFE3 | italic bold |
| meta.object-literal.key | #D4ED8E | italic |
| variable.other.object.property, support.variable.property | #F98B5C | |
| entity.name.type, support.class | #0FDEC3 | italic bold |
| entity.other.inherited-class | #2BFFE3 | italic underline |
| string, punctuation.definition.string | #5F998E | italic |
| constant.numeric | #BEE946 | italic |
| punctuation, punctuation.separator.comma | #5F998E | |
| punctuation.definition.template-expression | #F85611 | |
| meta.tag entity.other.attribute-name | #D4ED8E | italic |
| keyword.other.unit | #C7B6FF | italic |
| support.constant.property-value, constant.property-value.stylus | #F85611 | |
| support.type.property-name | #2BFFE3 | italic |
| entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity | #FC9605 | bold |
| entity.other.attribute-name.class, entity.other.attribute-name.class punctuation.definition.entity | #BEE946 | italic bold |
| entity.name.tag | #38FF6A | bold |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #738FCC | italic bold |
| constant.other.color.rgb-value | #38FF6A | italic |
| support.function.misc, entity.other.attribute-name.mixin | #8F7ECC | bold italic |
| variable.other.stylus, variable.scss | #0FDEC3 | bold |
| punctuation.definition.dictionary | #38FF6A | bold |
| support.type.property-name.json | #F85611 | bold |
| meta.structure.dictionary.value.json support.type.property-name.json | #38FF6A | italic |
| meta.structure.dictionary.value.json string | #BEE946 | |
| markup.heading.markdown | #0FDEC3 | bold |
| heading.1.markdown | — | underline |
| meta.paragraph.markdown | #B39DFF | — |
| string.other.link.title.markdown | #90B3FF | bold |
| meta.link.inline.markdown | #BEE946 | — |
| markup.inline.raw.string.markdown | #BEE946 | italic |
| punctuation.definition | #38FF6A | bold |
| beginning.punctuation.definition | #F85611 | bold |
| markup.quote.markdown meta.paragraph.markdown | — | italic |
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}!`;
}