Dark Coffee
Publisher: sentientcoffeeThemes in package: 1
Dark VSCode theme with purple accents. Syntax highlighting extended from the Tomorrow Night theme.
Dark VSCode theme with purple accents. Syntax highlighting extended from the Tomorrow Night 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 |
|---|---|---|
| comment, punctuation.definition.comment | #627373 | italic |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #dd3636 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| support.other.variable | #f07178 | — |
| 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 | #b2ccd6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ff5370 | — |
| entity.name.method.js | #82aaff | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82aaff | — |
| entity.other.attribute-name | #c792ea | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #ffcb6b | italic |
| entity.other.attribute-name.class | #ffcb6b | — |
| source.sass keyword.control | #82aaff | — |
| markup.inserted | #c3e88d | — |
| markup.deleted | #ff5370 | — |
| markup.changed | #c792ea | — |
| string.regexp | #89ddff | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82aaff | italic |
| constant.other.object.key.js, string.unquoted.label.js | #ff5370 | italic |
| meta.structure.dictionary.json support.type.property-name.json | #c792ea | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffcb6b | — |
| 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 | #f78c6c | — |
| 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 | #ff5370 | — |
| 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 | #82aaff | — |
| 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 | #c17e70 | — |
| text.html.markdown, punctuation.definition.list_item.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.list.end.markdown | #b4b4b4 | — |
| heading.1.markdown | #c792ea | — |
| heading.2.markdown | #ffcb6b | — |
| heading.3.markdown | #f78c6c | — |
| heading.4.markdown | #ff5370 | — |
| heading.5.markdown | #82aaff | — |
| heading.6.markdown | #c17e70 | — |
| markup.raw.block.markdown | #f07178 | — |
| text.html.markdown markup.inline.raw.markdown, markup.inline.raw.string.markdown | #eeeeee | — |
| markup.italic | — | italic |
| markup.bold, markup.bold string | #b4b4b4 | 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 | — | bold italic |
| punctuation.definition.bold.markdown, punctuation.definition.heading.markdown, punctuation.definition.italic.markdown, punctuation.definition.raw.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown | #b4b4b444 | — |
| punctuation.definition.list.begin.markdown | #eeeeee | — |
| meta.link.reference.markdown markup.underline.link.markdown, meta.link.inline.markdown markup.underline.link.markdown, meta.image.inline.markdown markup.underline.link.image.markdown | #9668e8 | italic underline |
| string.other.link.title.markdown, meta.link.inline.markdown punctuation.definition.string.begin.markdown, meta.link.inline.markdown punctuation.definition.string.end.markdown, meta.link.reference.markdown punctuation.definition.string.begin.markdown, meta.link.reference.markdown punctuation.definition.string.end.markdown | #df75df | — |
| string.other.link.description.markdown | #b8e272 | — |
| markup.underline | #d4d4d4 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737e | — |
| markup.quote | — | italic |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, markup.fenced_code.block.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #eeeeee | — |
| variable.language.fenced.markdown | #65737e | — |
| meta.separator | #008dc5 | bold underline |
| markup.table | #eeffff | — |
| entity.other.attribute, support.other.attribute | — | bold |
| entity.name.type.class.templated | #ffeb60 | — |
| storage.type.class.doxygen | #5bd35f | italic underline |
| variable.other.enummember, entity.name.variable.enum-member | #c4e49a | — |
| entity.name.function, entity.name.function.member, entity.name.function.member.static, entity.name.function.templated, keyword.other.special-method, support.function | #82b7e1 | — |
| variable.paramater, entity.name.variable.parameter | #66cccc | — |
| variable.other.global | #5972bb | — |
| constant.language, keyword, keyword.control, keyword.operator.at, keyword.operator.cast, keyword.operator.noexcept, keyword.operator.sizeof, storage.modifier.specifier.functional.post-parameters, storage.type.built-in, storage.type.class, storage.type.enum, storage.type.struct, storage.type.primitive, storage.type.template | #df75df | — |
| entity.name.label | #c8c8c8 | — |
| variable.language | #82b7e1 | — |
| variable.other.global, entity.name.variable.local | #c17e70 | — |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro, entity.name.variable.preprocessor.symbol | #82b7e1 | — |
| entity.name.variable.field, variable.other.object.property, variable.other.property, variable.other.constant.property | #c7529e | — |
| entity.name.namespace, entity.name.scope-resolution | #ffeb60 | — |
| keyword.operator.new, keyword.other.new | #86b5e3 | — |
| constant.numeric, entity.name.operator.custom-literal.number, keyword.other.unit | #ff9f40 | — |
| keyword.operator, storage.modifier.reference, storage.modifier.pointer, punctuation, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded | #d4d4d4 | — |
| entity.name.function.operator, entity.name.function.operator.member | #86b5e3 | — |
| entity.other.attribute-name, keyword.control.directive, keyword.preprocessor, meta.preprocessor.macro, punctuation.definition.directive | #fbb840 | — |
| variable.other.property.static | #f748ba | — |
| storage.type.annotation, storage.type.modifier, storage.modifier | #f92672 | — |
| constant.other.symbol, constant.other.key, entity.name.operator.custom-literal, entity.name.operator.custom-literal.string, entity.other.inherited-class, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string, string | #b8e272 | — |
| constant.character.escape | #ff8040 | — |
| string constant.other.placeholder | #80ff80 | — |
| entity.name.type, entity.name.struct, entity.name.type.class, entity.name.type.struct, entity.name.type.enum, markup.changed.git_gutter, meta.use.php, support.class, support.other.namespace.use.php, support.other.namespace.php, support.type, support.type.sys-types | #ffeb60 | — |
| storage.type.cs | #ffeb60 | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python | #627373 | italic |
| string.quoted.docstring.multi.python keyword.codetag.notation.python | #5bd35f | — |
| string.quoted.docstring.multi.python keyword.control.flow.python, string.quoted.docstring.multi.python constant.language.python | #eeeeee | — |
| storage.type.function.python | #df75df | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #f92672 | — |
| meta.function-call.python meta.function-call.generic.python | #82b7e1 | — |
| variable.parameter.function.language.python, variable.parameter.function-call.python | #66cccc | — |
| keyword.operator.logical.python | #df75df | — |
| support.variable.magic.python | #f748ba | — |
| constant.other.caps.python | #5972bb | — |
| support.class.dart | #ffeb60 | — |
| variable.language.dart, variable.parameter.dart | #f92672 | |
| keyword.other.import | #fbb840 | |
| source.dart string.interpolated.expression | #f92672 | |
| source.dart string.interpolated variable.parameter.dart | #d4d4d4 | — |
| storage.type.odin | #df75df | — |
| support.type.odin | #ffeb60 | — |
| keyword.tag.odin | #fbb840 | — |
| storage.type.jai | #ffeb60 | — |
| keyword.declaration.jai | #d4d4d4 | — |
| variable.other.member.jai | #c7529e | — |
| variable.other.constant.declaration.jai | #5972bb | — |
| support.variable.jai | #df75df | — |
| keyword.control.import.directive.jai, keyword.other.directive.string.jai, keyword.other.directive.jai | #fbb840 | — |
| string-quoted.other.import.jai | #b8e272 | — |
| variable.parameter.jai | #66cccc | — |
| variable.enum.jai | #c4e49a | — |
| invalid.deprecated.jai | #dd3636 | italic |
| string.interpolated.indexes.glsl | #c7529e | — |
| keyword.control.preprocessor.glsl, keyword.directive.preprocessor.glsl | #fbb840 | — |
| storage.type.glsl | #df75df | — |
| variable.language.glsl | #5972bb | — |
| entity.name.command.shell, support.function.builtin.shell | #82b7e1 | — |
| constant.other.option, constant.other.option.shell, constant.other.option.dash.shell, string.unquoted.argument.shell | #d4d4d4 | — |
| variable.language.special.shell, variable.parameter.positional.shell, punctuation.section.bracket.curly.variable.begin.shell, punctuation.section.bracket.curly.variable.end.shell | #f92672 | — |
| punctuation.definition.comment.shebang.shell, meta.shebang.shell | #627373 | bold |
| keyword.operator.logical.shell | #df75df | — |
| support.variable.automatic.powershell, punctuation.definition.variable.powershell | #f92672 | — |
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}!`;
}