Blue Paint
Publisher: Andreas WeberThemes in package: 1
A blue VS Code theme
A blue VS Code theme
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 |
|---|---|---|
| keyword.operator.accessor, meta.group.braces.round.function.arguments, meta.template.expression, markup.fenced_code meta.embedded.block | #24292E | — |
| emphasis | — | italic |
| strong, markup.heading.markdown, markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| meta.link.inline.markdown | #1565c0 | underline |
| comment, markup.fenced_code, markup.inline | #6A737D | — |
| constant.numeric, constant.language, variable.language.this, variable.other.class, meta.property-name, meta.property-value, support | #26A69A | — |
| keyword, storage.modifier, storage.control.clojure, entity.name.function.clojure, support.function.node, punctuation.separator.key-value, punctuation.definition.template-expression | #c62828 | — |
| variable.parameter.function | #E27F2D | — |
| entity.other.inherited-class, variable.other.constant, meta.function-call, meta.instance.constructor, entity.other.attribute-name, entity.name.function, constant.keyword.clojure | #000000 | — |
| entity.name.type, meta.function-call entity.name.function, meta.method-call entity.name.function | #1565C0 | — |
| string, string.quoted, string.regexp, string.interpolated, string.template, keyword.other.template | #43A047 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token, invalid | #CD3131 | — |
| token.debug-token | #800080 | — |
| markup.inserted | #388e3c | — |
| markup.deleted | #D73A49 | — |
| markup.changed | #1565c0 | — |
| meta.diff.header | #6A737D | — |
| constant.numeric.css, support.constant.property-value.css, support.function.misc.css, constant.other.color.rgb-value.hex.css, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css | #000 | — |
| keyword.other, keyword.type | #1565c0 | — |
| entity.name.tag | #1565c0 | — |
| entity.name.tag.yaml, support.type.property-name.json | #000000 | — |
| source.yaml string, source.yaml string.quoted, source.yaml string.regexp, source.yaml string.interpolated, source.yaml string.template, source.yaml keyword.other.template, source.json string, source.json string.quoted, source.json string.regexp, source.json string.interpolated, source.json string.template, source.json keyword.other.template | #1565c0 | — |
| source.vue entity.name.tag | — | bold |
| entity.name.tag.block.any.html | #1565c0 | |
| support.class.component.html | #1565c0 | — |
| entity.other.attribute-name, entity.name.tag.css | #c62828 | — |
| storage.type | #1565c0 | — |
| support.class.component.html, support.type.property-name | #000000 | — |
| entity.other.inherited-class | #000000 | — |
| meta.decorator, meta.decorator meta.function-call entity.name.function, punctuation.decorator, storage.type.annotation, punctuation.definition.annotation | #9c27b0 | — |
| meta.object, meta.import storage.modifier | #000000 | — |
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}!`;
}