Dark Wiwa
Publisher: Luke WiwaThemes in package: 1
An implementation of calming colours and dark backgrounds to reduce eye strain
An implementation of calming colours and dark backgrounds to reduce eye strain
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 |
|---|---|---|
| string | #FC4E4B | — |
| constant.language.boolean | #33A958 | — |
| constant.numeric | #F3B63B | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #4cfd84 | italic |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #33A958 | — |
| entity.name.function, support.function | #F3B63B | — |
| storage.type, storage.modifier | #33A958 | — |
| support.module, support.node | #4cfd84 | italic |
| support.type | #00A4D8 | — |
| entity.name.type, entity.other.inherited-class | #00A4D8 | italic |
| comment | #a1a1a1 | — |
| entity.name.type.class | #00A4D8 | underline |
| variable.object.property | #00A4D8 | — |
| meta.definition.method entity.name.function | #00A4D8 | — |
| meta.function entity.name.function | #00A4D8 | — |
| template.expression.begin, template.expression.end | #33A958 | — |
| entity.name.tag.yaml | #4cfd84 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #4cfd84 | — |
| constant.language.json | #33A958 | — |
| entity.other.attribute-name.class | #33A958 | — |
| entity.other.attribute-name.id | #FC4E4B | — |
| source.css entity.name.tag | #00A4D8 | — |
| meta.tag, punctuation.definition.tag | #33A958 | — |
| entity.name.tag | #4cfd84 | — |
| entity.other.attribute-name | #F3B63B | — |
| markup.heading | #33A958 | bold |
| text.html.markdown meta.link.inline, meta.link.reference | #4cfd84 | — |
| text.html.markdown beginning.punctuation.definition.list | #33A958 | — |
| markup.italic | #4cfd84 | italic |
| markup.bold | #4cfd84 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #4cfd84 | italic bold |
| keyword.other.definition.ini | #4cfd84 | — |
| entity.name.section.group-title.ini | #33A958 | — |
| source.cs meta.class.identifier storage.type | #00A4D8 | underline |
| source.cs meta.method.identifier entity.name.function | #00A4D8 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #F3B63B | — |
| source.cs storage.type | #00A4D8 | — |
| source.cs meta.method.return-type | #00A4D8 | — |
| source.cs meta.preprocessor | #333333 | — |
| source.cs entity.name.type.namespace | #FFFFFF | — |
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}!`;
}