Deep Space
Publisher: twopillThemes in package: 1
The coolest theme you've ever seen!
The coolest theme you've ever seen!
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, source.python | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #76cf22 | — |
| constant.language | #569cd6 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #569cd6 | — |
| entity.name.tag.css | #d7ba7d | — |
| entity.other.attribute-name | #9cdcfe | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #d7ba7d | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #569cd6 | bold |
| markup.heading | #569cd6 | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #569cd6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #ce9178 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569cd6 | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.diff.header | #569cd6 | — |
| storage | #569cd6 | — |
| storage.type | #569cd6 | — |
| storage.modifier, keyword.operator.noexcept | #569cd6 | — |
| string, meta.embedded.assembly | #ce9178 | — |
| string.tag | #ce9178 | — |
| string.value | #ce9178 | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569cd6 | — |
| meta.template.expression | #d4d4d4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #9cdcfe | — |
| keyword | #569cd6 | — |
| keyword.control | #569cd6 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, keyword.type | #569cd6 | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569cd6 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #569cd6 | — |
| variable.other.readwrite.alias , meta.object-literal.key , variable.object.property , variable.other.readwrite , entity.name.variable | #68d7fc | — |
| keyword.control.from , keyword.control.import , keyword.import.go | #b361a9 | |
| support.type.primitive, entity.name.type, support.type.builtin, support.type, storage.type.built-in.primitive | #00da86 | |
| entity.name.function, entity.name.function | #DCDCAA | |
| keyword.control.conditional , keyword.control.trycatch , keyword.control.flow | #C586C0 | |
| variable.other.constant , variable.other.constant.object , variable.parameter , variable.parameter.js, variable.other.object.property , variable.other.object , support.type.property-name.css, variable.other.object.property.js | #4FC1FF | |
| entity.other.attribute-name.html, variable.scss | #8EF9F3 | |
| variable.other.property , variable.other.object.property , variable.other.assignment.go, variable.other.assignment.go, source.go, variable.other.object.js, variable.other.constant.js, variable.other.property.js, variable.other.readwrite.js, entity.name.function.preprocessor.cpp | #8EF9F3 | |
| support.function , entity.name.function , entity.other.attribute-name.class.css, entity.name.tag.css, entity.other.attribute-name.pseudo-element.css, entity.name.function.scss, support.function, entity.name.function, support.class.builtin, entity.name.namespace | #ffe343 | |
| support.variable.property | #4671ff | |
| string.quoted.single , string.quoted.double , string.quoted.double.html, string.quoted.single.html, meta.attribute-selector.scss, support.constant.property-value.css, support.function.misc.scss, support.constant.font-name.css, constant.other.color.rgb-value.hex.css, source.ignore | #c48a81 | |
| punctuation.definition.block | #dadada | |
| entity.other.ng-binding-name.event.html | #ffbb00 | — |
| entity.name.type.class , entity.other.inherited-class , entity.other.attribute-name.scss | #00da86 | |
| constant.numeric.decimal , constant.numeric.css | #92d170 | — |
| keyword.control.at-rule.keyframes.scss, keyword.control.at-rule.media.scss, keyword.control.at-rule.import.scss | #ac79ff | italic |
| support.constant.json | #ac79ff | bold |
| constant.character.other, constant.other.property , variable.other.constant.property, support.constant.media | #9cd8f8 | — |
| keyword.operator.ternary | #C586C0 | — |
| keyword.operator.logical | #ffda0a | — |
| keyword.control.export, support.type.object.module | #C586C0 | — |
| support.function.misc.scss | #f7f302 | — |
| variable.other.enummember, entity.name.type.enum | #31f51f | — |
| entity.name.type.interface, support.class | #f51fe3 | — |
| storage.type.interface | #b702ff | — |
| storage.type.enum | #74f590 | — |
| meta.property-value | #FFE343 | — |
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}!`;
}