Berserk Theme
Publisher: PaloKIDThemes in package: 1
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 |
|---|---|---|
| #d9dae2 | — | |
| string | #8fc778 | — |
| punctuation, constant.other.symbol | #32c3fc | — |
| constant.character.escape, text.html constant.character.entity.named | #d9dae2 | — |
| constant.language.boolean | #ff9cac | — |
| constant.numeric | #ee8f73 | — |
| variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments | #d9dae2 | — |
| keyword.other | #ee8f73 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #32c3fc | — |
| entity.name.function, support.function | #548ec5 | — |
| storage.type, storage.modifier, storage.control | #8777e2 | — |
| support.module, support.node | #e75e65 | italic |
| support.type, constant.other.key | #e2bc52 | — |
| entity.name.type, entity.other.inherited-class, entity.other | #e2bc52 | — |
| comment | #61667e | italic |
| comment punctuation.definition.comment, string.quoted.docstring | #61667e | italic |
| punctuation | #32c3fc | — |
| entity.name, entity.name.type.class, support.type, support.class, meta.use | #e2bc52 | — |
| variable.object.property, meta.field.declaration entity.name.function | #e75e65 | — |
| meta.definition.method entity.name.function | #e75e65 | — |
| meta.function entity.name.function | #548ec5 | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #32c3fc | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #d9dae2 | — |
| entity.name.tag.yaml | #e75e65 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #e75e65 | — |
| constant.language.json | #32c3fc | — |
| entity.other.attribute-name.class | #e2bc52 | — |
| entity.other.attribute-name.id | #ee8f73 | — |
| source.css entity.name.tag | #e2bc52 | — |
| support.type.property-name.css | #5cb4b4 | — |
| meta.tag, punctuation.definition.tag | #32c3fc | — |
| entity.name.tag | #e75e65 | — |
| entity.other.attribute-name | #8777e2 | — |
| punctuation.definition.entity.html | #d9dae2 | — |
| markup.heading | #32c3fc | — |
| text.html.markdown meta.link.inline, meta.link.reference | #e75e65 | — |
| text.html.markdown beginning.punctuation.definition.list | #32c3fc | — |
| markup.italic | #e75e65 | italic |
| markup.bold | #e75e65 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #e75e65 | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #8fc778 | — |
| markup.inline.raw.string.markdown | #8fc778 | — |
| keyword.other.definition.ini | #e75e65 | — |
| entity.name.section.group-title.ini | #32c3fc | — |
| source.cs meta.class.identifier storage.type | #e2bc52 | — |
| source.cs meta.method.identifier entity.name.function | #e75e65 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #548ec5 | — |
| source.cs storage.type | #e2bc52 | — |
| source.cs meta.method.return-type | #e2bc52 | — |
| source.cs meta.preprocessor | #61667e | — |
| source.cs entity.name.type.namespace | #d9dae2 | — |
| meta.jsx.children, SXNested | #d9dae2 | — |
| support.class.component | #e2bc52 | — |
| source.cpp meta.block variable.other | #d9dae2 | — |
| source.python meta.member.access.python | #e75e65 | — |
| source.python meta.function-call.python, meta.function-call.arguments | #548ec5 | — |
| meta.block | #e75e65 | — |
| entity.name.function.call | #548ec5 | — |
| source.php support.other.namespace, source.php meta.use support.class | #d9dae2 | — |
| constant.keyword | #32c3fc | italic |
| entity.name.function | #548ec5 | — |
| markup.deleted | #e75e65 | — |
| markup.inserted | #8fc778 | — |
| markup.underline | — | underline |
| keyword.control | #32c3fc | italic |
| markup.quote | #32c3fc | italic |
| markup.fenced_code.block | #d9dae290 | — |
| punctuation.definition.quote | #ff9cac | — |
| meta.structure.dictionary.json support.type.property-name.json | #8777e2 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e2bc52 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ee8f73 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e75e65 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #916b53 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #548ec5 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ff9cac | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #8777e2 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #8fc778 | — |
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}!`;
}