Oro Theme
Publisher: DeimonnThemes in package: 4
Dark mode theme that aims to be both functional and aesthetically pleasing
Dark mode theme that aims to be both functional and aesthetically pleasing
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 |
|---|---|---|
| invalid.illegal | #E04444FF | |
| entity.name.type, entity.name.type.class, entity.name.type.struct | #63DBC1FF | |
| storage.type.builtin, storage.type.built-in, storage.type.primitive, support.type.builtin, support.type.built-in, support.type.primitive, keyword.type | #70C2E7FF | italic |
| entity.name.type.interface, entity.name.type.parameter | #E4C693FF | |
| entity.name.type.enum | #8FDB8FFF | |
| variable.other.enummember | #77D4D4FF | |
| entity.name.type.namespace, entity.name.namespace | #D5CCBAFF | |
| keyword, storage, variable.language | #E0CD78FF | italic |
| keyword.operator | #E0CD78FF | |
| entity.name.function.preprocessor | #E0CD78FF | |
| entity.name.function | #DDDDDDFF | |
| variable, entity.name.variable, entity.name.type.module | #BCD3D6FF | |
| constant | #77D4D4FF | |
| constant.language | #77D4D4FF | italic |
| comment, punctuation.definition.comment | #787878FF | |
| string | #68E09EFF | |
| constant.character.escape | #A8DBBFFF | |
| constant.numeric | #CEC7A8FF | |
| punctuation | #A0A0A0FF | |
| entity.name.tag | #77D4D4FF | |
| support.type.property-name | #DDDDDDFF | |
| markup.heading, entity.name.section | #E0CD78FF | italic |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.raw, markup.inline.raw, fenced_code.block.language | #A0A0A0FF | |
| markup.quote | #A0A0A0FF | |
| markup.list.bullet | #A0A0A0FF |
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}!`;
}