Retro Theme
Publisher: Retro ThemeThemes in package: 1
A Retro Theme Inspired in The Guardians of The Galaxy and the 80s
A Retro Theme Inspired in The Guardians of The Galaxy and the 80s
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #535654 | — |
| string | #FEFA44 | — |
| constant.numeric | #71328C | — |
| constant.language | #D63956 | — |
| constant.character, constant.other | #71328C | — |
| variable | — | |
| keyword | #25BFFB | — |
| storage | #D63956 | |
| storage.type | #25BFFB | — |
| entity.name.class | #00CC74 | — |
| entity.other.inherited-class | #00CC74 | — |
| entity.name.function | #00CC74 | |
| variable.parameter | #FEF907 | — |
| entity.name.tag | #D63956 | |
| entity.other.attribute-name | #00CC74 | |
| support.function | #25BFFB | |
| support.constant | #25BFFB | |
| support.type, support.class | #25BFFB | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| source.python variable.language.python | #D63956 | — |
| source.python meta.class.python meta.class.inheritance.python entity.other.inherited-class.python | #FF2130 | — |
| text.html.basic entity.name.tag, text.xml meta.tag.xml entity.name.tag.localname.xml | #25BFFB | — |
| text.html.basic meta.tag.sgml.html meta.tag.sgml.doctype.html | #FF2130 | — |
| source.css meta.property-list.css meta.property-name.css support.type.property-name.css | #FFFFFF | — |
| source.css meta.property-list.css meta.property-value.css constant.numeric.css, source.css meta.at-rule.media.css constant.numeric.css | #FF2130 | — |
| source.css meta.property-list.css meta.property-value.css support.constant.property-value.css, source.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.css | #25BFFB | — |
| source.css meta.property-list.css meta.property-value.css constant.other.color.rgb-value.css punctuation.definition.constant.css, source.css meta.property-list.css meta.property-value.css constant.other.color.rgb-value.css | #FEF907 | — |
| source.js meta.group.js meta.block.js meta.function-call.method.js meta.group.js meta.block.js meta.function-call.method.js variable.function.js, source.js meta.group.js meta.block.js meta.function-call.method.js variable.function.js, source.js meta.function-call.method.js variable.function.js, source.js meta.function.expression.js meta.block.js meta.function-call.js entity.name.function.js | #25BFFB | — |
| source.js meta.group.js meta.block.js meta.function-call.method.js meta.group.js meta.object-literal.js variable.other.readwrite.js | #00CC74 | — |
| source.js meta.group.js meta.block.js meta.function-call.method.js meta.group.js meta.block.js variable.other.object.dollar.js punctuation.dollar.js, source.js meta.group.js meta.block.js meta.block.js meta.property.object.js, source.js meta.group.js meta.block.js meta.block.js meta.property.object.dollar.js punctuation.dollar.js, source.js meta.group.js meta.block.js meta.block.js meta.property.object.dollar.js, source.js meta.group.js meta.block.js meta.property.object.js, source.js meta.function.expression.js meta.block.js meta.function.js meta.block.js variable.other.property.js, source.js meta.function.expression.js meta.block.js variable.other.property.js | #ff3845 | — |
| source.js meta.block.js variable.language.this.js | #D63956 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}