Vitality
Publisher: Luca FedrizziThemes in package: 1
A material theme with support for italic keywords, with the intent of being hyper-readable
A material theme with support for italic keywords, with the intent of being hyper-readable
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 |
|---|---|---|
| Global settings | #B2CCD6 | — |
| string | #C3E88D | — |
| constant.language.boolean | #f77669 | — |
| constant.numeric | #f77669 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #FA6981 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #82AAFF | — |
| entity.name.type.constant | #82AAFF | italic |
| entity.name.function, support.function | #82B1FF | — |
| storage.type, storage.modifier | #FFD54F | — |
| support.module, support.node | #82AAFF | — |
| support.type | #7FCAC3 | — |
| entity.name.type, entity.other.inherited-class | #FFD54F | — |
| comment | #405561 | — |
| entity.name.type.class | #FFD54F | — |
| variable.object.property | #C3E88D | — |
| meta.definition.method entity.name.function | #FFD54F | — |
| meta.function entity.name.function | #BD8BDF | — |
| template.expression.begin, template.expression.end | #C3E88D | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #7FCAC3 | — |
| constant.language.json | #C3E88D | — |
| entity.other.attribute-name.class.css | #FFD54F | normal |
| entity.other.attribute-name.id | #FFD54F | — |
| source.css entity.name.tag | #FA6981 | — |
| meta.tag, punctuation.definition.tag | #B2CCD6 | — |
| entity.name.tag | #FA6981 | — |
| markup.heading | #B2CCD6 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #B2CCD6 | — |
| text.html.markdown markup.quote | #FFD54F | — |
| text.html.markdown beginning.punctuation.definition.list | #C3E88D | — |
| markup.italic | #C3E88D | italic |
| markup.bold | #C3E88D | bold |
| markup.bold markup.italic, markup.italic markup.bold | #C3E88D | italic bold |
| keyword.control.import.js, keyword.control.from.js | — | underline |
| string.quoted.double.js, string.quoted.single.js, string.template.js | #C6FF00 | — |
| storage.type.js | #FFD54F | italic |
| variable.language.this.js | #FFD54F | italic |
| storage.type.function.arrow.js | #B388FF | italic |
| storage.type.class.js | #FFD54F | italic |
| entity.name.function.js | #82B1FF | — |
| keyword.control.conditional.js | #B388FF | — |
| entity.name.function.js | #82B1FF | — |
| keyword.operator.comparison.js | #B388FF | — |
| keyword.operator.logical.js, keyword.operator.assignment.js | #B388FF | — |
| constant.language.null.js, constant.language.undefined.js, constant.language.boolean.false.js, constant.language.boolean.true.js | #82B1FF | italic |
| storage.modifier.js | #B388FF | italic |
| entity.other.inherited-class.js | #B388FF | — |
| entity.other.attribute-name.js | #FFD54F | italic |
| entity.other.attribute-name.html | #FFD54F | italic |
| string.quoted.double.html | #C6FF00 | — |
| entity.other.attribute-name.pseudo-class.css | #FFD54F | italic |
| punctuation.definition.entity.css, keyword.operator.combinator.css, punctuation.separator.key-value.css | #B388FF | normal |
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}!`;
}