Latenight
Publisher: Salaudeen SodiqThemes in package: 1
A sleek, late-night dark theme with soft green tones, built for focus, clarity, and comfortable coding
A sleek, late-night dark theme with soft green tones, built for focus, clarity, and comfortable coding
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 |
|---|---|---|
| source, text | #cac2e8 | — |
| comment, punctuation.definition.comment, string.comment | #4e4478 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.in, keyword.operator.of, keyword.operator.instanceof | #C3A6FF | — |
| storage.type.enum, storage.type.interface, storage.type, storage.type.namespace, support.type | #C3A6FF | — |
| entity.name.module.js entity.name.module.tsx, variable.import.parameter.js | #ef6b73 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #5c6370 | italic underline |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.switch, keyword.control.case, keyword.control.break, keyword.control.continue, keyword.control.return, keyword.control.throw, keyword.control.try, keyword.control.catch, keyword.control.finally, keyword.control.await, keyword.control.async, keyword.control.yield, keyword.control.trycatch | #FFAE57 | — |
| storage.modifier, storage.type.function, storage.type.arrow | #D48CFF | italic |
| storage.type, storage.type.js, storage.type.ts, storage.type.tsx | #D48CFF | italic |
| entity.name.function, meta.function-call.generic, support.function, support.function.builtin | #FFAE57 | — |
| keyword.function, keyword.package, constant.language | #5CCFE6 | — |
| meta.function-call entity.name.function, variable.function | #5affb2 | — |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.module, entity.name.enum, support.class, meta.class | #fff | — |
| entity.name.interface, meta.type.parameters, meta.type.parameters entity.name.type | #c060ff | — |
| meta.type.annotation entity.name.type, meta.return.type entity.name.type, meta.var.expr.definiteAssignment entity.name.type | #c060ff | — |
| entity.other.inherited-class | #d48cff | italic |
| variable.other.constant, entity.name.constant, support.constant | #CAC2E8 | — |
| variable.other.enummember | #ffd95a | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.backtick, string.other | #BAE67E | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ff85bb | — |
| constant.character.escape, constant.other.placeholder | #ff9e64 | — |
| string.regexp, constant.regexp | #ff85bb | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #a8d4ff | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #a8d4ff | — |
| variable.other.object.property, meta.object-literal.key, meta.objectliteral meta.object.member variable.other, support.type.property-name | #5affb2 | — |
| variable.other.property, meta.property-access variable.other.property | #5affb2 | — |
| variable.parameter, meta.parameters variable.other, variable.parameter.function.language | #A2AABC | — |
| variable, variable.other.readwrite, variable.other.readwrite.alias | #FFAE57 | — |
| variable.other, variable.other.assignment | #cac2e8 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special.self | #5CCFE6 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.ternary, keyword.operator.optional, keyword.operator.rest, keyword.operator.spread, keyword.operator.type | #d96b9d | — |
| storage.type.function.arrow | #7affdc | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.definition.block, punctuation.definition.binding-pattern | #b8afd6 | — |
| punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.array, punctuation.section | #4e4478 | — |
| entity.name.function.decorator, punctuation.decorator, meta.decorator | #ff9e64 | — |
| entity.name.tag, support.class.component | #2ee6d6 | — |
| meta.tag | #fff | — |
| entity.other.attribute-name | #d96b9d | — |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #7affdc | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #d4f52a | — |
| support.type.property-name.css, meta.property-name | #5CCFE6 | — |
| support.constant.property-value.css, meta.property-value | #FFAE57 | — |
| keyword.other.unit, keyword.other.unit.px.css, keyword.control.at-rule | #FFAE57 | — |
| variable.css, variable.scss, variable.less | #FF5DA2 | — |
| entity.name.function.scss, entity.name.function.less | #2ee68f | — |
| entity.name.section.markdown, markup.heading | #2ee68f | bold |
| markup.bold | #f9c846 | bold |
| markup.italic | #ff85bb | italic |
| markup.inline.raw | #7affdc | — |
| markup.fenced_code.block | #cac2e8 | — |
| markup.underline.link, string.other.link.title.markdown | #2ee68f | — |
| markup.quote | #4e4478 | italic |
| support.type.property-name.json, source.json meta.structure.dictionary.json | #5CCFE6 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #5ccfe6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| string.quoted.double.json | #BAE67E | — |
| constant.numeric.json | #a8d4ff | — |
| support.function.builtin.shell | #2ee68f | — |
| variable.other.normal.shell | #FF5DA2 | — |
| invalid, invalid.illegal, invalid.deprecated | #ff5da2 | underline |
| *url*, *link*, *uri* | — | underline |
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}!`;
}