Midnight Tide Theme
Publisher: ChelayelThemes in package: 1
A cool-blue dark theme on #151719. Teal accents, deuteranopia-safe diff palette, amber-and-yellow error signals.
A cool-blue dark theme on #151719. Teal accents, deuteranopia-safe diff palette, amber-and-yellow error signals.
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, string.comment | #71717A | italic |
| keyword.codetag.notation, comment.notation, comment todo, comment fixme | #FACC15 | italic bold |
| variable, variable.other.readwrite, variable.other | #E4E4E7 | — |
| variable.other.constant, variable.other.enummember, constant.other, constant.other.symbol, constant.other.key | #C084FC | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #C084FC | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special.self | #C084FC | italic |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal, keyword.other.unit | #0891B2 | — |
| constant.character.numeric | #A5F3FC | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.unquoted, punctuation.definition.string | #7DD3FC | — |
| meta.template.expression, meta.embedded.expression | #E4E4E7 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #C084FC | — |
| constant.character.escape, constant.character.escape.line-continuation, string constant.character.escape | #A5F3FC | — |
| string.regexp, string.regex | #A5F3FC | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.range.regexp | #0891B2 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.conditional, keyword.control.loop, keyword.control.return, keyword.control.trycatch | #C084FC | — |
| storage, storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.struct, storage.modifier, storage.modifier.async, storage.modifier.await | #C084FC | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.expression, keyword.operator.logical, keyword.operator.ternary | #C084FC | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.logical.symbolic | #A1A1AA | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.section, meta.brace, meta.bracket, meta.delimiter | #A1A1AA | — |
| entity.name.function, meta.function-call, meta.function-call entity.name.function, support.function, variable.function | #60A5FA | — |
| meta.method entity.name.function, entity.name.function.member, meta.method-call entity.name.function, variable.function.method | #60A5FA | — |
| entity.name.function.static, meta.function.static | #60A5FA | italic |
| support.function.builtin, support.function.global | #60A5FA | — |
| variable.parameter, variable.parameter.function, meta.parameter, meta.function.parameters variable.other | #BFDBFE | italic |
| variable.other.property, variable.object.property, variable.other.object.property, support.type.property-name, meta.object-literal.key, meta.object.member, string.unquoted.label, support.variable.property | #0891B2 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #0891B2 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #7DD3FC | — |
| entity.name.class, entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.other.inherited-class, support.class, support.type, support.type.primitive, meta.class entity.name.type | #A5F3FC | — |
| entity.name.type.interface, meta.interface entity.name.type | #A5F3FC | italic |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #A5F3FC | italic |
| entity.name.namespace, entity.name.module, support.module | #A5F3FC | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, support.class.component | #60A5FA | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #C084FC | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #A1A1AA | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector.css | #BFDBFE | — |
| entity.other.attribute-name.id.css | #A5F3FC | — |
| entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #60A5FA | — |
| support.type.property-name.css, meta.property-name.css | #0891B2 | — |
| support.constant.property-value.css, meta.property-value.css | #E4E4E7 | — |
| keyword.other.unit.css | #0891B2 | — |
| keyword.control.at-rule.css, punctuation.definition.keyword.css | #C084FC | — |
| keyword.other.important.css | #F59E0B | bold |
| constant.other.color, constant.other.color.rgb-value | #A5F3FC | bold |
| meta.decorator, meta.decorator entity.name.function, meta.decorator variable.other, punctuation.decorator, tag.decorator, entity.name.function.decorator | #FACC15 | — |
| storage.type.annotation, punctuation.definition.annotation | #FACC15 | — |
| entity.name.label, punctuation.definition.label | #0891B2 | — |
| support.other.module | #7DD3FC | — |
| invalid, invalid.illegal | #F59E0B | underline |
| invalid.deprecated | #71717A | strikethrough |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #60A5FA | bold |
| markup.bold, punctuation.definition.bold.markdown | #C084FC | bold |
| markup.italic, punctuation.definition.italic.markdown | #BFDBFE | italic |
| markup.underline.link, string.other.link, constant.other.reference.link | #0891B2 | underline |
| string.other.link.title, string.other.link.description | #7DD3FC | — |
| markup.inline.raw, markup.raw.inline, string.other.raw | #A5F3FC | — |
| markup.quote, punctuation.definition.quote.begin | #A1A1AA | italic |
| punctuation.definition.list.begin, markup.list, beginning.punctuation.definition.list | #0891B2 | — |
| markup.inserted, meta.diff.header.to-file | #73BD79 | — |
| markup.deleted, meta.diff.header.from-file | #6F737A | — |
| markup.changed | #70AEFF | — |
| support.class.component.jsx, support.class.component.tsx | #A5F3FC | — |
| meta.function.decorator.python, support.type.python | #FACC15 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #C084FC | italic |
| support.function.builtin.python, constant.language.python | #C084FC | — |
| entity.name.tag.yaml | #0891B2 | — |
| entity.name.tag.toml, support.type.property-name.toml | #0891B2 | — |
| entity.other.attribute-name.table.toml | #A5F3FC | bold |
| variable.other.normal.shell, variable.other.bracket.shell, punctuation.definition.variable.shell | #0891B2 | — |
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}!`;
}