AMOLED Jonny Dark
Publisher: Jonathan HoffmanThemes in package: 2
A colourblind-friendly AMOLED dark theme optimised for readability.
A colourblind-friendly AMOLED dark theme optimised for readability.
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 |
|---|---|---|
| source, meta.embedded, variable, meta.object-literal.key | #CCCCCC | — |
| keyword, keyword.control, keyword.operator, storage.type, storage.modifier | #7FD8E8 | |
| entity.name.type, entity.name.class, support.type, support.class | #A2F2C8 | |
| entity.name.function, support.function, meta.function-call, meta.method-call | #94E6BE | |
| variable.parameter, meta.parameter, meta.argument | #C8C8C8 | — |
| variable.other.constant, variable.other.enummember, constant.language, constant.character, support.constant | #EBC77E | bold |
| string, string.quoted, string.template | #EBC77E | |
| string.template meta.embedded, string.interpolated | #7FD8E8 | — |
| constant.numeric, constant.boolean | #D69CA7 | — |
| comment, punctuation.definition.comment | #777777 | italic |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.arguments, meta.brace, meta.bracket, meta.delimiter | #5E5E5E | — |
| keyword.operator, punctuation.definition.operator | #A0A0A0 | — |
| meta.decorator, entity.other.attribute-name, meta.annotation | #D69CA7 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #7FD8E8 | — |
| support.type.property-name, meta.object-literal.key string | #CFCFCF | — |
| markup.heading, markup.heading entity.name.section | #EBC77E | bold |
| markup.bold | #CCCCCC | bold |
| markup.italic | #CCCCCC | italic |
| markup.underline.link, string.other.link | #7FD8E8 | underline |
| invalid, invalid.illegal | #000000 | — |
| meta.deprecated | #9D5A4C | strikethrough |
| entity.name.type.ts, entity.name.type.interface.ts, entity.name.type.alias.ts, entity.name.enum.ts, support.type.primitive.ts | #A2F2C8 | |
| meta.decorator.ts, meta.decorator punctuation.definition.tag.ts | #D69CA7 | italic |
| keyword.operator.type.annotation.ts, keyword.operator.type.ts, storage.type.type.ts, storage.type.interface.ts | #7FD8E8 | |
| variable.language.this.ts, variable.language.super.ts | #C8C8C8 | — |
| entity.name.tag.tsx, support.class.component.tsx | #EBC77E | |
| entity.other.attribute-name.tsx | #D69CA7 | |
| support.function.builtin.python, support.type.builtin.python | #94E6BE | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #C8C8C8 | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #D69CA7 | italic |
| meta.annotation.type.python, meta.function.parameters.python entity.name.type, meta.generic-name.python | #A2F2C8 | |
| string.quoted.single.f.python meta.embedded.line, string.quoted.double.f.python meta.embedded.line, constant.character.format.placeholder.other.python | #7FD8E8 | — |
| comment, punctuation.definition.comment | #595959 | italic |
| punctuation, keyword.operator, storage.type.function.arrow | #444444 | — |
| keyword, storage.type, storage.modifier | #6ECFE6 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #9FE0C2 | — |
| entity.name.type, entity.name.class, support.type, support.class | #E6B2CA | — |
| variable, meta.parameter, variable.parameter | #D4D4D4 | — |
| constant, constant.numeric, constant.language, variable.other.constant, entity.name.constant, support.constant | #A0D6FF | — |
| string, string.quoted, string.template, constant.other.symbol | #EBCF87 | — |
| meta.decorator, meta.annotation, entity.name.function.decorator | #D5A5E6 | — |
| support.variable, support.other.variable, variable.language, keyword.other.this | #F3B38C | — |
| support.type.property-name.json, meta.object-literal.key | #A0D6FF | — |
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}!`;
}