Shannon's Entropy
Publisher: theamirmThemes in package: 4
Quiet dark theme with hints from Claude.
Quiet dark theme with hints from Claude.
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 | #596578 | italic |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.return, keyword.control.conditional, keyword.control.loop | #e08b6a | italic |
| keyword, storage.type, storage.modifier | #e08b6a | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement | #7a828f | — |
| keyword.other, keyword.other.debugger, keyword.other.unit, keyword.other.namespace, keyword.import | #e08b6a | — |
| punctuation.definition.template-expression, punctuation.section.embedded.begin, punctuation.section.embedded.end | #e08b6a | — |
| entity.name.function, support.function, entity.name.function.member, entity.name.function.declaration, meta.function-call | #7aa8d8 | — |
| entity.name.function.decorator, entity.name.function.macro, meta.decorator, punctuation.definition.decorator, support.type.attribute-name | #7aa8d8 | — |
| entity.name.type, entity.name.class, entity.name.type.class, entity.name.type.alias, entity.name.type.module, entity.name.type.enum, entity.name.type.struct, entity.name.namespace, entity.other.inherited-class, support.type, support.class | #e0b87a | — |
| entity.name.constant, variable.other.constant | #6dc1c1 | — |
| string, punctuation.definition.string, string.template, string.quoted | #6dc1c1 | — |
| string.regexp, string.regexp punctuation.definition.string | #6dc1c1 | — |
| constant.numeric, constant.language, constant.character, constant.other, constant.numeric.hex, constant.numeric.decimal, constant.numeric.binary, constant.numeric.octal, constant.other.color | #6dc1c1 | — |
| constant.character.escape, constant.character.numeric.escape, constant.language.boolean | #6dc1c1 | — |
| variable, support.variable, variable.other | #d1d7e0 | — |
| variable.language, variable.language.this, variable.language.super, variable.language.self | #e08b6a | italic |
| variable.parameter, variable.parameter.function.language, variable.parameter.function.js, meta.function.parameters variable.parameter | #9aa3af | — |
| variable.other.property, variable.other.object.property, variable.other.member, meta.object-literal.key, meta.objectmember, support.type.property-name, support.type.property-name.json, support.type.property-name.css, meta.property-name | #7aa8d8 | — |
| variable.object.property | #d1d7e0 | — |
| entity.name.tag | #e08b6a | — |
| entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #e0b87a | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, meta.brace, punctuation.bracket | #7a828f | — |
| punctuation.accessor, punctuation.separator.member, punctuation.separator.namespace | #4a5260 | — |
| meta.import, meta.export, meta.module | #d1d7e0 | — |
| markup.heading, markup.heading entity.name.section | #e06a43 | bold |
| markup.heading.1, markup.heading.1 entity.name.section | #e06a43 | bold |
| markup.heading.2, markup.heading.2 entity.name.section | #e08b6a | bold |
| markup.heading.3, markup.heading.4, markup.heading.5, markup.heading.6 | #e0b87a | bold |
| markup.bold | #e0b87a | bold |
| markup.italic | #e0b87a | italic |
| markup.underline | #7aa8d8 | underline |
| markup.underline.link, markup.underline.link.image, string.other.link, meta.link | #7aa8d8 | underline |
| markup.inserted, markup.inserted.git_gutter | #6dc1c1 | — |
| markup.deleted, markup.deleted.git_gutter | #c97a7e | — |
| markup.changed | #e0b87a | — |
| markup.quote | #9aa3af | italic |
| markup.raw, markup.inline.raw, markup.fenced_code, markup.fenced_code.block, markup.raw.block | #6dc1c1 | — |
| markup.list, markup.list.unnumbered, markup.list.numbered, markup.list punctuation.definition.list.begin | #e08b6a | — |
| markup.other | #d1d7e0 | — |
| source.json meta.structure.dictionary.json string.quoted.double.json, source.json meta.structure.dictionary.json string.quoted.single.json, source.json meta.structure.dictionary.json meta.structure.dictionary.key, source.json string.quoted.json | #7aa8d8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json | #6dc1c1 | — |
| meta.embedded, source.groovy.embedded, meta.directive.vue | #d1d7e0 | — |
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}!`;
}