Bernadoque Theme
Publisher: Wesley BernadoqueThemes in package: 2
A dark theme with a focus on readability and a clean, modern look.
A dark theme with a focus on readability and a clean, modern look.
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 | #ff00ff80 | — |
| variable, string constant.other.placeholder | #ff0062 | — |
| keyword, storage.type, storage.modifier | #00ffff | — |
| entity.name.function, support.function | #9a65fd | — |
| string, string.quoted | #ffff00 | — |
| constant.numeric | #ff0000 | — |
| entity.name.type, support.type | #00ffff | — |
| keyword.control.import, keyword.control.export | #ff00ff | — |
| entity.name.class, entity.name.type.class | #00ffff | — |
| meta.decorator, decorator | #ff00ff | — |
| entity.name.tag | #00ffff | — |
| entity.other.attribute-name | #ff00ff | — |
| support.type.property-name.css | #00ffff | — |
| support.constant.property-value.css | #ffff00 | — |
| entity.other.attribute-name.html | #ff00ff | — |
| entity.name.tag.html | #00ffff | — |
| keyword.control, keyword.operator, keyword.other | #00ffff | — |
| entity.name.function.js, entity.name.function.ts | #00ff00 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts | #ff00ff | — |
| variable.other.property.js, variable.other.property.ts | #ff00ff | — |
| variable.other.constant.js, variable.other.constant.ts | #ff0000 | — |
| entity.name.type.class.js, entity.name.type.class.ts | #00ffff | — |
| entity.name.type.interface.js, entity.name.type.interface.ts | #00ffff | — |
| entity.name.type.js, entity.name.type.ts | #00ffff | — |
| meta.decorator.js, meta.decorator.ts, decorator.js, decorator.ts | #ff00ff | — |
| keyword.control.import.js, keyword.control.import.ts, keyword.control.export.js, keyword.control.export.ts | #ff00ff | — |
| string.quoted.js, string.quoted.ts | #ffff00 | — |
| constant.numeric.js, constant.numeric.ts | #ff0000 | — |
| comment.line.double-slash.js, comment.line.double-slash.ts | #ff00ff80 | — |
| keyword.operator.js, keyword.operator.ts | #00ffff | — |
| keyword.control.js, keyword.control.ts | #00ffff | — |
| storage.type.js, storage.type.ts, storage.modifier.js, storage.modifier.ts | #00ffff | — |
| support.class.js, support.class.ts, support.function.js, support.function.ts | #00ff00 | — |
| keyword.other.dart | #00ffff | — |
| keyword.operator.dart | #00ffff | — |
| keyword.control.dart | #ff0062 | — |
| entity.name.function.dart | #ff00ff | — |
| variable.other.readwrite.dart | #ff00ff | — |
| variable.other.property.dart | #ff00ff | — |
| variable.other.constant.dart | #ff0000 | — |
| entity.name.type.class.dart | #00ffff | — |
| entity.name.tag.custom.dart | #00ffff | — |
| string.quoted.dart | #ffff00 | — |
| constant.numeric.dart | #ff0000 | — |
| comment.line.double-slash.dart | #ff00ff80 | — |
| keyword.operator.dart | #00ffff | — |
| storage.type.dart, storage.modifier.dart | #00ffff | — |
| support.class.dart, support.function.dart | #00ff00 | — |
| keyword.control.import.dart, keyword.control.export.dart | #ff00ff | — |
| meta.decorator.dart, decorator.dart | #ff00ff | — |
| punctuation.definition.decorator.dart | #ff00ff | — |
| storage.type.annotation.override.dart | #b19cd9 | — |
| entity.name.type.dart, support.type.dart | #ffff00 | — |
| keyword.control.flow.ts | #b19cd9 | — |
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}!`;
}