B150
Publisher: B150Themes in package: 2
A warm, earthy VS Code theme inspired by the B150 design system. Features creamy off-whites in light mode and refined darks with vivid accents.
A warm, earthy VS Code theme inspired by the B150 design system. Features creamy off-whites in light mode and refined darks with vivid accents.
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 | #b0ada6 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #3b6ecc | — |
| keyword.control.flow, keyword.control.return, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.conditional, keyword.control.loop | #3b6ecc | — |
| string, string.quoted, string.template | #5a7a30 | — |
| punctuation.definition.template-expression, string.template punctuation.definition.template-expression | #c85a3a | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #c85a3a | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #c85a3a | — |
| entity.name.function, meta.function-call, support.function | #7c3aed | — |
| variable.parameter, meta.parameters | #1a1a1a | italic |
| variable, variable.other, variable.other.readwrite | #1a1a1a | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #4a4a4a | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #8f6d00 | — |
| meta.type.annotation, entity.name.type.alias | #8f6d00 | — |
| entity.name.type.interface | #8f6d00 | — |
| entity.name.type.enum | #8f6d00 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic | #736356 | — |
| punctuation, punctuation.definition.block, punctuation.definition.parameters, meta.brace | #8a8580 | — |
| entity.name.tag, support.class.component | #c74040 | — |
| entity.other.attribute-name | #8f6d00 | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #8f6d00 | — |
| support.type.property-name.css | #3b6ecc | — |
| support.constant.property-value.css, constant.other.color.rgb-value.hex.css, constant.numeric.css | #c85a3a | — |
| entity.name.tag.css | #c74040 | — |
| support.function.css, support.constant.media.css | #7c3aed | — |
| string.regexp, constant.other.character-class.regexp | #2d8e9e | — |
| markup.heading, entity.name.section.markdown | #3b6ecc | bold |
| markup.bold | #1a1a1a | bold |
| markup.italic | #1a1a1a | italic |
| markup.inline.raw, markup.fenced_code.block | #5a7a30 | — |
| markup.underline.link | #7c3aed | — |
| support.type.property-name.json | #3b6ecc | — |
| string.quoted.double.json | #5a7a30 | — |
| entity.name.tag.yaml | #3b6ecc | — |
| meta.decorator, meta.decorator punctuation.decorator | #8f6d00 | — |
| variable.other.readwrite.alias, meta.import variable.other.readwrite | #1a1a1a | — |
| string.quoted.module | #5a7a30 | — |
| variable.language.this, variable.language.self, variable.language.super | #c74040 | italic |
| variable.other.constant, variable.other.enummember | #c85a3a | — |
| support.constant, support.variable | #2d8e9e | — |
| constant.character.escape | #2d8e9e | — |
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}!`;
}