ds_noir
Publisher: devShakibThemes in package: 1
Black-and-white film with one red and one lamp-gold. Structure reads by value, the way it does on a noir print. Nothing below 4.5:1.
Black-and-white film with one red and one lamp-gold. Structure reads by value, the way it does on a noir print. Nothing below 4.5:1.
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 | #8C8983 | italic |
| comment.block.documentation, comment.documentation, comment.line.documentation | #9B9892 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.other.documentation | #B8A1C9 | italic |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.type, constant.language.null, constant.language.undefined, constant.language.nil, meta.tag.sgml.doctype | #E8574F | italic |
| storage, storage.type, storage.modifier, keyword.declaration, storage.type.function.arrow | #E8574F | italic |
| variable.language.this, variable.language.super, variable.language.self, variable.parameter.function.language.special.self | #E8574F | italic |
| entity.name.function, support.function, meta.function-call, meta.function-call.generic, entity.name.function.member, variable.function, support.function.builtin, entity.name.method, meta.definition.method entity.name.function, entity.other.attribute-name.id.css | #FFFFFF | — |
| entity.name.function.macro, entity.name.function.preprocessor, meta.preprocessor | #B8A1C9 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.other.inherited-class, support.type, support.class, entity.name.namespace, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, support.type.primitive, support.type.builtin, storage.type.primitive, meta.type.annotation, entity.other.attribute-name.class.css | #E2C688 | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #E8574F | — |
| string, string.quoted, string.template, string.unquoted, punctuation.definition.string | #A9BCCD | — |
| constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded.line, constant.other.placeholder, constant.character.format.placeholder | #E8574F | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #E8574F | — |
| constant.numeric, keyword.other.unit | #D9958C | — |
| constant.language.boolean, constant.language, constant.other, support.constant, variable.other.constant, entity.name.constant, variable.other.enummember, constant.other.symbol, support.constant.property-value.css | #D9958C | — |
| variable, variable.other, variable.other.readwrite, variable.other.normal.shell | #C9C5BE | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, support.type.property-name, support.type.property-name.json, support.type.property-name.css, entity.name.tag.yaml, entity.name.tag.toml, support.type.property-name.toml, variable.other.member | #B8B2A7 | — |
| variable.parameter, meta.parameter, variable.parameter.function | #A8A49D | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.definition.variable.shell | #9B9892 | — |
| meta.decorator, entity.name.function.decorator, storage.type.annotation, meta.annotation, punctuation.definition.annotation, meta.attribute, entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #B8A1C9 | italic |
| entity.name.tag, punctuation.definition.tag, entity.name.tag.css | #E8574F | — |
| entity.other.attribute-name | #E2C688 | italic |
| entity.name.label, punctuation.definition.label | #D9958C | — |
| markup.heading, entity.name.section, punctuation.definition.heading.markdown | #FFFFFF | bold |
| markup.bold | #C9C5BE | bold |
| markup.italic | #C9C5BE | italic |
| markup.strikethrough | #9B9892 | strikethrough |
| markup.underline.link, string.other.link | #A9BCCD | underline |
| markup.inline.raw, markup.fenced_code, markup.raw | #A9BCCD | — |
| markup.quote | #9B9892 | italic |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list, punctuation.definition.list.begin.markdown | #E0443E | — |
| markup.inserted | #9CB89A | — |
| markup.deleted | #F0625A | — |
| markup.changed | #A9BCCD | — |
| meta.diff.header, meta.diff.range | #A9BCCD | — |
| invalid, invalid.illegal | #F0625A | underline |
| invalid.deprecated | #E2C688 | strikethrough |
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}!`;
}