Stillroom
Publisher: Brendon WarwickThemes in package: 1
A theme inspired by natural dyes and warm stone. Calibrated for a grounding developer experience.
A theme inspired by natural dyes and warm stone. Calibrated for a grounding developer experience.
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 | #6d6864 | — |
| keyword.codetag.notation, comment keyword.codetag | #c8716a | bold |
| variable, meta.variable, string constant.other.placeholder, variable.other.readwrite, variable.other.object, variable.other.object.property, variable.other.property | #c8c1a5 | — |
| variable.language.self, variable.language.special.self, variable.language.this, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #b3ab92 | — |
| variable.parameter, meta.function.parameters variable | #c8c1a5 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.loop, keyword.control.conditional, keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.return, keyword.control.yield, keyword.control.async, keyword.other | #c1bb7f | — |
| storage, storage.type, storage.modifier, storage.type.function, storage.type.class | #c1bb7f | — |
| keyword.operator.logical, keyword.operator.word | #c1bb7f | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement, keyword.operator.ternary, keyword.operator.spread, keyword.operator.arrow | #807b77 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor, meta.brace | #807b77 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, meta.type.annotation, meta.type entity.name, support.type.python, support.type.primitive, support.type.builtin.python, support.class.python, support.class.builtin.python, support.class.typing.python, support.class.collections.python, support.class.collections.abc.python, meta.generic.python entity.name.type, meta.subscript.python support.class, meta.function-call.generic.python support.class | #b89aac | — |
| entity.name.function, meta.function entity.name.function, support.function | #7d95b3 | — |
| meta.function-call entity.name.function, meta.function-call.generic.python, variable.function | #7d95b3 | — |
| entity.name.function.method, meta.method-call entity.name.function, meta.method entity.name.function | #7d95b3 | — |
| support.function.builtin, support.function.builtin.python | #7d95b3 | — |
| meta.decorator, meta.decorator punctuation.decorator, entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator variable.other, punctuation.decorator | #8ba5aa | — |
| support.function.magic.python, support.variable.magic.python, support.variable.magic, variable.language.special.python, variable.language.builtin.python | #8ba5aa | — |
| meta.import.python, entity.name.namespace, support.module, meta.import.python entity.name, meta.import entity.name, meta.import.python entity.name.namespace, meta.import.python entity.name.type, meta.import.python entity.name.class, meta.import.python support.class, meta.import.python support.function, meta.import.python support.type, meta.import.python support.other.namespace, meta.import.python variable, meta.import.python variable.other, meta.import.python variable.other.readwrite, meta.import.python variable.other.object, meta.import.python variable.other.object.property, meta.import.python variable.other.property | #cec4af | — |
| string, string.quoted, string.template, punctuation.definition.string | #9cb37e | — |
| constant.character.escape, string constant.character.escape | #c29070 | — |
| punctuation.section.embedded, punctuation.definition.template-expression, meta.embedded.line.python punctuation.section, meta.fstring.python punctuation.section | #8ba5aa | — |
| string.quoted.docstring, string.quoted.docstring.multi, string.quoted.docstring.multi.python, string.quoted.docstring.python, string.quoted.docstring punctuation.definition.string, string.quoted.docstring.multi punctuation.definition.string, string.quoted.docstring.multi.python punctuation.definition.string, string.quoted.docstring.python punctuation.definition.string, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python, string.quoted.docstring.python punctuation.definition.string.begin, string.quoted.docstring.python punctuation.definition.string.end, string.quoted.docstring.python punctuation.definition.string.begin.python, string.quoted.docstring.python punctuation.definition.string.end.python | #6d6864 | — |
| meta.embedded.line, meta.template.expression | #d2ceb9 | — |
| string.regexp, string.regex | #9cb37e | — |
| string.regexp constant.character, string.regexp constant.other, string.regexp keyword.other, string.regexp keyword.operator | #c29070 | — |
| constant.numeric | #c29070 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.none | #c29070 | — |
| support.constant, variable.other.constant | #c29070 | — |
| constant.other.ellipsis, constant.other.ellipsis.python, constant.language.ellipsis, constant.language.ellipsis.python, keyword.other.ellipsis, punctuation.separator.ellipsis | #807b77 | — |
| support.type.exception, entity.name.type.exception, support.class.exception.python, keyword.control.exception, keyword.control.trycatch | #c8716a | — |
| invalid, invalid.illegal | #c8716a | — |
| invalid.deprecated | #c29070 | strikethrough |
| markup.heading.1, markup.heading.1.markdown, markup.heading.setext.1.markdown, heading.1.markdown | #c8716a | bold |
| markup.heading.2, markup.heading.2.markdown, markup.heading.setext.2.markdown, heading.2.markdown | #c29070 | bold |
| markup.heading.3, markup.heading.3.markdown, heading.3.markdown | #c1bb7f | bold |
| markup.heading.4, markup.heading.4.markdown, heading.4.markdown | #9cb37e | bold |
| markup.heading.5, markup.heading.5.markdown, heading.5.markdown | #7d95b3 | bold |
| markup.heading.6, markup.heading.6.markdown, heading.6.markdown | #b89aac | bold |
| punctuation.definition.heading, punctuation.definition.heading.markdown | #807b77 | — |
| markup.bold | #b3ab92 | bold |
| markup.italic | #d2ceb9 | — |
| markup.underline.link, string.other.link | #7d95b3 | underline |
| markup.quote | #bcb4b0 | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #9cb37e | — |
| markup.list, punctuation.definition.list | #d4cec8 | — |
| markup.inserted, meta.diff.header.to-file | #9cb37e | — |
| markup.deleted, meta.diff.header.from-file | #c8716a | — |
| markup.changed | #7d95b3 | — |
| support.type.property-name, meta.object-literal.key, entity.name.tag.yaml, meta.mapping.key | #7d95b3 | — |
| variable.key.table.toml, variable.other.key.toml, entity.name.table.toml, entity.name.section.toml, entity.other.attribute-name.table.toml, entity.other.attribute-name.toml, support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml, keyword.key.toml, meta.tag.toml, meta.entry.toml support.type.property-name, meta.entry.toml entity.name, meta.array.table.toml support.type.property-name, meta.array.table.toml entity.name, meta.table.toml entity.name, meta.table.toml support.type.property-name | #7d95b3 | — |
| variable.declaration.terraform, variable.declaration.hcl, variable.other.declaration.terraform, variable.other.declaration.hcl, variable.other.assignment.terraform, variable.other.assignment.hcl, variable.other.readwrite.terraform, meta.mapping.key.terraform, meta.mapping.key.hcl, meta.attribute.terraform variable.other, entity.name.variable.terraform, support.type.property-name.terraform, support.type.property-name.hcl | #7d95b3 | — |
| entity.name.tag, meta.tag entity.name.tag, punctuation.definition.tag | #c1bb7f | — |
| entity.other.attribute-name | #b3ab92 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #c1bb7f | — |
| support.type.property-name.css, meta.property-name.css | #7d95b3 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.hex.css | #c29070 | — |
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}!`;
}