Beatles theme
Publisher: sdooodlyThemes in package: 8
An 8-theme pack inspired by the Beatles. Dark and light variants inspired by each Beatle.
An 8-theme pack inspired by the Beatles. Dark and light variants inspired by each Beatle.
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 | #8A8A80 | italic |
| string, string.quoted, string.template, string.interpolated | #4A5535 | — |
| constant.character.escape, string.regexp | #3D4A2A | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #1C1C1A | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #5C6B40 | — |
| constant.language, support.constant, constant.language.boolean, constant.language.null, constant.language.undefined | #3D4A2A | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #1C1C1A | bold |
| storage.type, storage.modifier, keyword.control.def, keyword.control.class | #1C1C1A | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison | #3A3A35 | — |
| entity.name.function, meta.function entity.name.function | #3D4A2A | — |
| meta.function-call entity.name.function, variable.function, support.function, meta.method-call entity.name.function, entity.name.function.call | #3D4A2A | — |
| support.function.builtin, support.function.magic, meta.function-call support.function | #3D4A2A | — |
| meta.method-call, variable.function.member | #3D4A2A | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.name.type.class | #5C6B40 | — |
| entity.other.inherited-class | #5C6B40 | italic |
| entity.name.type.interface, entity.name.type.parameter, entity.name.type.enum | #4A5535 | — |
| variable, variable.other, variable.other.readwrite | #1C1C1A | — |
| variable.parameter, variable.parameter.function | #3A3A35 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property | #3D4A2A | — |
| variable.language, variable.language.this, variable.language.self, variable.language.special | #1C1C1A | italic |
| meta.decorator, entity.name.function.decorator, punctuation.definition.decorator, meta.annotation | #5C6B40 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.other.import | #1C1C1A | — |
| entity.name.import, entity.name.package, support.module | #4A5535 | — |
| entity.name.tag, punctuation.definition.tag | #1C1C1A | bold |
| entity.other.attribute-name | #4A5535 | — |
| support.type.property-name, meta.property-name | #3D4A2A | — |
| support.constant.property-value, meta.property-value | #4A5535 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #5C6B40 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #5A5A50 | — |
| markup.heading, entity.name.section | #1C1C1A | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code | #4A5535 | — |
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}!`;
}