micro:bit Inspired Themes
Publisher: carlosperateThemes in package: 6
Six VS Code colour themes, Pixel, Spark, Halo (light and dark) inspired by micro:bit.
Six VS Code colour themes, Pixel, Spark, Halo (light and dark) inspired by micro:bit.
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 | #5a6e60 | italic |
| comment.block.documentation, comment.line.documentation | #5a6e60 | italic |
| string, string.quoted, string.template | #f08a3c | — |
| constant.character.escape | #4cd07a | — |
| meta.template.expression, punctuation.definition.template-expression | #6a7b6f | — |
| constant.numeric | #b89cf0 | — |
| constant.language, constant.other | #c7b4f0 | — |
| variable, variable.other | #d6e0d8 | — |
| variable.parameter | #c7b4f0 | — |
| variable.other.property, meta.property.object, support.variable.property | #92c5e0 | — |
| keyword, keyword.control, keyword.operator.expression | #5cd9d6 | |
| storage.type, storage.modifier | #5cd9d6 | — |
| entity.name.type, entity.name.class, support.class, support.type | #ef7aae | — |
| support.type.primitive, support.type.builtin | #ef7aae | — |
| entity.name.function, support.function, meta.function-call.generic | #6ab7e8 | — |
| meta.function-call entity.name.function, variable.function | #6ab7e8 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #f08a3c | — |
| keyword.operator, punctuation.separator | #8aa395 | — |
| punctuation | #6a7b6f | — |
| string.regexp | #4cd07a | — |
| entity.name.tag | #ef7aae | — |
| entity.other.attribute-name | #c7b4f0 | — |
| markup.heading, entity.name.section | #ef7aae | bold |
| markup.underline.link | #6ab7e8 | — |
| markup.bold | #5cd9d6 | bold |
| markup.italic | #f08a3c | italic |
| markup.inline.raw, markup.fenced_code | #6ab7e8 | — |
| support.type.property-name.json | #92c5e0 | — |
| invalid | #ffffff | — |
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}!`;
}