Tron: Ares
Publisher: Juan Manuel SilvaThemes in package: 1
Dark theme for VS Code inspired by Tron: Ares — neon red, amber and white on deep black
Dark theme for VS Code inspired by Tron: Ares — neon red, amber and white on deep black
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 |
|---|---|---|
| source, text | #FFFFFF | — |
| comment, punctuation.definition.comment | #4a1a1a | italic |
| comment.block.documentation storage.type.class.jsdoc | #661a1a | italic |
| comment.block.documentation entity.name.type.instance.jsdoc | #5a1a1a | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.in, keyword.operator.instanceof, keyword.operator.of, storage.type, storage.modifier | #FF2200 | |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #FF2200 | — |
| variable.language.this, variable.language.super | #FF2200 | italic |
| constant.language.null, constant.language.undefined, constant.language.boolean, constant.language.nan, constant.language.infinity | #FF2200 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.ternary, keyword.operator.spread, keyword.operator.optional | #FF3300 | — |
| storage.type.function.arrow | #FF3300 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, entity.name.type.alias, support.class, support.type | #FF5500 | — |
| support.type.primitive, support.type.builtin, keyword.type | #FF2200 | — |
| entity.name.type.type-parameter, variable.type.var | #FF6633 | italic |
| entity.other.inherited-class | #FF5500 | italic |
| meta.decorator, punctuation.decorator, entity.name.function.tagged-template | #FF4400 | — |
| entity.name.function, meta.definition.method entity.name.function | #FF8800 | — |
| meta.function-call entity.name.function, meta.method-call entity.name.function, support.function | #FF8800 | — |
| support.function.console, entity.name.function.member | #FF9900 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, meta.definition.variable variable.other.readwrite | #FFFFFF | — |
| variable.parameter, meta.parameters variable.other.readwrite | #E8E8E8 | italic |
| variable.other.object.destructured, variable.other.rest | #FFFFFF | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, entity.other.attribute-name | #FF6633 | — |
| string, string.quoted, string.template | #FFA040 | — |
| punctuation.definition.string, punctuation.definition.template-expression | #FF8833 | — |
| meta.template.expression | #FFFFFF | — |
| string.regexp, constant.regexp | #FF7722 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp | #FF5500 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #FFAA00 | — |
| constant.other, variable.other.constant | #FF8800 | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.separator, punctuation.terminator | #882200 | — |
| storage.modifier.ts, storage.modifier.tsx | #FF2200 | italic |
| storage.type.interface.ts, storage.type.type.ts, storage.type.enum.ts, storage.type.class.ts, storage.type.namespace.ts | #FF2200 | — |
| keyword.control.as.ts, keyword.operator.expression.satisfies.ts, keyword.operator.expression.keyof.ts, keyword.operator.expression.typeof.ts, keyword.operator.expression.infer.ts | #FF3300 | — |
| keyword.operator.expression.extends.ts, keyword.operator.expression.in.ts | #FF3300 | — |
| entity.name.namespace, entity.name.module | #FF5500 | — |
| entity.name.tag, support.class.component | #FF5500 | — |
| entity.other.attribute-name.jsx | #FF6633 | — |
| punctuation.definition.tag, punctuation.section.embedded | #882200 | — |
| string.quoted.double.import, string.quoted.single.import, meta.import string | #FFA040 | — |
| meta.import variable.other.readwrite | #FFFFFF | — |
| markup.heading | #FF5500 | bold |
| markup.bold | #FF8800 | bold |
| markup.italic | #FF6633 | italic |
| markup.inline.raw | #FFAA00 | — |
| markup.underline.link | #FF8800 | — |
| markup.quote | #4a1a1a | italic |
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}!`;
}