Darken World
Publisher: dethThemes in package: 1
just some of darkening world
just some of darkening world
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 | #81B4FF | italic |
| variable, string constant.other.placeholder | #E0E1DD | — |
| constant.other.color | #E0E1DD | — |
| invalid, invalid.illegal | #FF3737 | — |
| keyword, storage.type, storage.modifier | #D29DF5 | — |
| keyword.control, constant.other.color, punctuation, meta.tag, 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 | #81B4FF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #B60000 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #81B4FF | — |
| meta.block variable.other | #CAD1E4 | — |
| support.other.variable, string.other.link | #FF3737 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #FF8B8B | — |
| 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 | #A9B8D8 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFDC4F | — |
| support.type | #81B4FF | — |
| 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, source.postcss support.type.property-name | #8090BE | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #6A7DB2 | — |
| variable.language | #6A7DB2 | italic |
| entity.name.method.js | #81B4FF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #81B4FF | — |
| entity.other.attribute-name | #D29DF5 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFDC4F | italic |
| entity.other.attribute-name.class | #FFDC4F | — |
| source.sass keyword.control | #81B4FF | — |
| markup.inserted | #FFE68C | — |
| markup.deleted | #FF3737 | — |
| markup.changed | #D29DF5 | — |
| string.regexp | #5D7BB4 | — |
| constant.character.escape | #5D7BB4 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #778DA9 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #7587B8 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #FF5B5B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF8080 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5B5B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF8080 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5B5B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF8080 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5B5B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF8080 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5B5B | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E0E1DD | — |
| text.html.markdown markup.inline.raw.markdown | #D29DF5 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #939393 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #51D451 | — |
| markup.italic | #FF3737 | italic |
| markup.bold, markup.bold string | #FF7171 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #FF7171 | bold |
| markup.underline | #FF6E6E | underline |
| markup.quote punctuation.definition.blockquote.markdown | #939393 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #81B4FF | — |
| string.other.link.description.title.markdown | #D29DF5 | — |
| constant.other.reference.link.markdown | #FFDC4F | — |
| markup.raw.block | #D29DF5 | — |
| markup.raw.block.fenced.markdown | #939393 | — |
| punctuation.definition.fenced.markdown | #818181 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #8a8a8a | — |
| variable.language.fenced.markdown | #8a8a8a | — |
| meta.separator | #939393 | bold |
| markup.table | #afafaf | — |
| meta.tag.metadata.doctype.html entity.name.tag, meta.tag.metadata.doctype.html entity.other.attribute-name.html, meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #A4A89D | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #E0E1DD | — |
| entity.name.tag | #42C47E | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #489C9F | |
| constant.character.entity, punctuation.definition.entity | #FF5B5B | — |
| string | #E0E1DD | italic |
| meta.selector, meta.selector entity, meta.selector entity punctuation, source.css entity.name.tag | #42C47E | |
| source.css variable | #A0D2B2 | italic |
| punctuation.definition.entity.css | #42C47E | — |
| source.css meta.property-name, source.css support.type.property-name | #CFD1CB | — |
| source.css support.type.vendored.property-name | #688E8F | — |
| meta.property-value, support.constant.property-value | #42C47E | — |
| source.css support.constant | #688E8F | italic |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #FFDC4F | |
| source.css support.function | #688E8F | italic |
| keyword.other.important | #42C47E | — |
| constant.other.color | #688E8F |
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}!`;
}