Onyx Theme Color & Experience
Publisher: dev-onyxThemes in package: 1
A super-dark, minimal VS Code theme with subtle borders and zero visual noise. Designed for focus and clarity.
A super-dark, minimal VS Code theme with subtle borders and zero visual noise. Designed for focus and clarity.
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 |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #6b6b6b | italic |
| constant, entity.name.constant, variable.other.constant, variable.language.this, variable.language.super, variable.language.self | #79b8ff | — |
| entity, entity.name | #b392f0 | — |
| entity.name.function | #b392f0 | — |
| entity.name.type | #ff9966 | — |
| entity.name.tag | #85e89d | — |
| entity.other.attribute-name | #79b8ff | — |
| keyword, storage.modifier, storage.type.class, storage.type.function | #f97583 | — |
| storage, storage.type | #f97583 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #9ecbff | — |
| string.regexp | #dbedff | — |
| support.type, support.class | #ff9966 | — |
| support.function, support.constant | #79b8ff | — |
| support.variable | #79b8ff | — |
| meta.property-name | #79b8ff | — |
| variable, variable.parameter | #e4e4e4 | — |
| variable.other.property | #ffab70 | — |
| variable.function | #b392f0 | — |
| invalid, invalid.illegal | #ff6b88 | italic |
| invalid.deprecated | #ff6b88 | strikethrough italic |
| markup.heading | #79b8ff | bold |
| markup.bold | #e4e4e4 | bold |
| markup.italic | #e4e4e4 | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.quote | #85e89d | italic |
| markup.inline.raw | #9ecbff | — |
| markup.fenced_code.block | #9b9b9b | — |
| markup.inserted, meta.diff.header.to-file | #85e89d | — |
| markup.deleted, meta.diff.header.from-file | #ff6b88 | — |
| markup.changed | #ffab70 | — |
| meta.diff.range | #b392f0 | bold |
| meta.separator | #79b8ff | bold |
| punctuation.definition.list.begin.markdown | #ffab70 | — |
| constant.other.reference.link, string.other.link | #5fcfef | underline |
| punctuation.accessor | #e4e4e4 | — |
| punctuation.separator | #9b9b9b | — |
| meta.brace | #9b9b9b | — |
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}!`;
}