Midnight Koi Theme
Publisher: soraplexThemes in package: 1
cozy dark mode theme made by @soraplex
cozy dark mode theme made by @soraplex
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.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded | #6195e3 | — |
| entity.name.tag.jsx, entity.name.tag.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7aa2f7 | bold |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.html, entity.other.attribute-name | #DEB887 | — |
| entity.name.tag, meta.tag.sgml, entity.other.attribute-name.html | #7391C8 | — |
| entity.name.tag.other.html, entity.name.tag.block.any.html | #76baa8 | — |
| text.html.derivative, punctuation.separator.key-value.html | #BBBBBB | — |
| support.function, storage.type.function.js, storage.type.function.python | #DEB887 | — |
| entity.name.tag.html | — | bold |
| entity.name.function | #97c1cc | italic |
| entity.name | #7391C8 | — |
| support.type, support.class, support.type.sys-types, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.property-name.json | #7391C8 | — |
| support.variable.magic.python, support.function.magic.python, punctuation.definition.python | #7b93a5 | — |
| storage.type.class, storage.type.function | #BBBBBB | — |
| storage.modifier | #6AACC6 | — |
| entity.other.inherited-class | #A6ACA6 | |
| entity.name.module.js | #c0caf5 | — |
| keyword.control.default.js.jsx | — | — |
| variable.other.object.js, variable.other.readwrite.js, variable.other.property.js | #5083a8 | |
| variable.other.object.property.js, variable.function, variable.function.constructor | #76baa8 | — |
| variable.other.readwrite, variable.language.this | #6AACC6 | italic |
| variable.parameter.js, variable.parameter.keyframe-list.css | #D6B89F | — |
| variable.parameter.function.language.special, variable.parameter | #8892B0 | — |
| variable.import.parameter.js, variable.other.class.js | #c0caf5 | — |
| meta.object-literal.key | #DEB887 | — |
| support.other.variable | #86a0b8 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #f77676 | italic |
| constant.numeric, constant.language, constant.character, constant.escape | #bbbbbb | — |
| constant.other.symbol, constant.other.key, constant.other.object.key.js | #A6ACA6 | |
| variable.other.constant.js | #97c1cc | — |
| support.constant | #DEB887 | — |
| constant.character.escape | #6C9FA8 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, string, string.quoted.double.html, string.quoted.double.json | #76baa8 | — |
| keyword.other.template, keyword.other.substitution, string.quoted.single.scss | #6195e3 | — |
| *url*, *link*, *uri* | — | underline |
| string constant.other.placeholder | #BBBBBB | italic |
| — | — | |
| string.quoted.docstring.multi.python | #a0b3a2 | — |
| string.other.link | #86a0b8 | — |
| string.unquoted.label.js | #A6ACA6 | |
| string.quoted.single.js | #DEB887 | — |
| string.regexp | #6C9FA8 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #6eb1a0 | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, punctuation.definition.entity.css | #DCC39F | — |
| entity.other.attribute-name.pseudo-class, entity.name.tag.css | #DEB887 | — |
| variable.css | #6AACC6 | — |
| constant.other.color | #BBBBBB | — |
| entity.name.tag.reference.scss | #6195e3 | — |
| comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html, comment.line.number-sign.python, punctuation.definition.comment.python | #a89f9c | — |
| markup.bold.markdown, markup.italic.markdown, markup.underline, markup.strike, markup.raw.block, meta.dummy.line-break, meta.separator, punctuation.definition.bold.markdown | #aa9061 | — |
| markup.heading, text.html.markdown, punctuation.definition.list_item.markdown, punctuation.definition.heading.markdown, punctuation.definition.link.markdown | #a6aca6 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown, entity.name.section.markdown, markup.inline.raw.string.markdown | #748a6c | — |
| variable.language.fenced.markdown, markup.raw.block, string.other.link.description.title.markdown | #6F8865 | — |
| markup.fenced_code.block.markdown, markup.italic.markdown | #76baa8 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #9FA8DA | — |
| punctuation.definition.markdown | #a2cabd | — |
| markup.table | #86a0b8 | — |
| text.html.markdown meta.dummy.line-break | #565f89 | — |
| markup.quote punctuation.definition.blockquote.markdown | #4e5579 | — |
| markup.quote | — | italic |
| constant.other.reference.link.markdown | #73daca | — |
| meta.separator | #A7A8AF | bold |
| markup.underline, markup.bold | #aa9061 | — |
| markup.deleted.git_gutter | #ff6b6b | — |
| markup.inserted.git_gutter | #A6ACA6 | |
| markup.changed.git_gutter | #f8dc81 | — |
| markup.inserted | #449dab | — |
| markup.deleted | #914c54 | — |
| markup.changed | #6183bb | — |
| invalid.deprecated | #e88a8a | — |
| invalid, invalid.illegal | #ff6b6b | — |
| keyword.control.flow, keyword.control.loop, keyword.control.trycatch, keyword.control.async, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.assignment.compound | — | — |
| keyword.operator.assignment, keyword.operator.new, keyword.operator.arithmetic, punctuation.separator, keyword.other.unit, keyword.other | #BBBBBB | — |
| punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js, keyword.operator.assignment.js | #DCC39F | — |
| keyword.other.special-method, meta.class-method.js entity.name.function.js, source.sass keyword.control | #76baa8 | — |
| keyword.control.import, keyword.control.export | — | — |
| entity.name.type.module.js | #6195e3 | — |
| storage.type.js | #5083a8 | |
| meta.group.braces.curly | #A6ACA6 | |
| keyword.control.conditional.js | #DEB887 | — |
| source.scss keyword.control | #6F8865 | — |
| storage.modifier.async.js | #6183bb | — |
| punctuation.definition | #a6aca6 | — |
| token.info-token | #6aacc6 | — |
| token.warn-token | #f8dc81 | — |
| token.error-token | #ff6b6b | — |
| token.debug-token | #7a8b78 | — |
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}!`;
}