Neon Dusk Theme by Manu
Publisher: manufdz19Themes in package: 1
A refined dark theme based on Dusk with enhanced HTML & React tag contrast
A refined dark theme based on Dusk with enhanced HTML & React tag contrast
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 | #5E5E6A | italic |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.type, storage.modifier | #D2529F | — |
| keyword.control | #D2529F | |
| variable, support.other.variable, string constant.other.placeholder | #E89F6A | — |
| variable.parameter, variable.parameter.keyframe-list.css | #4CC0D1 | — |
| string, string.quoted.double.html, string.quoted.double.json | #70D0B3 | — |
| constant.numeric, constant.language, constant.character, constant.escape, support.constant, keyword.other.unit | #E8D06A | — |
| entity.name.function, meta.function-call, variable.function, support.function, entity.name.method, variable.function.constructor | #4CC0D1 | — |
| entity.name.type, entity.other.inherited-class, support.class, support.type | #C084FC | — |
| meta.decorator, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #3A9AA8 | italic |
| punctuation.definition, punctuation.separator, punctuation.terminator | #9999A3 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.tsx | #4CC9F0 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #FF6B9A | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #b8a8f8 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.name.tag.css | #E0E0E0 | — |
| source.css support.type.property-name, source.scss support.type.property-name, source.sass support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name | #D2529F | — |
| string.regexp | #3A9AA8 | — |
| string.other.link, constant.other.reference.link, markup.underline.link, markup.underline.link.image | #3A9AA8 | underline |
| support.type.property-name.json | #E0E0E0 | — |
| markup.inserted, markup.inserted.git_gutter | #70D0B3 | — |
| markup.deleted, markup.deleted.git_gutter | #FF5370 | — |
| markup.changed, markup.changed.git_gutter | #3A9AA8 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E0E0E0 | — |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #D2529F | bold |
| text.html.markdown markup.inline.raw.markdown | #3A9AA8 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #D2529F80 | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown | #D2529F80 | italic |
| string.other.link.description.title.markdown | #3A9AA8 | — |
| constant.other.reference.link.markdown | #3A9AA8 | — |
| markup.raw.block, markup.raw.block.fenced.markdown | #3A9AA8 | — |
| meta.separator | #9999A3 | bold |
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}!`;
}