Nollåtta
Publisher: Oleksii ShytikovThemes in package: 1
Nollåtta - a hybrid theme based on practical combination Light Delight / Nord Deep and colors from Android Code Search (with lots of ❤ added on top)
Nollåtta - a hybrid theme based on practical combination Light Delight / Nord Deep and colors from Android Code Search (with lots of ❤ added on top)
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 | #858585 | italic |
| comment.block.preprocessor | #858585 | italic |
| comment.documentation, comment.block.documentation, string.quoted.docstring | #858585 | italic |
| invalid | #e24747 | strikethrough |
| invalid.deprecated | #e24747 | strikethrough |
| invalid.illegal | #e24747 | strikethrough |
| keyword.operator, punctuation.separator.pointer-access.c, punctuation.separator.pointer-access.cpp | #232731 | bold |
| keyword.operator.expression.in, keyword.operator.expression.instanceof, keyword.operator.expression.of, keyword.operator.expression.typeof, keyword.operator.logical.python, keyword.operator.new, keyword, punctuation.separator.colon.python, storage.modifier, storage.type.function, storage.type | #232731 | bold |
| punctuation.separator.key-value, punctuation.separator.dictionary | #232731 | bold |
| storage.type.annotation.groovy, storage.type.annotation.java, storage.type.boolean.go, storage.type.byte.go, storage.type.cs, storage.type.generic.cs, storage.type.generic.groovy, storage.type.generic.java, storage.type.groovy, storage.type.java, storage.type.modifier.cs, storage.type.numeric.go, storage.type.object.array.groovy, storage.type.object.array.java, storage.type.parameters.groovy, storage.type.primitive.array.groovy, storage.type.primitive.array.java, storage.type.primitive.groovy, storage.type.primitive.java, storage.type.string.go, storage.type.token.java, storage.type.uintptr.go, storage.type.variable.cs | #05a | |
| meta.function.decorator | — | italic |
| constant.language, support.constant, variable.language | #085 | — |
| variable, support.variable | #232731 | — |
| entity.name.function, meta.function-call, punctuation.decorator, support.function | #708 | — |
| entity.name.class, entity.name.type, entity.other.inherited-class, meta.return-type, support.class | #708 | — |
| entity.name.exception | #800 | — |
| entity.name.section | — | bold |
| constant | #085 | — |
| constant.character, constant.numeric | #085 | |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, string | #800 | — |
| constant.character.escape | #05a | — |
| constant.other.placeholder, meta.embedded.line | #05a | — |
| string.regexp | #AB6526 | — |
| constant.other.symbol | #AB6526 | — |
| string source, text source | — | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #085 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #4d4d4d | — |
| entity.name.tag | #085 | — |
| entity.other.attribute-name.html, meta.tag entity.other.attribute-name | #05a | |
| constant.character.entity, punctuation.definition.entity | #800 | — |
| meta.object-literal.key, meta.property-name, punctuation.support.type.property-name, support.type.property-name | #05a | |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #800 | |
| entity.name.tag.css, entity.other.attribute-name, meta.selector entity punctuation, meta.selector entity, meta.selector, punctuation.definition.entity.css | #232731 | bold |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #232731 | italic |
| keyword.other.unit.rem.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.deg.css, keyword.other.unit.percentage.css, punctuation.definition.constant | #085 | |
| keyword.other.important | — | bold |
| constant.other.color.rgb-value.hex | #085 | — |
| source.js string.template punctuation.definition.template-expression | #05a | — |
| punctuation.definition.directive.c, punctuation.definition.directive.cpp | #232731 | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #600 | — |
| markup.inserted | #000000 | — |
| meta.link | #05a | — |
| markup.output, markup.raw | #777 | — |
| markup.prompt | #777 | — |
| markup.heading, punctuation.definition.heading.markdown | #800 | bold |
| markup.bold, punctuation.definition.bold.markdown | #085 | bold |
| markup.traceback | #600 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #232731 | — |
| markup.italic, punctuation.definition.italic | #05A | — |
| markup.inline.raw, punctuation.definition.raw.markdown | #800 | — |
| meta.diff.header.git | #05a | — |
| meta.diff.range, meta.diff.index, meta.separator | #232731 | bold |
| meta.diff.header.from-file | #232731 | bold |
| meta.diff.header.to-file | #232731 | bold |
| markup.deleted.diff, punctuation.definition.deleted | #800 | — |
| markup.inserted.diff, punctuation.definition.inserted | #085 | — |
| punctuation.definition.block.tag.jsdoc, punctuation.definition.inline.tag.jsdoc | #05a | — |
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}!`;
}