Milky Way Theme
Publisher: Roy NadielThemes in package: 1
A dark theme inspired by the cosmic beauty of the Milky Way
A dark theme inspired by the cosmic beauty of the Milky Way
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 | #888888 | italic |
| entity.name.type, support.type.primitive | #ff7b7b | bold |
| identifier | #c9a078 | — |
| support.function.console.log | #222222 | — |
| support.function.transform | #75a0ff | — |
| punctuation.definition.comment | #888888 | italic |
| variable | #ffffff | — |
| string constant.other.placeholder | #ffffff | — |
| punctuation.section.parens.begin | #ffffff | — |
| punctuation.section.parens.end | #ffffff | — |
| punctuation.section.braces.begin | #ffffff | — |
| punctuation.section.braces.end | #ffffff | — |
| invalid | #FF5370 | — |
| invalid.illegal | #FF5370 | — |
| storage.type | #ebb5ff | — |
| storage.type.interface, storage.type.type | #03b2f1 | — |
| storage.modifier | #d980f9 | — |
| keyword.control | #03b2f1 | — |
| constant.other.color | #69D2F8 | italic |
| punctuation | #69D2F8 | italic |
| meta.tag | #69D2F8 | italic |
| punctuation.definition.tag | #69D2F8 | italic |
| punctuation.separator.inheritance.php | #69D2F8 | italic |
| punctuation.definition.tag.html | #69D2F8 | italic |
| punctuation.definition.tag.begin.html | #69D2F8 | italic |
| punctuation.definition.tag.end.html | #69D2F8 | italic |
| punctuation.section.embedded | #69D2F8 | italic |
| keyword.other.template | #69D2F8 | italic |
| keyword | #ff72ff | — |
| punctuation.definition.parameters.begin | #69D2F8 | italic |
| punctuation.definition.parameters.end | #69D2F8 | italic |
| entity.name.tag | #f07178 | — |
| meta.tag.sgml | #f07178 | — |
| markup.deleted.git_gutter | #f07178 | — |
| entity.name.function | #8be0ff | — |
| meta.function-call | #ffe5be | — |
| variable.function | #ffe5be | — |
| support.function | #8be0ff | — |
| keyword.other.special-method | #ffe5be | — |
| string.quoted | #29e42c | — |
| meta.block, variable.other, keyword.operator.assignment | #ffffff | — |
| support.other.variable | #f07178 | — |
| string.other.link | #f07178 | — |
| constant.numeric | #69D2F8 | — |
| constant.language | #69D2F8 | — |
| support.constant | #69D2F8 | — |
| constant.character | #69D2F8 | — |
| constant.escape | #69D2F8 | — |
| variable.parameter | #ff9b49 | italic |
| keyword.operator.relational, keyword.operator.ternary, keyword.operator.logical, keyword.operator.expression, keyword.operator.comparison, constant.language.boolean | #ff6565 | — |
| keyword.other.unit | #69D2F8 | — |
| keyword.other | #69D2F8 | — |
| string | #3CC73F | — |
| number | #E5C07B | — |
| constant.other.symbol | #E5C07B | — |
| constant.other.key | #E5C07B | — |
| entity.other.inherited-class | #E5C07B | — |
| markup.heading | #E5C07B | — |
| markup.inserted.git_gutter | #E5C07B | — |
| meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #E5C07B | — |
| entity.name | #fffd79 | — |
| support.type | #fffb1b | — |
| support.class | #fffb1b | — |
| support.other.namespace.use.php | #fffb1b | — |
| meta.use.php | #fffb1b | — |
| support.other.namespace.php | #fffb1b | — |
| markup.changed.git_gutter | #fffb1b | — |
| support.type.sys-types | #fffb1b | — |
| source.css support.type.property-name | #B2CCD6 | — |
| source.sass support.type.property-name | #B2CCD6 | — |
| source.scss support.type.property-name | #B2CCD6 | — |
| source.less support.type.property-name | #B2CCD6 | — |
| source.stylus support.type.property-name | #B2CCD6 | — |
| source.postcss support.type.property-name | #B2CCD6 | — |
| entity.name.module.js | #FF5370 | — |
| variable.import.parameter.js | #FF5370 | — |
| meta.object-literal.key, variable.object.property | #82a9ff | — |
| variable.other.class.js | #FF5370 | — |
| variable.language | #ff758c | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js | #82AAFF | — |
| variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html | #FFCB6B | italic |
| text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #70eff3 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url* | — | underline |
| *link* | — | underline |
| *uri* | — | underline |
| tag.decorator.js entity.name.tag.js | #82AAFF | italic |
| tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| 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 | #F78C6C | — |
| 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 | #FF5370 | — |
| 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 | #C17E70 | — |
| 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 | #82AAFF | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| 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 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 | #C3E88D | — |
| text.html.markdown | #EEFFFF | — |
| punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading | #C3E88D | — |
| markup.heading | markup.heading entity.name | #C3E88D | — |
| markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold | #f07178 | bold |
| markup.bold string | #f07178 | bold |
| markup.bold markup.italic | #f07178 | bold |
| markup.italic markup.bold | #f07178 | bold |
| markup.quote markup.bold | #f07178 | bold |
| markup.bold markup.italic string | #f07178 | bold |
| markup.italic markup.bold string | #f07178 | bold |
| markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #69D2F8 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown | #EEFFFF | — |
| punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
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}!`;
}