Orbit Theme
Publisher: monoookiThemes in package: 1
Bright, structure-first dark theme for quick code scans.
Bright, structure-first dark theme for quick code scans.
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 | #444444 | italic |
| punctuation.definition.comment.php, punctuation.section.comment.haml | #666666 | — |
| punctuation, meta.brace, keyword.operator.accessor | #555555 | — |
| punctuation.separator.colon.python | #eeeeee | — |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #888888 | — |
| keyword.operator | #eeeeee | — |
| keyword.control, keyword.other.import, keyword.other.export, storage.type, storage.modifier, storage.type.function.arrow.js, storage.type.function.arrow.ts, punctuation.definition.arrow.php | #cccccc | — |
| keyword.control.flow.python | #eeeeee | — |
| keyword.command.batchfile | #25A693 | — |
| storage.modifier, storage.type.modifier, storage.modifier.access, storage.modifier.c, storage.modifier.cpp, storage.modifier.java, storage.modifier.ruby, storage.modifier.visibility, keyword.other.access, keyword.other.access.visibility, keyword.other.access.visibility.java | #cccccc | — |
| keyword.default.zig | #777777 | — |
| keyword.storage.zig | #cccccc | — |
| constant.other.placeholder.makefile | #96B445 | — |
| keyword.operator.type | #cccccc | — |
| keyword.operator.new, constant.language.null.ts | #979797 | — |
| storage.type, storage.type.ts, keyword.declaration | #777777 | — |
| variable, variable.other.readwrite | #bbbbbb | — |
| variable.parameter | #999999 | — |
| variable.other.property, support.variable.property, variable.other.object.property | #25A693 | — |
| meta.object-literal.key.ts | #25A693 | — |
| variable.other.constant, variable.language, meta.definition.variable, variable.other.readwrite | #96B445 | — |
| constant.numeric, constant.language, constant.character, keyword.other.unit | #96B445 | — |
| string | #96B445 | — |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, punctuation.definition.string.begin.jsx, punctuation.definition.string.end.jsx, punctuation.definition.string.begin.tsx, punctuation.definition.string.end.tsx, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.definition.string.begin.ruby, punctuation.definition.string.end.ruby, punctuation.definition.string.begin.go, punctuation.definition.string.end.go, punctuation.definition.string.begin.kotlin, punctuation.definition.string.end.kotlin, punctuation.definition.string.begin.java, punctuation.definition.string.end.java, punctuation.definition.string.begin.c, punctuation.definition.string.end.c, punctuation.definition.string.begin.cpp, punctuation.definition.string.end.cpp, punctuation.definition.string.begin.c++, punctuation.definition.string.end.c++, support.type.property-name.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #ffffff66 | — |
| entity.name.function, meta.function-call, variable.function, support.function | #25A693 | — |
| entity.name.type, entity.name.class, support.type, support.class | #25A693 | — |
| storage.type.namespace, storage.type.namespace.cpp, storage.type.namespace.definition.cpp, keyword.other.namespace.definition.cpp, meta.head.namespace.cpp, meta.block.namespace.cpp | #25A693 | — |
| entity.other.inherited-class | #25A693 | — |
| support.type.primitive, entity.name.type, support.type, meta.type.annotation | #96B445 | — |
| entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.js.jsx | #25A693 | — |
| punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #555555 | — |
| entity.other.attribute-name | #637B20 | — |
| entity.name.tag, punctuation.definition.tag | #25A693 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, meta.tag.metadata.self-closing.html, meta.tag.structure.head.end.html, punctuation.definition.tag.xml | #555555 | — |
| entity.name.tag.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #25A693 | — |
| entity.other.attribute-name.class.css | #bbbbbb | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.attribute | #96B445 | — |
| support.type.property-name.css | #25A693 | — |
| keyword.other.important.css, keyword.other.important.scss, keyword.other.important.less, keyword.other.important.sass | #eeeeee | — |
| constant.numeric.css, support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, punctuation.definition.constant.css | — | — |
| meta.property-value.css | #96B445 | — |
| punctuation.definition.entity.css | #999999 | — |
| keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.%, keyword.other.unit.percentage.css, keyword.other.unit.fr.css | #637B20 | — |
| variable.scss, variable.other.less | #dddddd | — |
| support.type.property-name.json, keyword.other.definition.ini | #25A693 | — |
| variable.key.dotenv | #25A693 | — |
| property.value.dotenv | #96B445 | — |
| support.type.property-name.table.toml, support.type.property-name.toml, keyword.other.definition.toml | #25A693 | — |
| string.quoted.single.basic.line.toml, string.quoted.double.basic.line.toml | #96B445 | — |
| keyword.other.special-method.ruby, source.ruby.embedded.filter.haml | #eeeeee | — |
| source.ruby.embedded.haml, constant.language.symbol.hashkey.ruby | #25A693 | — |
| comment | — | italic |
| keyword.other.import, keyword.other.export, keyword.control.import, keyword.control.import.ts, keyword.control.import.js, keyword.control.export, keyword.control.export.ts, keyword.control.export.js, storage.modifier.async, keyword.other.use.php | — | italic |
| string.other.start.yaml, string.other.end.yaml | #666666 | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown | #25A693 | bold |
| punctuation.definition.heading.markdown, punctuation.definition.heading.setext | #666666 | — |
| markup.bold, markup.bold.markdown | #25A693 | bold |
| punctuation.definition.bold.markdown | #96B445 | — |
| punctuation.definition.italic.markdown | #96B445 | — |
| markup.italic.markdown | #25A693 | italic |
| markup.table, markup.table.markdown | #96B445 | — |
| punctuation.definition.table.markdown, punctuation.separator.table.markdown | #555555 | — |
| punctuation.definition.markdown | #606060 | — |
| markup.fenced_code.block.markdown | #A8B682 | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown | #666666 | — |
| meta.separator.markdown | #96B445 | — |
| constant.other.reference.link.markdown | #3E8AB0 | — |
| markup.underline.link.markdown | #3E8AB0 | — |
| punctuation.definition.raw.markdown | #606060 | — |
| markup.inline.raw.string.markdown | #A8B682 | — |
| fenced_code.block.language.markdown | #444444 | — |
| markup.inline.raw.code.markdown, markup.inline.raw.code.mdx | #25A693 | — |
| keyword.other.use.php, keyword.other.rust, keyword.other.sql, keyword.other.DML.sql, keyword.other.alias.sql | #eeeeee | — |
| comment.block.html, comment.block.html.markdown, meta.tag.sgml.doctype | #444444 | italic |
| keyword, keyword.control, storage, storage.type | #cccccc | — |
| operator, keyword.operator.assignment | #eeeeee | — |
| string.quoted, string.regexp | #96B445 | — |
| invalid, invalid.deprecated, invalid.illegal | #dddddd | — |
| entity.name.class, entity.name.type, entity.name.type.module, support.class, support.class.component, support.class.promise.js, support.class.promise.ts | #25A693 | — |
| entity.name.function, support.function, support.function.misc.css, meta.function.variable.css | #25A693 | — |
| support.other.module, text.html.derivative | #25A693 | — |
| entity.name.tag | #25A693 | — |
| markup.quote, markup.quote.markdown, markup.italic | #A8B682 | italic |
| punctuation.definition.list.begin.markdown | #666666 | — |
| meta.diff.header.from-file, punctuation.definition.from-file.diff | #96B445 | bold |
| meta.diff.header.to-file, punctuation.definition.to-file.diff | #25A693 | bold |
| meta.diff, meta.diff.context, meta.diff.header, meta.diff.index, meta.diff.range, meta.separator.diff | #3E8AB0 | — |
| markup.inserted.diff, punctuation.definition.inserted.diff | #AB5C9A | — |
| markup.deleted.diff | #25A693 | — |
| markup.changed.diff | #96B445 | — |
| punctuation.definition.range.diff | #25A693 | — |
| variable.other.object.js, variable.other.object.js.jsx | #bbbbbb | — |
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}!`;
}