Its Dark
Publisher: Ismile HossainThemes in package: 1
🎨 An elegant dark theme.
🎨 An elegant dark theme.
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 |
|---|---|---|
| strong, markup.bold | — | bold |
| emphasis, markup.italic | — | italic |
| markup.underline | — | underline |
| comment, punctuation.definition.comment, string.quoted.docstring | #616263 | italic |
| comment.block | #FF1493 | italic |
| source.cs meta.preprocessor | #616263 | — |
| storage.type, source.cs storage.type, support.type.exception, variable.object.property, source.css entity.name.tag, entity.other.attribute-name, variable.other.constant.property, meta.definition.method entity.name.function, source.cs meta.method.identifier entity.name.function, text.html.markdown beginning.punctuation.definition.list | #F3F99D | — |
| keyword.type, support.type, entity.name.type, keyword.other.unit, storage.type.primitive, entity.other.attribute-name.id, text.html.markdown markup.quote, source.cs meta.method.return-type, entity.other.attribute-name.class | #9AEDFE | — |
| string, constant.numeric, support.constant, markup.inserted.diff, constant.language.null, meta.diff.header.to-file, constant.language.boolean, constant.language.undefined, source.java constant.language, source.python constant.language, meta.structure.dictionary.json string.quoted.double.json | #5AF78E | — |
| meta.require, markup.heading, support.function, keyword.other.get, keyword.other.set, meta.function-call, entity.name.function, variable.language.super, keyword.other.special-method, source.cs entity.name.function, meta.function entity.name.function, entity.name.section.group-title.ini, source.cs meta.method-call meta.method, source.java meta.method-call meta.method, source.java meta.definition.variable entity.name.function, source.java meta.method-call meta.inner-class meta.method meta.method-call meta.method | #57C7FF | — |
| source., variable, meta.tag, support.class, meta.attribute., support.variable, support.constant, text.html.derivative, punctuation.definition.tag, keyword.operator.arithmetic, punctuation.definition.attribute., source.java storage.modifier.import, source.cs entity.name.type.namespace, source.java storage.modifier.package, source.python meta.function-call.arguments, meta.definition.variable entity.name.function, source.java meta.method-call meta.inner-class meta.method | #EFF0EB | — |
| markup., support.node, support.module, entity.name.tag, meta.link.reference, markup.deleted.diff, entity.name.tag.yaml, entity.name.type.class, meta.object-literal.key, meta.diff.header.from-file, markup.underline.link.image, keyword.other.definition.ini, punctuation.section.embedded, meta.object-literal.key string, support.type.property-name.json, text.html.markdown meta.link.inline, source.java storage.type.annotation, source.css support.type.property-name, source.cs meta.class.identifier storage.type, entity.other.inherited-class entity.name.type.module, source.python meta.function entity.name.function.decorator | #FF5C57 | — |
| markup.bold | #FF5C57 | bold |
| markup.bold markup., markup. markup.bold | #FF5C57 | bold |
| variable.parameter | — | italic |
| keyword, modifier, storage.modifier, constant.language, support.type.object, variable.language.this, constant.language.json, template.expression.end, template.expression.begin, variable.language.special.self, source.js storage.modifier.async, text.html.markdown markup.inline.raw, source.python meta.function storage.type.function | #FF6AC1 | — |
| storage.modifier, storage.type.class.js, variable.language.this, variable.language.this.js | — | italic |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}