SpaceX Terrafab Theme
Publisher: Alexander ZeitlerThemes in package: 1
Dark color theme based on the SpaceX Terrafab: near-black violet background, light blue-grey foreground, cool accents in ice blue, cyan and lilac
Dark color theme based on the SpaceX Terrafab: near-black violet background, light blue-grey foreground, cool accents in ice blue, cyan and lilac
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 | #66656b | italic |
| variable, string constant.other.placeholder | #D7DBE9 | — |
| variable.parameter, entity.name.variable.parameter, meta.function.parameter | #bad8ff | italic |
| variable.other.property, variable.other.object.property | #bad8ff | — |
| variable.other.constant | #bcfbff | — |
| variable.other.enummember | #ab9cb6 | — |
| invalid, invalid.illegal | #9c8ba9 | strikethrough |
| invalid.deprecated | #c4f6ff | strikethrough |
| keyword, storage.type.class, storage.type.function | #c1b6ee | — |
| storage.modifier | #c4f6ff | — |
| keyword.control, keyword.control.flow | #c1b6ee | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #757b9d | — |
| keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.comparison | #898fb9 | — |
| punctuation.accessor, punctuation.separator.key-value | #898fb9 | — |
| storage.type, entity.name.type | #c4f6ff | — |
| storage.type.primitive, support.type | #D7DBE9 | — |
| entity.name.type.class, support.class, entity.other.inherited-class | #c4f6ff | — |
| entity.name.type.interface | #c4f6ff | — |
| entity.name.type.enum | #c4f6ff | — |
| entity.name.type.parameter | #c4f6ff | italic |
| entity.name.namespace, entity.name.type.module | #757b9d | — |
| entity.name.function, meta.function-call.generic | #757b9d | — |
| support.function | #bad8ff | — |
| entity.name.function.method, meta.method.declaration | #757b9d | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator | #bad8ff | italic |
| punctuation, meta.brace, meta.bracket | #a1a4af | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #ab9cb6 | — |
| constant.language.boolean | #ab9cb6 | — |
| constant.language, constant.language.null, constant.language.undefined | #bad8ff | — |
| constant.character | #a1c4e4 | — |
| constant.character.escape | #c1b6ee | — |
| string, string.quoted, string.template | #a1c4e4 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded.line | #898fb9 | — |
| string.regexp, constant.other.character-class.regexp, constant.character.escape.regexp | #caf0ff | — |
| support.type.property-name, support.constant | #bad8ff | — |
| entity.name.tag, meta.tag | #c4f6ff | — |
| entity.other.attribute-name | #D7DBE9 | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #bad8ff | — |
| support.constant.property-value.css, meta.property-value.css | #D7DBE9 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #c4f6ff | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #bad8ff | italic |
| keyword.other.unit.css | #ab9cb6 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #ab9cb6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c4f6ff | — |
| source.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 | #757b9d | — |
| source.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 | #c1b6ee | — |
| source.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 | #bad8ff | — |
| source.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 | #a1c4e4 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #757b9d | bold |
| markup.bold, punctuation.definition.bold.markdown | #D7DBE9 | bold |
| markup.italic, punctuation.definition.italic.markdown | #D7DBE9 | italic |
| markup.underline.link, string.other.link.title.markdown, string.other.link.description.markdown | #757b9d | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #a1c4e4 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #66656b | italic |
| punctuation.definition.list.begin.markdown, markup.list.numbered, markup.list.unnumbered | #bad8ff | — |
| markup.inserted, punctuation.definition.inserted | #a1c4e4 | — |
| markup.deleted, punctuation.definition.deleted | #9c8ba9 | — |
| markup.changed, punctuation.definition.changed | #ab9cb6 | — |
| variable.language.this, variable.language.self, variable.language.special.self | #D7DBE9 | italic |
| meta.object-literal.key, string.unquoted.label.js | #D7DBE9 | — |
| entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #bad8ff | italic |
| entity.name.function.macro.rust, support.function.macro.rust | #bad8ff | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell | #D7DBE9 | — |
| entity.name.command.shell | #757b9d | — |
| support.function.builtin.shell | #bad8ff | — |
| entity.name.tag.yaml | #bad8ff | — |
| keyword.key.toml, support.type.property-name.toml | #bad8ff | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #c4f6ff | — |
| entity.name.section.group-title.ini, punctuation.definition.entity.ini | #c4f6ff | — |
| keyword.other.definition.ini | #bad8ff | — |
| entity.name.function.target.makefile | #757b9d | — |
| variable.other.makefile | #D7DBE9 | — |
| entity.name.package.go | #757b9d | — |
| variable.parameter.function.language.special.self.python | #D7DBE9 | italic |
| support.function.magic.python, support.variable.magic.python | #bad8ff | italic |
| variable.other.php, punctuation.definition.variable.php | #D7DBE9 | — |
| meta.preprocessor.c, meta.preprocessor.include.c, keyword.control.directive.include.c | #bad8ff | — |
| meta.attribute.csharp, entity.name.type.attribute.csharp | #bad8ff | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #c1b6ee | — |
| support.type.graphql, entity.name.type.graphql | #c4f6ff | — |
| variable.graphql, variable.other.graphql | #D7DBE9 | — |
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}!`;
}