SollyBunny Void
Publisher: SollyBunnyThemes in package: 2
An actual #000000 black theme
An actual #000000 black 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 |
|---|---|---|
| variable.other.readwrite.alias | #000000 | — |
| punctuation.separator | #000000 | — |
| punctuation.definition.template-expression | #cc0000 | — |
| punctuation.definition.parameters | #000000 | — |
| markup.underline.link | #000000 | — |
| keyword | #000000 | — |
| markup.italic | #0088cc | italic |
| variable.language.this | #ffe70a | — |
| constant.numeric | #000000 | — |
| support.constant.color | #0088cc | — |
| constant.language.dart | #000000 | — |
| string.key | #000000 | — |
| comment | #000000 | — |
| keyword.control | #000000 | — |
| constant.language.import-export-all | #0088cc | — |
| meta.brace.square | #000000 | — |
| meta.tag.attributes | #000000 | — |
| markup.bold | #000000 | bold |
| keyword.control.flow | #000000 | — |
| support.function | #000000 | — |
| entity.name.tag.reference | #000000 | — |
| constant.language.symbol | #000000 | — |
| invalid | #cc0000 | bold underline |
| comment.block.documentation | #000000 | — |
| markup.heading | #000000 | bold |
| support.class.component | #cc5c00 | — |
| markup.fenced_code | #000000 | — |
| meta.class | #cc5c00 | — |
| meta.brace.round | #000000 | — |
| support.type.vendored | #cc5c00 | — |
| punctuation.definition.typeparameters | #000000 | — |
| constant.language.undefined | #cc0000 | — |
| comment.line | #000000 | italic |
| variable.other | #000000 | — |
| keyword.control.import | #000000 | italic |
| entity.name.tag.yaml | #cc5c00 | — |
| entity.name.tag | #cc0000 | — |
| punctuation.accessor | #000000 | — |
| storage | #000000 | — |
| meta.object | #000000 | — |
| punctuation.definition.block | #000000 | — |
| keyword.operator | #000000 | — |
| markup.quote | #000000 | italic |
| meta.property-value.css | #10f95e | — |
| support.constant.font-name | #0088cc | — |
| meta.type.parameters | #ccb800 | — |
| variable.other.constant | #000000 | — |
| support.class | #cc5c00 | — |
| punctuation.definition.heading | #cc5c00 | — |
| keyword.other.unit | #000000 | — |
| meta.jsx.children | #000000 | — |
| constant.language.null | #cc0000 | — |
| constant.language.boolean.true | #00cc44 | underline bold |
| keyword.operator.logical | #000000 | — |
| entity.other.attribute-name | #0088cc | — |
| punctuation.definition.dictionary | #000000 | — |
| support.type.property-name | #000000 | — |
| variable | #000000 | — |
| punctuation.section | #000000 | — |
| meta.property-name.css | #10f95e | — |
| meta.selector | #10f95e | — |
| comment.single | #000000 | — |
| entity.name.type.module | #cc5c00 | — |
| string | #00cc44 | — |
| support.type.property-name.css | #000000 | — |
| punctuation.definition.tag | #000000 | — |
| punctuation.terminator | #000000 | — |
| meta.var.expr | #000000 | — |
| punctuation.definition.string | #00cc44 | — |
| entity.name.function | #0088cc | — |
| keyword.control.from | #000000 | italic |
| variable.language.super | #10f95e | italic |
| punctuation.definition.array | #000000 | — |
| support.constant.property-value | #0088cc | — |
| punctuation.definition.list | #cc0000 | — |
| entity.other.attribute-name.id | #cc5c00 | — |
| entity.other.attribute-name.class | #ccb800 | — |
| meta.structure.dictionary | #000000 | — |
| constant.language.boolean.false | #cc0000 | underline bold |
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}!`;
}