Modern Dark Pro
Publisher: dvigoThemes in package: 2
A modern, clean, and professional VSCode theme with high contrast, elegant design, and excellent readability for extended coding sessions
A modern, clean, and professional VSCode theme with high contrast, elegant design, and excellent readability for extended coding sessions
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 | #5C6370 | italic |
| constant.language, constant.numeric, constant.character | #F78C6C | — |
| constant.other | #F78C6C | — |
| entity.name.function, support.function | #82AAFF | — |
| entity.name.type, entity.other.inherited-class, support.class | #FFCB6B | italic |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control | #C792EA | — |
| keyword.operator | #89DDFF | — |
| string, meta.embedded.assembly | #C3E88D | — |
| string.regexp | #5CA7E4 | — |
| support.type, support.class | #FFCB6B | italic |
| variable, meta.definition.variable.name, support.variable | #80CBC4 | — |
| variable.language | #FF5370 | italic |
| variable.parameter | #D9F5DD | — |
| invalid.illegal | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| markup.bold | #F78C6C | bold |
| markup.italic | — | italic |
| markup.heading | #82AAFF | bold |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| markup.inline.raw | #C3E88D | — |
| meta.selector | #C792EA | — |
| entity.name.tag | #F07178 | — |
| entity.other.attribute-name | #C792EA | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFCB6B | — |
| meta.property-name | #80CBC4 | — |
| meta.property-value | #C3E88D | — |
| support.constant | #89DDFF | — |
| meta.preprocessor | #C792EA | — |
| entity.name.function.preprocessor | #FFCB6B | — |
| meta.diff, meta.diff.header | #C792EA | — |
| source.ruby variable.other.readwrite | #FFCB6B | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag | #F07178 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name | #80CBC4 | — |
| source.js meta.function-call.constructor variable.type, source.ts meta.function-call.constructor variable.type | #FFCB6B | — |
| support.type.property-name.json | #80CBC4 | — |
| entity.name.function.decorator, meta.decorator variable | #82AAFF | — |
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}!`;
}