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 | #705848 | italic |
| keyword, keyword.control, keyword.other | #f5862b | italic |
| keyword.operator | #cd8269 | |
| storage, storage.type, storage.modifier | #f5862b | italic |
| string, string.quoted, string.template | #18bf9f | |
| constant.character.escape | #b6c158 | — |
| constant.numeric, constant.language, constant.character | #b6c158 | |
| entity.name.function, support.function, meta.function-call | #fe968f | |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #44aade | |
| entity.name.type.parameter | #44aade | — |
| variable, variable.other, variable.parameter | #e3d4cb | |
| variable.language | #f5862b | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #81c081 | |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical | #cd8269 | |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.separator, punctuation.terminator, meta.brace | #cd8269 | — |
| entity.name.tag, support.class.component | #16c1cf | |
| entity.other.attribute-name | #81c081 | italic |
| punctuation.definition.tag | #cd8269 | — |
| support.type.property-name.css, meta.property-name.css | #81c081 | — |
| support.constant.property-value.css, meta.property-value.css | #b6c158 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #16c1cf | — |
| support.type.property-name.json | #81c081 | — |
| markup.heading, entity.name.section.markdown | #f5862b | bold |
| markup.bold | #e3d4cb | bold |
| markup.italic | #e3d4cb | italic |
| markup.quote | #705848 | italic |
| markup.inline.raw, markup.fenced_code.block | #18bf9f | — |
| markup.underline.link | #18bf9f | — |
| markup.list, punctuation.definition.list | #b6c158 | — |
| string.regexp | #16c1cf | — |
| meta.decorator, punctuation.decorator | #fe968f | italic |
| support.constant, support.variable | #b6c158 | — |
| variable.parameter.function.language.special.self.python | #f5862b | italic |
| support.function.magic.python | #fe968f | — |
| entity.name.function.decorator.python | #fe968f | italic |
| meta.fstring.python | #18bf9f | — |
| entity.name.package.go, entity.name.import.go | #44aade | — |
| support.function.builtin.go | #fe968f | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #f5862b | italic |
| entity.name.function.macro.rust, support.macro.rust | #fe968f | — |
| meta.attribute.rust | #81c081 | italic |
| variable.other.normal.shell, punctuation.definition.variable.shell | #e3d4cb | — |
| support.function.builtin.shell | #fe968f | — |
| entity.name.tag.yaml | #81c081 | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #b6c158 | — |
| support.type.property-name.table.toml, entity.other.attribute-name.table.toml | #44aade | — |
| support.type.property-name.toml | #81c081 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #f5862b | italic |
| support.type.graphql, entity.name.fragment.graphql | #44aade | — |
| variable.graphql, variable.other.graphql | #81c081 | — |
| invalid, invalid.illegal | #e3d4cb | 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}!`;
}