Smit Dark Theme
Publisher: Smit DudhatThemes in package: 24
A comprehensive dark theme collection with 24 unique variants including the new Aurora Velvet daily-driver theme - from minimal to cyberpunk, soft to high-contrast!
A comprehensive dark theme collection with 24 unique variants including the new Aurora Velvet daily-driver theme - from minimal to cyberpunk, soft to high-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 | #445566 | italic |
| keyword, storage.type, storage.modifier | #c792ea | italic |
| keyword.control | #c792ea | italic |
| keyword.operator | #56d4c9 | |
| keyword.operator.new, keyword.other.new | #c792ea | italic |
| string, string.quoted, string.template | #c3e88d | — |
| string.regexp | #f47868 | — |
| constant.numeric, constant.language, constant.other | #f4bf75 | — |
| constant.character.escape | #56d4c9 | — |
| variable.language.this, variable.language.super | #f47868 | italic |
| variable, variable.other.readwrite | #cdd9e5 | — |
| variable.other.constant | #f4bf75 | — |
| variable.parameter | #adbac7 | italic |
| entity.name.function, meta.function-call.generic | #56d4c9 | bold |
| support.function, support.function.builtin | #56d4c9 | — |
| meta.function-call | #56d4c9 | — |
| entity.name.class, entity.name.type.class, support.class | #f4bf75 | bold |
| entity.name.type, entity.other.inherited-class | #f4bf75 | — |
| support.type, support.type.builtin | #6eb6de | — |
| entity.name.namespace, entity.name.module | #c792ea | — |
| entity.name.tag | #f47868 | — |
| entity.other.attribute-name | #f4bf75 | italic |
| support.type.property-name, meta.object-literal.key | #6eb6de | — |
| punctuation, meta.brace | #5a7a8a | — |
| punctuation.definition.tag | #3a5a6a | — |
| punctuation.separator, punctuation.terminator | #5a7a8a | — |
| storage.type.function | #c792ea | italic |
| storage.type.arrow, storage.type.function.arrow | #56d4c9 | — |
| import, meta.import, keyword.control.import, keyword.control.from | #c792ea | italic |
| markup.heading | #56d4c9 | bold |
| markup.bold | #f4bf75 | bold |
| markup.italic | #c792ea | italic |
| markup.underline | #6eb6de | underline |
| markup.inline.raw, markup.fenced_code.block | #c3e88d | — |
| markup.list | #cdd9e5 | — |
| markup.quote | #8b9eb5 | italic |
| meta.decorator, punctuation.decorator | #f4bf75 | italic |
| invalid | #f47868 | underline |
| invalid.deprecated | #f4bf75 | italic underline |
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}!`;
}