Nimnus Color Theme
Publisher: Yurii TykhovskyiThemes in package: 3
Some description. Will update it soon.
Some description. Will update it soon.
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 |
|---|---|---|
| support.other.variable, meta.function.misc | #D4D4D4 | — |
| comment | #78909C | italic |
| string.quoted.docstring.multi.python | #A1887F | italic |
| string, storage.type.string.python | #ffaa8a | — |
| punctuation.definition.template-expression, punctuation.definition.interpolation | #D4BFFF | — |
| constant.numeric | #c5ddb8 | — |
| constant.language | #9FA8DA | — |
| constant.character, constant.other | #9FA8DA | — |
| variable, variable.other.property, variable.other.readwrite, variable.other.object, meta.definition.variable.name, support.variable, entity.name.variable, meta.interpolation variable.other.readwrite | #9ad0ec | — |
| meta.object-literal.key | #D4BFFF | — |
| variable.language.this, keyword.other.this.cs, variable.language.special.self.python, variable.parameter.function.language.special.self.python, variable.language.special.cls.python, variable.parameter.function.language.special.cls.python | #CBCCC6 | italic bold |
| keyword, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, storage.type, storage.type.accessor, storage.type.class, storage.type.function, keyword.type.void, storage.modifier | #03a9f4 | — |
| punctuation.separator.key-value, punctuation.separator.dictionary.key-value.json | #D4D4D4 | — |
| keyword.operator, keyword.operator.expression.pattern | #D4D4D4 | — |
| keyword.operator.arrow.cs, storage.type.function.arrow | #D4D4D4 | — |
| punctuation.terminator.statement, punctuation.terminator.rule | #D4D4D4 | bold |
| keyword.control | #ffe6b3 | — |
| punctuation.decorator, meta.decorator variable.other.readwrite, source.python entity.name.function.decorator, source.python meta.function.decorator support.type | #FFE6B3 | bold |
| keyword.other.unit | #9FA8DA | — |
| entity.name.type, entity.name.class, entity.name.namespace | #95E6CB | bold |
| keyword.type, storage.type.boolean.go, storage.type.byte.go, storage.type.numeric.go, storage.type.rune.go, storage.type.error.go, storage.type.string.go, support.type.primitive.ts | #95E6CB | — |
| entity.name.type.namespace.cs | #CCF3E6 | |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #95E6CB | bold |
| entity.name.function, support.function, support.constant.handlebars, source.python meta.function-call.generic | #BAE67E | — |
| variable.parameter | #9FA8DA | — |
| meta.directive.page | #d4d4d4 | — |
| meta.directive.inherits | #95E6CB | bold |
| entity.name.class.attribute.taghelper | #D4BFFF | |
| entity.other.attribute-name.class.css, support.constant.property-value.css, constant.numeric.css, meta.property-value.css, source.css constant.other.color, source.css support.constant.color | #FFD580 | — |
| entity.name.tag | #5CCFE6 | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #5CCFE6B0 | — |
| entity.other.attribute-name | #D4BFFF | — |
| support.constant | #D4BFFF | — |
| support.type, keyword.type.cs, support.class | #D4BFFF | — |
| markup.deleted | #DC322F | — |
| markup.inserted | #CDDC39 | — |
| markup.heading | #FFD580 | bold |
| markup.underline.link | #D4BFFF | — |
| markup.list, punctuation.definition.list.begin.markdown | #D4BFFF | — |
| markup.quote | #03A9F4 | — |
| markup.bold | #D4D4AA | bold |
| markup.italic | #D4D4AA | italic |
| markup.italic markup.bold | — | bold italic |
| markup.bold markup.italic | — | bold italic |
| markup.inline.raw, markup.fenced_code punctuation.definition.markdown | #18FFFF | — |
| markup.fenced_code | #90D4D4 | — |
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}!`;
}