one-darker-improved
Publisher: justmeonThemes 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 |
|---|---|---|
| entity.name.type, entity.other.inherited-class, keyword.other.type, punctuation.definition.annotation, storage.modifier.import, storage.modifier.package, storage.type.annotation, storage.type.built-in, storage.type.generic, storage.type.java, storage.type.groovy, storage.type.primitive, support.class, support.other.namespace, support.type, variable.language.this | #f5c876 | — |
| constant.other.character-class, entity.name.tag, heading, meta.object-literal.key, punctuation.definition.list.begin.markdown, punctuation.definition.list.end.markdown, punctuation.definition.template-expression, punctuation.section.embedded, support.type.property-name, variable.object.property, variable.other.enummember | #ef596f | — |
| constant.character.escape, keyword.operator, markup.underline.link, string.regexp, string.url | #33d8e4 | — |
| entity.name.function, entity.other.attribute-name.id.css, meta.function-call.generic, string.other.link, support.function, variable.language.super | #61afef | — |
| meta.brace, punctuation.accessor, punctuation.definition.block, punctuation.separator, support.type.property-name.css | #bbbbbb | — |
| markup.inline, markup.quote, source.ini, string.other.link.description, string | #89ca78 | — |
| comment | #5c6370 | — |
| keyword.operator.new, keyword, markup.italic, punctuation.definition.block.tag, storage.modifier, storage.type | #d55fde | — |
| constant, entity.other.attribute-name, keyword.operator.quantifier.regexp, markup.bold, support.constant, variable.other.constant, variable.parameter | #d19a66 | — |
| markup.quote, markup.italic | — | italic |
| heading, markup.bold | — | bold |
| entity.name.type.interface | #ff9900 | — |
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}!`;
}