Back to the Code
Publisher: Divyanshu MaithaniThemes in package: 1
VS code theme inspired by Back to the Future from a fan driving at 88mph
VS code theme inspired by Back to the Future from a fan driving at 88mph
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 |
|---|---|---|
| — | #cbcdd2ff | — |
| comment | #686B78 | — |
| string | #4FB4D8 | — |
| constant.numeric | #FF8A54 | — |
| constant.language | #FF8A54 | — |
| constant.character, constant.other | #FF8A54 | — |
| variable | #CBCDD2 | |
| keyword | #78BD65 | — |
| storage | #EB3D54 | |
| storage.type | #EB3D54 | italic |
| entity.name.class | #E5CD52 | — |
| entity.other.inherited-class | #4FB4D8 | italic |
| entity.name.function | #E5CD52 | |
| variable.parameter | #E5CD52 | italic |
| entity.name.tag | #EB3D54 | |
| entity.other.attribute-name | #E5CD52 | |
| support.function | #E5CD52 | |
| support.constant | #EF7C2A | |
| support.type, support.class | #eb3d54 | — |
| support.other.variable | #CBCDD2 | — |
| invalid | #CBCDD2 | — |
| invalid.deprecated | #CBCDD2 | — |
| markup.list | #EB3D54 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #4FB4D8 | |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #78bd65 | — |
| markup.quote | #78bd65 | — |
| markup.bold | #e5cd52 | bold |
| markup.italic, punctuation.definition.italic | #ef7c2a | italic |
| meta.link | #78BD65 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| comment | #69666d | — |
| string | #5DD8B7 | — |
| keyword | #FA3368 | — |
| constant.numeric | #FF8A54 | — |
| entity.name.type | #79D9F1 | — |
| entity.name.function | #FBC93F | — |
| variable | #fafafc | — |
| punctuation.support.type.property-name.begin, support.type.property-name, punctuation.support.type.property-name.end, entity.name.tag, storage.type, storage.modifier | #FA3368 | — |
| support.class | #FA3368 | bold |
| constant.language, support.constant | #FF8A54 | — |
| entity.other.inherited-class, variable.parameter | #FF8A54 | bold |
| meta.object-literal.key | #79D9F1 | — |
| support.function | #FBC93F | — |
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}!`;
}