AdventureX Theme
Publisher: AdventureXThemes in package: 6
A dark theme for VS Code inspired by the AdventureX design system. Three accent variants — each with italic and no-italic options.
A dark theme for VS Code inspired by the AdventureX design system. Three accent variants — each with italic and no-italic options.
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 | #665d44 | |
| keyword, keyword.control, keyword.other | #c8a41e | |
| keyword.operator | #bb904c | |
| storage, storage.type, storage.modifier | #c8a41e | |
| string, string.quoted, string.template | #20b8d0 | |
| constant.character.escape | #72cf8d | — |
| constant.numeric, constant.language, constant.character | #72cf8d | |
| entity.name.function, support.function, meta.function-call | #f7a14f | |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #8499e9 | |
| entity.name.type.parameter | #8499e9 | — |
| variable, variable.other, variable.parameter | #dcd7c9 | |
| variable.language | #c8a41e | |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #4cc5b3 | |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical | #bb904c | |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.separator, punctuation.terminator, meta.brace | #bb904c | — |
| entity.name.tag, support.class.component | #56b4f5 | |
| entity.other.attribute-name | #4cc5b3 | |
| punctuation.definition.tag | #bb904c | — |
| support.type.property-name.css, meta.property-name.css | #4cc5b3 | — |
| support.constant.property-value.css, meta.property-value.css | #72cf8d | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #56b4f5 | — |
| support.type.property-name.json | #4cc5b3 | — |
| markup.heading, entity.name.section.markdown | #c8a41e | bold |
| markup.bold | #dcd7c9 | bold |
| markup.italic | #dcd7c9 | italic |
| markup.quote | #665d44 | italic |
| markup.inline.raw, markup.fenced_code.block | #20b8d0 | — |
| markup.underline.link | #20b8d0 | — |
| markup.list, punctuation.definition.list | #72cf8d | — |
| string.regexp | #56b4f5 | — |
| meta.decorator, punctuation.decorator | #f7a14f | |
| support.constant, support.variable | #72cf8d | — |
| variable.parameter.function.language.special.self.python | #c8a41e | |
| support.function.magic.python | #f7a14f | — |
| entity.name.function.decorator.python | #f7a14f | |
| meta.fstring.python | #20b8d0 | — |
| entity.name.package.go, entity.name.import.go | #8499e9 | — |
| support.function.builtin.go | #f7a14f | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #c8a41e | |
| entity.name.function.macro.rust, support.macro.rust | #f7a14f | — |
| meta.attribute.rust | #4cc5b3 | |
| variable.other.normal.shell, punctuation.definition.variable.shell | #dcd7c9 | — |
| support.function.builtin.shell | #f7a14f | — |
| entity.name.tag.yaml | #4cc5b3 | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #72cf8d | — |
| support.type.property-name.table.toml, entity.other.attribute-name.table.toml | #8499e9 | — |
| support.type.property-name.toml | #4cc5b3 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #c8a41e | |
| support.type.graphql, entity.name.fragment.graphql | #8499e9 | — |
| variable.graphql, variable.other.graphql | #4cc5b3 | — |
| invalid, invalid.illegal | #dcd7c9 | strikethrough |
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}!`;
}