Xenus Dark
Publisher: XenusThemes in package: 1
A sleek, dark theme with vibrant highlights designed for optimal readability and focus. Perfect for developers who want a modern, minimal interface that enhances code clarity and reduces eye strain.
A sleek, dark theme with vibrant highlights designed for optimal readability and focus. Perfect for developers who want a modern, minimal interface that enhances code clarity and reduces 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 |
|---|---|---|
| comment, punctuation.definition.comment | #8A8A8ACC | italic |
| variable, string constant.other.placeholder | #9CDCFE | — |
| keyword, storage.type, storage.modifier | #D175FF | — |
| entity.name.function, meta.function-call | #65BAFF | — |
| string | #98C379 | — |
| constant.numeric | #D19A66 | — |
| entity.name.type, entity.name.class | #FFD68A | — |
| entity.name.tag | #FF7B85 | — |
| variable.other.property | #4DC4FF | — |
| constant | #FFD68A | — |
| meta.type.parameter | #D1E2F1 | — |
| invalid, invalid.deprecated | #FF5555 | — |
| warning | #FFAA00 | — |
| meta.function-call | #FFD700 | — |
| entity.name.interface | #66D9EF | — |
| meta.decorator | #A6E22E | — |
| keyword | #F92672 | bold |
| meta.annotation | #D2D2D2 | — |
| entity.name.type, entity.other.type | #FFB86C | — |
| keyword.operator | #FF79C6 | — |
| variable.parameter | #50FA7B | — |
| meta.structure.dictionary.json string.key.json | #8BE9FD | — |
| meta.structure.dictionary.json string.quoted.json | #FFB86C | — |
| entity.name.tag.html | #FF79C6 | — |
| entity.other.attribute-name.html | #F8F8F2 | — |
| meta.selector.css | #66D9EF | — |
| support.type.property-name.css | #FFB86C | — |
| meta.directive.vue | #FF92D0 | — |
| entity.name.tag.xml | #F92672 | — |
| markup.heading | #FFD68A | — |
| markup.underline.link | #66D9EF | — |
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}!`;
}