SoftDarkened
Publisher: ErmiqThemes in package: 1
SoftDarkened
SoftDarkened
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 |
|---|---|---|
| #60ee8b | — | |
| comment, punctuation.definition.comment, string.quoted.docstring | #7f817e | italic |
| variable, entity.name.variable, string constant.other.placeholder, variable.other.object.property, meta.function-call.arguments | #bbbbbbf1 | — |
| variable.other.object | #4f89d6f1 | — |
| constant.other.color | #ccccccf1 | — |
| invalid, invalid.illegal | #FF5370f1 | — |
| keyword, storage.type | #4f89d6f1 | — |
| punctuation.definition.string, constant.other.color, punctuation | #4f89d6f1 | — |
| meta.preprocessor, punctuation.separator.hash, entity.name.variable.preprocessor, keyword.preprocessor | #b85fcef1 | — |
| keyword.other.template, keyword.other.substitution | #4f89d6f1 | — |
| keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.increment, keyword.operator.relational, keyword.operator.conditional, keyword.operator.bitwise | #ce6666f1 | — |
| keyword.control | #56ac53f1 | — |
| meta.tag, entity.name.tag, entity.name.tag.localname, variable.language.special | #ce6666f1 | — |
| entity.name.type, entity.other.attribute-name | #bbbbbbf1 | — |
| entity.name.function, meta.function-call.generic, variable.function, support.function, keyword.other.special-method | #d3964cf1 | italic |
| meta.block variable.other | #f07178f1 | — |
| keyword.other, constant.language, storage.modifier, support.other.variable, string.other.link | #ce6666f1 | — |
| constant.numeric, support.constant, constant.character, constant.escape, variable.parameter | #bbbbbbf1 | — |
| string.quoted.single, string.quoted.double, constant.other.symbol, constant.other.key, entity.other.inherited-class | #d3964cf1 | italic |
| support.type.property-name | #288be7f1 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6Bf1 | italic |
| markup.inserted | #C3E88Df1 | — |
| markup.deleted | #FF5370f1 | — |
| markup.changed | #C792EAf1 | — |
| string.regexp | #d19292f1 | — |
| *url*, *link*, *uri* | — | 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}!`;
}