Derwish Theme13
Publisher: derwishThemes in package: 2
Dimmed Theme13
Dimmed Theme13
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 |
|---|---|---|
| — | #EDE6E4 | — |
| comment, punctuation.definition.comment | #56606B | — |
| source.python comment, punctuation.definition.comment.python | #898e99 | — |
| variable, variable.meta.jsx, variable.other.readwrite.js | #EDE6E4 | — |
| variable.other.property.static, meta.property.object | #EDE6E4 | — |
| keyword, storage.modifier | #8AC6F2 | — |
| keyword.control.flow.python, keyword.operator.logical.python | #8AC6F2 | — |
| keyword.operator, constant.other.color, punctuation, meta.tag, punctuation.tag.string, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #898E99 | — |
| source.python punctuation.definition | #B9E873 | — |
| function-call.method.with-arguments, meta.class-method.js entity.name.function.js, entity.name.function, entity.name.function.arrow, meta.function-call, variable.function, support.function, keyword.other.special-method, meta.block-level | #EDE6E4 | — |
| support.other.variable, string.other.link | #EC5F67 | — |
| constant.numeric, constant.language, support.constant, constant.character, arrow.variable.parameter, variable.parameter, keyword.other.unit | #F99157 | — |
| string, punctuation.definition.string, punctuation.tag.definition.string, tag.string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #F7DD8F | normal |
| source.python string, meta.class.inheritance support.type.python | #B9E873 | normal |
| entity.name.class, entity.name.type.class, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter | #EDE6E4 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #8AC6F2 | — |
| support.function.builtin.python, variable.legacy.builtin.python | #F7DD8F | — |
| variable.other.class, meta.class variable.other | #EDE6E4 | — |
| entity.name.module.js, variable.import.parameter.js | #EDE6E4 | — |
| variable.language, variable.language.jsx | #EDE6E4 | italic |
| variable.parameter.function.language.python | #F99157 | italic |
| entity.name.method.js | #8AC6F2 | — |
| entity.other.attribute-name | #B9E873 | — |
| markup.inserted | #B9E873 | — |
| markup.deleted | #EC5F67 | — |
| markup.changed | #BB80B3 | — |
| string.regexp, string.regexp keyword | #5FB3B3 | — |
| source.python constant.character.set.regexp, source.python meta.backreference.regexp, source.python entity.name.tag.backreference.regexp | #B9E873 | — |
| constant.character.escape | #5FB3B3 | — |
| *url*, *link*, *uri* | — | underline |
| constant.numeric.line-number.find-in-files - match | #AB7967 | — |
| entity.name.filename.find-in-files | #B9E873 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #8AC6F2 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #EC5F67 | italic |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #FAC863 | — |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #C594C5 | — |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #D8DEE9 | — |
| source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #6699CC | — |
| source.json meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #AB7967 | — |
| source.json meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #EC5f67 | — |
| source.json meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #F99157 | — |
| source.json meta meta.structure.dictionary.json string.quoted.double.json - meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta.structure.dictionary.json punctuation.definition.string - meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #FAC863 | — |
| source.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta.structure.dictionary.json punctuation.definition.string - meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #C594C5 | — |
| storage.type | #B9E873 | — |
| entity.name.variable.event | #EDE6E4 | — |
| entity.name.function | #EDE6E4 | — |
| variable.other.object | #EDE6E4 | — |
| variable.other.object.property | #EDE6E4 | — |
| support.type.property-name | #EDE6E4 | — |
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}!`;
}