Stone Theme
Publisher: isfopoThemes in package: 1
An sunset dark theme
An sunset dark 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 |
|---|---|---|
| comment | #e2e2e366 | italic |
| constant | #FFFFFF | — |
| entity | #9ECEDC | bold |
| invalid | #FFFFFF | italic bold underline |
| keyword | #9ECEDC | — |
| markup | #E2E2E3 | — |
| storage | #BAEAF9 | — |
| string | #BBCCAB | italic |
| support | #E2E2E3 | — |
| variable | #D7E8C6 | bold |
| variable.other.constant | #BBCCAB | — |
| support.type | #9ECEDC | — |
| keyword.control.as | #C9C6BD | italic |
| keyword.operator.type.asserts, keyword.operator.expression.is | #9ECEDC | italic |
| entity.name.type | #9ECEDC | italic |
| comment.block.documentation | #e2e2e366 | — |
| string.quoted.docstring | #e2e2e366 | italic |
| comment.block.documentation storage | #ffffff66 | — |
| comment.block.documentation entity | #e2e2e366 | — |
| variable.other.jsdoc | #171e0066 | — |
| entity.name.type.cs | #CAD49F | italic |
| entity.name.type.class.cs | #CAD49F | bold |
| storage.modifier.public.cs | #9ECEDC | — |
| variable.language.this.cs | #CAD49F | italic |
| variable.other.object.property.cs | #9ECEDC | — |
| punctuation.separator.key-value.html | #CAD49F | — |
| meta.tag.structure.any.html, meta.tag.inline.any.html | #9ECEDC | — |
| constant.language.boolean | #D5E7C5 | — |
| keyword.control.flow | #D5E7C5 | bold |
| keyword.control.export | #BBCCAB | italic bold |
| keyword.control.import, keyword.control.from | #C9C6BD | — |
| keyword.operator | #C9C6BD | bold |
| storage.type.function | #FFFFFF | — |
| storage.type.function.arrow | #FFFFFF | — |
| string.template | #9ECEDC | — |
| meta.array.literal.ts | #BAEAF9 | — |
| variable.other.property.ts | #CAD49F | — |
| constant.language.null.ts | #E2E2E3 | — |
| constant.language.undefined.ts | #C9C6BD | — |
| support.type.property-name.json | #9ECEDC | bold |
| source.json string | #CAD49F | — |
| source.json punctuation.separator, source.json punctuation.definition.dictionary, source.json punctuation.definition.array | #9ecedce6 | — |
| meta.paragraph.markdown | #E2E2E3 | — |
| comment.block.html | #C9C6BD | — |
| entity.name.section.markdown | #FFFFFF | bold |
| punctuation.definition.heading.markdown | #FFFFFF | bold |
| markup.inline.raw.string.markdown | #D5E7C5 | — |
| punctuation.definition.raw.markdown | #D5E7C5 | — |
| markup.fenced_code.block.markdown | #d5e7c566 | — |
| meta.separator.markdown | #C9C6BD | — |
| meta.link.inline.markdown | #9ECEDC | — |
| markup.underline.link | #9ECEDC | italic |
| meta.link.inline.markdown punctuation.definition.string | #9ECEDC | — |
| constant.other.reference.link | #9ECEDC | — |
| meta.link.reference.def markup.underline.link | #9ECEDC | italic |
| meta.link.reference.def punctuation.definition.constant | #9ECEDC | — |
| punctuation.definition.list.begin | #FFFFFF | — |
| markup.bold.markdown | #171E00 | bold |
| markup.italic.markdown | #171E00 | italic |
| markup.italic.markdown punctuation.definition | #171E00 | italic |
| keyword.control.import.python | #9ECEDC | — |
| variable.language.special.self.python | #CAD49F | italic |
| variable.parameter.function.language.special.self.python | #CAD49F | italic |
| keyword.control.flow.python | #BBCCAB | |
| meta.attribute.python | #9ECEDC | italic |
| support.type.exception.python | #FFB3AF | bold |
| entity.name.type.class.python | #9ECEDC | bold |
| constant.other.caps.python | #BBCCAB | bold |
| support.class.component | #9ECEDC | bold |
| entity.name.tag | #9ECEDC | — |
| entity.other.attribute-name | #C1CC98 | italic |
| meta.tag.attributes.tsx | #E2E2E3 | — |
| punctuation.definition.tag | #9ECEDC | — |
| meta.jsx.children.tsx | #D7E8C6 | — |
| keyword.operator.assignment.tsx | #CAD49F | — |
| entity.name.tag.yaml | #9ECEDC | bold |
| source.yaml string | #CAD49F | — |
| source.yaml punctuation.separator, source.yaml punctuation.definition.sequence | #D5E7C5 | — |
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}!`;
}