Spacegrey Theme
Publisher: huodonThemes in package: 1
The spacegrey theme
The spacegrey 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 |
|---|---|---|
| punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison | #0025c0 | — |
| constant.other.character-class.regexp | #0025c0 | — |
| keyword.operator.quantifier.regexp | #005fc4 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #006618 | — |
| variable.parameter.function | #383f51 | — |
| entity.name.type | #006965 | |
| comment markup.link | #788da1 | — |
| markup.changed.diff | #003f8c | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #804666 | — |
| markup.inserted.diff | #006618 | — |
| markup.deleted.diff | #0025c0 | — |
| punctuation.separator.key-value | #383f51 | — |
| keyword.operator.expression.import | #804666 | — |
| support.constant.math | #003f8c | — |
| support.constant.property.math | #005fc4 | — |
| variable.other.constant | #003f8c | |
| keyword.operator.logical | #227d92 | — |
| keyword.operator.bitwise | #227d92 | — |
| keyword.operator.channel | #227d92 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #005fc4 | — |
| keyword.operator.css,keyword.operator.scss | #227d92 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #005fc4 | — |
| punctuation.separator.list.comma.css | #383f51 | — |
| support.constant.color.w3c-standard-color-name.css | #005fc4 | — |
| support.type.vendored.property-name.css | #227d92 | — |
| support.module.node,support.type.object.module,support.module.node | #003f8c | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #2f5591 | |
| support.constant.json | #005fc4 | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #2400e2 | — |
| support.type.object.console | #0025c0 | — |
| support.variable.property.process | #005fc4 | — |
| entity.name.function,support.function.console | #804666 | — |
| keyword.operator.misc.rust | #383f51 | — |
| keyword.operator.sigil.rust | #2400e2 | — |
| keyword.operator.delete | #2400e2 | — |
| support.type.object.dom | #227d92 | — |
| support.variable.dom,support.variable.property.dom | #0025c0 | — |
| keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational | #227d92 | — |
| punctuation.separator.delimiter | #383f51 | — |
| keyword.operator | #383f51 | — |
| keyword.operator.assignment.compound | #2400e2 | — |
| keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts | #227d92 | — |
| keyword | #2400e2 | — |
| entity.name.namespace | #003f8c | — |
| variable | #0025c0 | — |
| variable.c | #383f51 | — |
| variable.language | #003f8c | — |
| token.package.keyword | #2400e2 | — |
| token.package | #383f51 | — |
| entity.name.function, meta.definition.function | #4155C4 | bold |
| entity.name.function, meta.function-call | #3508AE | |
| entity.name.class.identifier.namespace.type | #003f8c | — |
| entity.name.class, variable.other.class | #003f8c | — |
| keyword.control | #2400e2 | |
| keyword.other.special-method | #804666 | — |
| storage | #2400e2 | |
| storage.modifier | #2400e2 | |
| token.storage | #2400e2 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #2400e2 | — |
| support.function | #227d92 | — |
| support.type.property-name | #383f51 | — |
| support.constant.property-value | #383f51 | — |
| support.constant.font-name | #005fc4 | — |
| meta.tag | #804245 | — |
| punctuation.definition.tag | #7f89a3 | |
| string | #006618 | — |
| entity.other.inherited-class | #003f8c | — |
| constant.other.symbol | #227d92 | — |
| constant.numeric | #005fc4 | — |
| constant | #005fc4 | — |
| punctuation.definition.constant | #005fc4 | — |
| entity.name.tag | #8A3A55 | — |
| meta.jsx.children | #1c2436 | — |
| entity.other.attribute-name | ##2f5591 | — |
| meta.selector | #2400e2 | — |
| markup.heading | #0025c0 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #804666 | — |
| keyword.other.unit | #0025c0 | — |
| markup.bold,todo.bold | #005fc4 | — |
| punctuation.definition.bold | #003f8c | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #2400e2 | — |
| emphasis md | #2400e2 | — |
| entity.name.section.markdown | #0025c0 | — |
| punctuation.definition.heading.markdown | #0025c0 | — |
| punctuation.definition.list.begin.markdown | #0025c0 | — |
| markup.heading.setext | #383f51 | — |
| punctuation.definition.bold.markdown | #005fc4 | — |
| markup.inline.raw.markdown | #006618 | — |
| markup.inline.raw.string.markdown | #006618 | — |
| punctuation.definition.list.markdown | #0025c0 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #0025c0 | — |
| beginning.punctuation.definition.list.markdown | #0025c0 | — |
| punctuation.definition.metadata.markdown | #0025c0 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #2400e2 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #804666 | — |
| string.regexp | #227d92 | — |
| constant.character.escape | #227d92 | — |
| punctuation.section.embedded, variable.interpolation | #0025c0 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #2400e2 | — |
| invalid.illegal | red | — |
| invalid.illegal.bad-ampersand.html | #383f51 | — |
| invalid.broken | #FFCCCC | — |
| invalid.deprecated | #8594A8 | — |
| invalid.unimplemented | #003F8C | — |
| string.quoted | 006618 | |
| source.json meta.structure.dictionary.json > string.quoted.json | #0025c0 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #0025c0 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #006618 | — |
| constant.language.boolean | #2400E2 | |
| constant.numeric.decimal | #1F589F | |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #227d92 | — |
| support.type.property-name.json | #0025c0 | — |
| support.type.property-name.json punctuation | #0025c0 | — |
| function.parameter | #383f51 | — |
| function.brace | #383f51 | — |
| rgb-value | #227d92 | — |
| inline-color-decoration rgb-value | #005fc4 | — |
| selector.sass | #0025c0 | — |
| support.type.primitive,support.type.builtin | #2400E2 | — |
| block.scope.end,block.scope.begin | #383f51 | — |
| token.info-token | #804666 | — |
| token.warn-token | #005fc4 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #2400e2 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #2400e2 | — |
| meta.template.expression | #383f51 | — |
| keyword.operator | #2400e2 | |
| meta.property.object | #0025c0 | — |
| variable | #2f5591 | |
| variable.parameter.function.js | #0025c0 | — |
| keyword.other.template.begin | #006618 | — |
| keyword.other.template.end | #006618 | — |
| keyword.other.substitution.begin | #006618 | — |
| keyword.other.substitution.end | #006618 | — |
| keyword.operator.assignment | #161F39 | — |
| punctuation.quasi.element | #2400e2 | — |
| constant.character.entity | #0025c0 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #227d92 | — |
| source.ini | #006618 | — |
| meta.scope.prerequisites.makefile | #0025c0 | — |
| source.makefile | #003f8c | — |
| text.variable, text.bracketed | #0025c0 | — |
| support.type.swift, support.type.vb.asp | #003f8c | — |
| entity.name.function.xi | #003f8c | — |
| entity.name.class.xi | #227d92 | — |
| constant.character.character-class.regexp.xi | #0025c0 | — |
| constant.regexp.xi | #2400e2 | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #0025c0 | — |
| meta.brace.square | #383f51 | — |
| comment, punctuation.definition.comment | #788da1 | italic |
| markup.quote.markdown | #788da1 | — |
| punctuation.definition.block.sequence.item.yaml | #383f51 | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| markup.italic.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}!`;
}