theme-noir
Publisher: mekanoideThemes in package: 1
A dark and mostly black and white theme for Visual Studio Code
A dark and mostly black and white theme for Visual Studio Code
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 | #484848 | |
| storage.type, storage.modifier, support.type.primitive.ts | #686868 | italic |
| variable, string constant.other.placeholder | #DADADA | — |
| punctuation.separator.key-value, keyword.operator.assignment | #888888 | — |
| entity.name.function, entity.name.tag, support.class.component.html | #F2F2F2 | — |
| punctuation, punctuation.definition.tag, punctuation.definition.typeparameters.begin, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments, punctuation.definition.entity, punctuation.definition.type, punctuation.section.scope, string.template meta.brace | #686868 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #686868 | italic |
| string | #ad8d8d | — |
| meta.attribute.class.html string, text.html.derivative | #A8A8A8 | — |
| keyword.control | #C4C4C4 | — |
| support.variable.property.ts, variable.other.property, variable.other.object.property, variable.other.property, variable.other.object.property, variable.other.constant.property | #888888 | — |
| constant, meta.parameters.ts, entity.name.type | #C4C4C4 | — |
| support.type.property-name.json.comments, string.json | #C4C4C4 | — |
| string.quoted.double.json, string.quoted.single.json | #989898 | — |
| meta.property-value.css, entity.other.attribute-name.value.css, meta.at-rule.apply.tailwind, meta.at-rule.layer.body.tailwind | #c4c4c4 | — |
| meta.selector.css, entity.name.tag.css, variable.parameter.keyframe-list.css | #DFDFDF | — |
| entity.other.attribute-name.pseudo-class.css | #A8A8A8 | — |
| meta.property-name.css | #888888 | — |
| meta.function.variable.css | #888888 | — |
| variable.argument.css, entity.other.keyframe-offset.css | #f2f2f2 | — |
| string.other.link.title.markdown, string.other.link.markdown | #98e824 | — |
| markup.heading.markdown | #e8e8e8 | bold |
| markup.fenced_code.block.markdown | #888888 | — |
| keyword.operator.type.annotation | #686868 | — |
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}!`;
}