Sable Signal
Publisher: PenryThemes in package: 1
A neutral-black VS Code theme with gold accents and expressive italic syntax.
A neutral-black VS Code theme with gold accents and expressive italic syntax.
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 |
|---|---|---|
| source, text | #D9DDE2 | — |
| comment, punctuation.definition.comment | #4B5058 | italic |
| keyword, keyword.control, constant.language | #76C7E6 | italic |
| storage.type, storage.modifier, storage.control | #B695D6 | italic |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison, punctuation.separator, punctuation.accessor | #76C7E6 | — |
| string, string.quoted, string.template | #A8CF7A | — |
| punctuation.definition.string, punctuation.definition.template-expression | #91B968 | — |
| constant.numeric, constant.character, constant.other | #E28768 | — |
| entity.name.function, support.function, meta.function-call generic.function-support | #78A6E8 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class | #FFCC66 | — |
| variable.parameter, meta.parameters variable | #D9DDE2 | italic |
| variable, variable.other.readwrite | #D9DDE2 | — |
| variable.other.property, variable.object.property, support.type.property-name, meta.object-literal.key, source.python meta.member.access.python, source.python meta.attribute.python | #E27376 | — |
| source.python meta.function-call.python, source.python meta.function-call.python entity.name.function, source.python meta.function-call.python support.function | #78A6E8 | — |
| variable.language, variable.language.this, variable.language.self | #AEB7C2 | italic |
| punctuation.decorator, punctuation.definition.decorator | #76C7E6 | italic |
| entity.name.tag, meta.tag.sgml | #E27376 | — |
| entity.other.attribute-name | #FFCC66 | italic |
| string.regexp, constant.regexp | #76C7E6 | — |
| constant.character.escape, constant.character.entity | #FFCC66 | — |
| invalid, invalid.illegal, invalid.deprecated | #F56174 | italic underline |
| storage.type.function.python, storage.type.class.python | #B695D6 | italic |
| support.function.builtin.python | #78A6E8 | — |
| support.type.python | #FFCC66 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #AEB7C2 | italic |
| support.type.property-name.json, support.type.property-name.yaml, entity.name.tag.yaml | #E27376 | — |
| entity.name.section.markdown, markup.heading, punctuation.definition.heading.markdown | #FFCC66 | bold |
| markup.bold, punctuation.definition.bold.markdown | #FF9473 | bold |
| markup.italic, punctuation.definition.italic.markdown | #B695D6 | italic |
| markup.inline.raw, markup.fenced_code.block | #A8CF7A | — |
| markup.underline.link, string.other.link | #78A6E8 | underline |
| markup.inserted | #A8CF7A | — |
| markup.deleted | #F56174 | — |
| markup.changed | #FFCC66 | — |
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}!`;
}