Emberstone
Publisher: Emberstone themeThemes in package: 1
A vibrant, dark theme with warm accents to boost focus. Designed for those seeking a solid, lively environment that’s easy on the eyes.
A vibrant, dark theme with warm accents to boost focus. Designed for those seeking a solid, lively environment that’s easy on the eyes.
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, comment keyword, comment markup.underline.link, comment string, comment punctuation.definition, comment punctuation, comment text, string.quoted.docstring, string.quoted.docstring punctuation.definition, constant.numeric.line-number.find-in-files, entity.other.jinja2.delimiter, keyword.other.substitution, keyword.operator.heading.restructuredtext, keyword.operator.table.row.restructuredtext keyword.operator.table.data.restructuredtext, keyword.other.parenthesis.elm, meta.brackets entity.name.function.operator, punctuation.separator entity.name.function.operator, punctuation, punctuation.definition.tag, punctuation.definition.tag source, punctuation.definition.group.begin.ruby, punctuation.definition.group.end.ruby, punctuation.definition.group.begin.css, punctuation.definition.group.end.css, punctuation.definition.string.end.html source.css, punctuation.definition.block, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.separator.parameter, punctuation.accessor, punctuation.terminator, punctuation.definition.comment, markup.ignored, markup.ignored punctuation.definition.ignored, markup.untracked, meta.brace.round, meta.brace.square, meta.brace.curly, meta.delimiter.comma.js, meta.function-call.without-arguments.js, meta.function-call.method.without-arguments.js, support.constant.handlebars, support.function.delimiter.elm, source.scss, source.sass, source.git-show.author, source.git-show.date, source.git-diff.command, source.git-diff.command meta.diff.git-diff.header.from-file, source.git-diff.command meta.diff.git-diff.header.to-file, comment support, comment support.class | #a7a9a1 | italic |
| comment entity.name.type, constant.other.elm, entity.name.type.class.templated, entity.name.type.class.generic, entity.name.type.namespace, entity.name.function.preprocessor, entity.name.class, entity.other.inherited-class, entity.name.type, entity.name.type.class.reference, entity.name.type.class.value, entity.other.attribute-name, entity.other.attribute-name.pseudo-class.css, entity.other.pseudo-class.css, entity.other.pseudo-element.css, meta.type variable, meta.type variable.other.readwrite, support.type, entity.name.type.object.console, support.variable, support.variable.property, support.class, variable.other.class, meta.type_params.rust, storage.type, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.type.core.rust, storage.class.std.rust, string.other.link.description.title | #A8E7D2 | — |
| entity.name.function, entity.name, entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix.css, entity.other.attribute-name.parent-selector-suffix.css punctuation.definition.entity.css, entity.other.attribute-name.css, entity.other.animation-name.css, markup.underline.link, markup.inserted, markup.inserted punctuation.definition.inserted, meta.instance.constructor, meta.function-call.generic.python, support.function, string.other.ref, string.other.restructuredtext.ref, source.jinja2 variable.other.jinja2.block | #9BBA51 | — |
| comment storage.type, comment variable, comment variable.other, comment keyword, comment entity.name.tag, entity.name.tag.documentation, constant.other, comment.other.git-status.head, entity.name.operator.custom-literal, entity.name.namespace, punctuation.definition.group, punctuation.definition.variable, punctuation.definition.keyword.scss, punctuation.definition.entity.css, meta.attribute.rust, meta.annotation.rust, variable.language.rust, variable.annotation.rust, meta.annotation.rust string, meta.annotation.rust keyword, meta.annotation.rust keyword.operator, meta.attribute.rust string, source, source.json meta.mapping.key string, meta.object.member, variable.language, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.other.readwrite, variable.other.member, variable.other.property, variable.other.property.static, variable.other.event, source.git-show meta.diff.header.from-file, source.git-show meta.diff.header.to-file, support.type.vendor-prefix.css | #F8EDDC | — |
| comment keyword.codetag.notation, constant, constant.other.caps, constant.other.property, constant.other.citation.latex, constant.other.color, constant.other.character-class.escape, constant.other.key, constant.numeric, constant.language, constant.character.escape, entity.name.label, entity.name.constant, entity.other.git-status.hex, entity.name.operator.custom-literal.number, meta.attribute-with-value.id string, meta.attribute.id.html string, source.git-show meta.diff.git-diff.header.extended.index.from-sha, source.git-show meta.diff.git-diff.header.extended.index.to-sha, variable.language.arguments, variable.other.constant, variable.other.enummember, source.ruby variable.other.readwrite.instance.ruby, source.ruby variable.other.readwrite.class.ruby, meta.type variable, variable.language.arguments | #BE87DA | — |
| constant.other.placeholder.c, constant.other.symbol, constant.numeric.line-number.match.find-in-files, entity.name.section, entity.other.git-status.header.local, entity.name.operator.custom-literal.string, entity.other.attribute-name.id.css, meta.attribute-with-value.class string, meta.attribute.class.html string, meta.diff.git-diff.header, meta.property-list.css variable.other, markup.raw, markup.changed, markup.changed punctuation.definition.changed, punctuation.section.embedded, punctuation.section.embedded entity.name.tag, punctuation.section.embedded constant.other, punctuation.section.embedded source, punctuation.section.embedded.begin, string, source.jinja2 variable.other.jinja2 | #E7BB41 | — |
| comment.git-status.header.remote, entity.name.tag, entity.name.tag.js.jsx support.class.component.js.jsx, entity.name.tag support.class.component, source.vue support.class.component, entity.name.lifetime.rust, invalid, keyword, keyword.control, keyword.control.directive, keyword.operator, keyword.operator.member, keyword.operator.new, keyword.other.template.begin, keyword.other.template.end, keyword.control.rust, keyword.operator.misc.rust, keyword.declaration.class.ruby, keyword.declaration.function.ruby, keyword.declaration.namespace.ruby, markup.deleted, markup.deleted punctuation.definition.deleted, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end, storage, storage.type.extends, storage.type.function.arrow, storage.modifier, storage.type.modifier, storage.modifier.visibility.rust, storage.modifier.lifetime.rust, storage.modifier.const.rust, storage.modifier.dyn.rust, storage.modifier.mut.rust, storage.modifier.static.rust, storage.type.rust, storage.modifier.import.java, string.other.link.title, string.other.link.description, source.yaml meta.mapping.key string, punctuation.template-string.element.begin, punctuation.template-string.element.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, string.quoted.template punctuation.definition.string.begin, string.quoted.template punctuation.definition.string.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, source.git-show meta.diff.range.unified, string.other.git-status.remote | #E95057 | — |
| markup.underline, markup.bold, meta.paragraph.markdown meta.dummy.line-break, meta.paragraph.markdown meta.hard-line-break.markdown | — | italic |
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}!`;
}