Unicorn Vampire
Publisher: wafflefactory2398Themes in package: 3
Cute little theme of a unicorn vampire!
Cute little theme of a unicorn vampire!
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 |
|---|---|---|
| entity.name.function, entity.other.attribute-name.class, keyword, storage | #eaeab1 | — |
| entity.name.tag support, entity.name.tag, meta.block keyword, meta.block storage, punctuation.definition.tag, source.json punctuation, source.json support.type.property-name, support.function | #f4b3b4 | — |
| entity.other.inherited-class, meta.tag entity.other.attribute-name, variable.language.this | #f4b3b4 | italic |
| meta.object-literal.key entity.name.function, meta.object-literal.key, meta.object.member variable.other.readwrite, support.type.property-name, support.variable.property, variable.other.object.property, variable.other.property | #cccccc | italic |
| meta.template.expression variable | #cccccc | — |
| constant, punctuation.definition.template-expression, string, support.constant | #a0d9ae | — |
| comment, punctuation.definition.comment | #5c6773 | — |
| punctuation.definition.string | #F4B3B4 | — |
| constant.language.json | #9dceaa | — |
| string.quoted | #fefefe | — |
| support.type.property-name.json | #f4b3b4 | — |
| meta.structure.dictionary.value support.type.property-name.json | #fef2c1 | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #9dceaa | — |
| meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value meta.structure.dictionary.value support.type.property-name.json | #fef2c1 |
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}!`;
}