Nebula Nights Pastel
Publisher: Tom-FynesThemes in package: 1
A dark theme using blues, purples, and pinks
A dark theme using blues, purples, and pinks
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 | #82ABA1 | — |
| string, constant.other.symbol | #83AFDF | — |
| keyword, storage.type, storage.modifier | #DD7596 | — |
| entity.name.function, meta.function-call | #63C5EA | — |
| variable.parameter, meta.parameter | #AED6F1 | — |
| variable.function, meta.function-call.generic | #63C5EA | italic |
| variable, support.variable | #B7C3F3 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #DD7596 | — |
| constant.numeric | #A9FFF7 | — |
| constant | #D05786 | — |
| entity.name.tag | #DD7596 | — |
| entity.other.attribute-name | #B7C3F3 | — |
| support.type.property-name.json | #ECDA90 | — |
| string.quoted.double.json | #83AFDF | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #9F7EBE | — |
| keyword.operator | #9F7EBE | — |
| meta.method-call entity.name.function | #63C5EA | — |
| meta.method entity.name.function | #63C5EA | — |
| meta.definition.function entity.name.function | #63C5EA | — |
| keyword.control.flow.sql, keyword.control.import.sql, keyword.operator.logical.sql | #DD7596 | bold |
| support.function.builtin.sql | #63C5EA | — |
| variable.parameter.function.sql | #AED6F1 | — |
| constant.language.sql | #D05786 | bold |
| keyword.operator.sql | #9F7EBE | — |
| entity.name.type.table.sql | #DD7596 | bold |
| entity.name.type.column.sql | #B7C3F3 | — |
| string.quoted.single.sql, string.quoted.double.sql | #83AFDF | — |
| comment.line.sql, punctuation.definition.comment.sql | #82ABA1 | — |
| punctuation.definition.sql | #9F7EBE | — |
| SQL Variables | — | — |
| meta.decorator.python, entity.name.function.decorator.python | #9F7EBE | italic |
| variable.parameter.function.python | #AED6F1 | — |
| meta.function-call.python, meta.function-call.generic.python | #63C5EA | — |
| support.function.builtin.python | #83AFDF | italic |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #DD7596 | italic |
| entity.name.type.class.python | #DD7596 | bold |
| meta.import.python, entity.name.namespace.python | #9F7EBE | — |
| meta.fstring.python, constant.character.format.placeholder.other.python | #83AFDF | — |
| string.quoted.docstring.multi.python | #82ABA1 | italic |
| support.function.magic.python | #83AFDF | bold italic |
| meta.function.annotation.return.python, meta.function.parameters.annotation.python, support.type.python | #83AFDF | — |
| constant.language.python | #D05786 | bold |
| support.type.exception.python | #D05786 | italic |
| keyword.control.flow.python, keyword.control.import.python, keyword.operator.logical.python | #DD7596 | bold |
| constant.character.format.placeholder.other.python | #ECDA90 | — |
| meta.comprehension.python | #B7C3F3 | — |
| meta.lambda-function.python | #9F7EBE | — |
| entity.name.type.interface | #B8E1FF | bold |
| entity.name.type.enum | #BCB6FF | bold |
| entity.other.attribute-name.html, entity.other.attribute-name.xml | #94FBAB | — |
| support.type.property-name.css, support.type.property-name.scss | #A9FFF7 | — |
| support.constant.property-value.css | #82ABA1 | — |
| markup.heading | #BCB6FF | bold |
| markup.underline.link | #B8E1FF | — |
| markup.fenced_code.block | #A9FFF7 | — |
| markup.list | #94FBAB | — |
| markup.italic | #82ABA1 | italic |
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}!`;
}