Crucible Theme
Publisher: LorcerothThemes in package: 1
A soft and dark bluish theme based on Sapphire
A soft and dark bluish theme based on Sapphire
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 |
|---|---|---|
| — | #efefefff | — |
| string | #DA6771 | — |
| constant.language.boolean | #399EF4 | — |
| constant.numeric | #e5949b | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #9fcff9 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #399EF4 | — |
| entity.name.function, support.function | #fff099 | — |
| storage.type, storage.modifier | #399EF4 | — |
| support.module, support.node | #9fcff9 | italic |
| support.type | #4EB071 | — |
| entity.name.type, entity.other.inherited-class | #4EB071 | — |
| comment | #535a6b | italic |
| entity.name.type.class | #21C5C7 | underline |
| variable.object.property | #21C5C7 | — |
| meta.definition.method entity.name.function | #21C5C7 | — |
| meta.function entity.name.function | #21C5C7 | — |
| template.expression.begin, template.expression.end | #399EF4 | — |
| entity.name.tag.yaml | #9fcff9 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #9fcff9 | — |
| constant.language.json | #399EF4 | — |
| entity.other.attribute-name.class | #399EF4 | — |
| entity.other.attribute-name.id | #DA6771 | — |
| source.css entity.name.tag | #21C5C7 | — |
| meta.tag, punctuation.definition.tag | #399EF4 | — |
| entity.name.tag | #9fcff9 | — |
| entity.other.attribute-name | #fff099 | — |
| markup.heading | #399EF4 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #9fcff9 | — |
| text.html.markdown markup.quote | #c0c0c0 | — |
| text.html.markdown beginning.punctuation.definition.list | #399EF4 | — |
| markup.italic | #9fcff9 | italic |
| markup.bold | #9fcff9 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #9fcff9 | italic bold |
| keyword.other.definition.ini | #9fcff9 | — |
| entity.name.section.group-title.ini | #399EF4 | — |
| source.cs meta.class.identifier storage.type | #21C5C7 | underline |
| source.cs meta.method.identifier entity.name.function | #21C5C7 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #fff099 | — |
| source.cs storage.type | #4EB071 | — |
| source.cs meta.method.return-type | #4EB071 | — |
| source.cs meta.preprocessor | #535a6b | — |
| source.cs entity.name.type.namespace | #efefef | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| support.module, support.node | #9fcff9 | |
| comment | #56658b | |
| entity.name.type.class | #f7e1a5 | |
| source.cs meta.class.identifier storage.type | #21C5C7 | bold |
| source.cs storage.type | #aed0ec | — |
| source.cs meta.method.return-type | #aed0ec | — |
| support.type | #aed0ec | — |
| entity.name.type, entity.other.inherited-class | #aed0ec | — |
| entity.name.type, entity.other.inherited-class | #f7e1a5 | — |
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}!`;
}