Berba
Publisher: hanenbroThemes in package: 1
A light colour theme for Visual Studio Code with a warm, bright palette
A light colour theme for Visual Studio Code with a warm, bright palette
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 | #C2A890 | italic |
| comment.block.preprocessor | #C2A890 | |
| comment.documentation, comment.block.documentation | #505977 | — |
| invalid.deprecated | #007fc080 | — |
| invalid.illegal | #ff2b5980 | — |
| keyword.operator | #ff2b59 | — |
| keyword, storage | #ff2b59 | — |
| storage.type, support.type | #ff2b59 | — |
| constant.language, support.constant, variable.language | #00b8ae | — |
| entity.name.function, support.function | #007fc0 | |
| variable.parameter | #f88214 | italic |
| entity.name.class, entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #144d79 | — |
| entity.other.inherited-class | #007fc0 | italic |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #b1365b | — |
| string | #97b901 | — |
| constant.character.escape | #00b8ae | — |
| string.regexp | #007fc0 | — |
| constant.other.symbol | #00b8ae | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #C2A890 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #00b8ae | |
| entity.name.tag | #ff2b59 | |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #f88214 | italic |
| constant.character.entity, punctuation.definition.entity | #144d79 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #ff2b59 | |
| meta.property-name, support.type.property-name | #00b8ae | |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #007fc0 | — |
| keyword.other.important | — | bold |
| markup.changed | #144d79 | — |
| markup.italic | — | italic |
| meta.link | #144d79 | — |
| markup.output, markup.raw | #ff2b59 | — |
| markup.prompt | #144d79 | — |
| markup.heading | #ff2b59 | — |
| markup.bold | — | bold |
| markup.traceback | #f88214 | — |
| markup.underline | — | underline |
| markup.quote | #97b901 | — |
| markup.list | #00b8ae | — |
| markup.bold, markup.italic | #007fc0 | — |
| markup.inline.raw | #b1365b |
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}!`;
}