Material Stone Themes
Publisher: te6Themes in package: 2
Warm-stone dark/light themes. High contrast by default.
Warm-stone dark/light themes. High contrast by default.
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 |
|---|---|---|
| markup.underline | — | underline |
| variable.parameter | — | italic |
| support.type.property-name.css | #42575F | — |
| constant.other.symbol, meta.tag, punctuation, template.expression.begin, template.expression.end, text.html.markdown beginning.punctuation.definition.list | #726861 | — |
| markup.bold | #93252A | bold |
| markup.bold markup.italic, markup.italic markup.bold | #93252A | italic bold |
| constant.language, entity.name.section.group-title.ini, keyword, markup.heading, modifier, support.type.object, variable.language.this | #325F77 | — |
| markup.italic, support.module, support.node, variable.parameter.function.language.special.self.python | #93252A | italic |
| constant.keyword, keyword.control, markup.quote | #325F77 | italic |
| SXNested, constant.character.escape, markup.fenced_code.block, meta.definition.variable entity.name.function, meta.embedded, meta.function-call.arguments, meta.jsx.children, meta.template.expression, punctuation.definition.entity.html, source.cpp meta.block variable.other, source.cs entity.name.type.namespace, source.groovy.embedded, source.php meta.use support.class, source.php support.other.namespace, support.constant, support.variable, text.html constant.character.entity.named, variable | #1B1918 | — |
| constant.other.key, entity.name, entity.other, entity.other.attribute-name.class, meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, meta.use, source.cs meta.class.identifier storage.type, source.cs meta.method.return-type, source.cs storage.type, source.css entity.name.tag, support.class, support.type | #9B6E19 | — |
| constant.character.format.placeholder.other.python, constant.numeric, entity.other.attribute-name.id, keyword.other, 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 | #983C1F | — |
| constant.other.placeholder, entity.name.tag, keyword.other.definition.ini, markup.deleted, meta.block, meta.definition.method entity.name.function, meta.field.declaration entity.name.function, meta.link.reference, meta.object-literal.key, meta.object-literal.key string, 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, source.cs meta.method.identifier entity.name.function, source.python meta.member.access.python, support.type.property-name.json, text.html.markdown meta.link.inline, variable.object.property | #93252A | — |
| 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 | #9A7C6A | — |
| entity.name.function, meta.function entity.name.function, meta.function-call.arguments, 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, source.cs entity.name.function, source.cs meta.method-call meta.method, source.python meta.function-call.python, support.function | #1D3F89 | — |
| constant.language.boolean, 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, punctuation.definition.quote | #791B28 | — |
| entity.other.attribute-name, 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, meta.structure.dictionary.json support.type.property-name.json, storage.control, storage.modifier, storage.type | #493687 | — |
| markup.fenced_code.block.markdown punctuation.definition.markdown, markup.inline.raw.string.markdown, markup.inserted, 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, string | #627F2F | — |
| source.cs meta.preprocessor | #A4968E | — |
| comment, comment punctuation.definition.comment, punctuation.definition.comment, string.quoted.docstring | #796961 | italic |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}