Darksome
Publisher: Roche KollieThemes in package: 1
A visually stunning dark theme for an immersive and productive coding experience.
A visually stunning dark theme for an immersive and productive coding experience.
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 |
|---|---|---|
| text, source, meta | #a7b7c7 | — |
| markup.raw | #4fc788 | — |
| keyword, keyword.operator.new, support.type.primitive, meta.type.annotation | #c46ce7 | — |
| punctuation, punctuation.section, keyword.operator, punctuation.separator, punctuation.terminator, punctuation.definition, meta.brace.curly, meta.brace.round, meta.brace.square, meta.delimiter, meta.delimiter.period, meta.delimiter.comma, meta.delimiter.semicolon, meta.delimiter.colon, meta.delimiter.hash, meta.delimiter.at, meta.method-call.without-arguments.js, meta.method-call.with-arguments.js, punctuation.section.method.begin.bracket.curly, punctuation.section.method.end.bracket.curly, punctuation.section.class.begin, punctuation.section.class.end, punctuation.section.property-list.begin.bracket.curly, punctuation.section.property-list.end.bracket.curly, punctuation.definition.entity.begin.bracket.square, punctuation.definition.entity.end.bracket.square, punctuation.section.media.begin.bracket.curly, punctuation.section.media.end.bracket.curly, punctuation.section.media-query-list.begin.bracket.curly, punctuation.section.media-query-list.end.bracket.curly, punctuation.section.media-query.begin.bracket.curly, punctuation.section.media-query.end.bracket.curly, punctuation.section.function.begin.bracket.curly, punctuation.section.function.end.bracket.curly, punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, punctuation.section.function.begin.bracket.square, punctuation.section.function.end.bracket.square | #a7b7c7 | — |
| comment, comment.block, comment.block.html, punctuation.definition.comment | #6a6a6a | italic |
| #4ec888 | — | |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, punctuation.definition.string.template, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #4fc788 | — |
| entity.name.type.class, variable | #56a8f5 | — |
| entity.name.function, meta.method-call, entity.name.function.member, keyword.operator.accessor.js, variable.other.object.property.java, meta.member.access.python, variable.other.property | #abcdef | — |
| function, entity.name.function | #86DE74 | — |
| storage.type, storage.modifier.java, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc | #c54967 | — |
| support.type.object, support.class | #56a8f5 | — |
| constant.numeric, meta.attribute.width string.quoted.double.html, meta.attribute.height string.quoted.double.html, meta.element.object.svg.circle string.quoted.double.html, meta.element.object.svg.ellipse string.quoted.double.html, meta.element.object.svg.line string.quoted.double.html | #2aabb8 | — |
| string | #4fc788 | — |
| comment.block, comment.block.documentation, comment.block.documentation.js, string.quoted.docstring.multi.python | #629755 | italic |
| text.html.derivative | #a7b7c7 | — |
| tag, entity.name.tag, entity.name.tag.html, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, meta.embedded.line.php, meta.embedded.block.php, text.html.php, source.php, meta.tag.other.php, meta.tag.other.coffee.php, punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.section.embedded.begin.php, meta.embedded.block.php | #c54967 | — |
| meta.tag.inline entity.name.tag.html, meta.tag.inline entity.name.tag.xml, meta.tag.inline entity.name.tag.doctype, meta.tag.inline entity.name.tag.script, meta.tag.inline entity.name.tag.style, meta.tag.inline meta.tag | #f78d6c | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #808080 | — |
| entity.other.attribute-name, support.constant.property-value.css, support.constant.font-name.css | #9b7dce | — |
| punctuation.definition.entity.html, constant.character.entity.named | #9b7dce | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #a7b7c7 | — |
| string.quoted.double.html | #ce9278 | — |
| meta.attribute.fill.html, meta.attribute.fill.html string.quoted.double.html, meta.attribute.fill.html string.quoted.single.html, meta.attribute.fill.html punctuation.definition.string.begin.html, meta.attribute.fill.html punctuation.definition.string.end.html | #ce9278 | — |
| meta.attribute.href.html string.quoted.double.html, meta.attribute.href.html string.quoted.single.html, meta.attribute.src.html string.quoted.double.html, meta.attribute.src.html string.quoted.single.html, meta.attribute.action.html string.quoted.double.html, meta.attribute.action.html string.quoted.single.html, meta.attribute.unrecognized.xmlns.html string.quoted.double.html, meta.attribute.unrecognized.xmlns.html string.quoted.single.html | #a9dd76 | — |
| meta.attribute.id.html string.quoted.double.html, meta.attribute.id.html string.quoted.single.html, entity.other.attribute-name.id.css | #4ec888 | bold |
| meta.attribute.class.html string.quoted.double.html, meta.attribute.class.html string.quoted.single.html, entity.other.attribute-name.class.css | #4ec1ff | bold |
| punctuation.definition.markdown, markup.fenced_code.block.markdown | #c46ce7 | — |
| markup.heading.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown, markup.heading.atx.1.markdown, markup.heading.atx.2.markdown, markup.heading.atx.3.markdown, markup.heading.atx.4.markdown, markup.heading.atx.5.markdown, markup.heading.atx.6.markdown | #2c97ff | bold |
| markup.heading.markdown punctuation.definition.heading.markdown | #a7b7c7 | bold |
| meta.paragraph.markdown, text.html.markdown, text.html.markdown | #a7b7c7 | — |
| markup.bold.markdown | #2c97ff | bold |
| markup.underline.link.markdown | #4ec1ff | — |
| string.other.link.title.markdown | #abcdef | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.bold.markdown, markup.list.unnumbered.markdown | #6796E6 | — |
| punctuation.definition.raw.markdown | #c54a67 | — |
| markup.inline.raw.string.markdown | #9b6ce7 | — |
| meta.paragraph.markdown, text.html.markdown | #dadada | — |
| markup.fenced_code.block.markdown | #ffffff99 | — |
| fenced_code.block.language.markdown | #9b6ce7 | — |
| punctuation.definition.keyword.css, keyword.control.at-rule.import.css, meta.at-rule.import.css, keyword.control.at-rule.media.css, meta.at-rule.media.header.css, entity.name.tag.css, entity.name.tag.scss, entity.name.tag.sass, entity.name.tag.less, entity.name.tag.stylus, entity.name.tag.css, meta.property-list.css | #c54967 | — |
| meta.function.url.css string.quoted.single.css, meta.function.url.css punctuation.definition.string.begin.css, meta.function.url.css punctuation.definition.string.end.css | #2a97ff | — |
| meta.at-rule.media.header.css | #c46ce7 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, support.type.property-name.less, support.type.property-name.stylus, support.type.property-name.css, punctuation.definition.variable.property.css, meta.property-list.css, support.type.property-name.js | #abcdef | — |
| punctuation.definition.variable.property.css | #a7b7c7 | — |
| support.type.vendored.property-name.css, support.type.vendored.property-name.scss, support.type.vendored.property-name.sass, support.type.vendored.property-name.less, support.type.vendored.property-name.stylus | #611d70 | — |
| support.constant.property-value.css, support.constant.font-name.css | #56a8f5 | — |
| #56a8f5 | — | |
| string.quoted.single.css | #4fc788 | — |
| punctuation.definition.entity.css | #9b6ce7 | — |
| entity.other.attribute-name.pseudo-class.css | #9b7dce | — |
| entity.other.attribute-name.id.css punctuation.definition.entity.css | #4ec888 | bold |
| entity.other.attribute-name.class.css punctuation.definition.entity.css, entity.other.attribute-name.class.css | #50c1ff | bold |
| support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-extended-color-name.css, constant.other.color.rgb-value.hex.css | #9b7dce | — |
| constant.numeric.css keyword.other.unit | #a9dd76 | — |
| keyword.operator.logical.and.media.css | #c46ce7 | — |
| invalid.illegal, invalid.deprecated, invalid.illegal.unrecognized-tag.html, entity.name.invalid.html, meta.tag.other.invalid.end.html, meta.element.other.invalid.html, meta.element.other.invalid.html | #f34436 | — |
| support.function.misc.css, meta.function.color.css, support.function.url.css, meta.function.url.css | #a9dd76 | — |
| keyword.operator.arithmetic.css | #e2721c | bold |
| keyword.control.module.js | #c54967 | — |
| support.type.property-name | #56a8f5 | — |
| string.quoted.double.json, meta.structure.dictionary.value.json, meta.structure.dictionary.json | #4fc788 | — |
| variable.other.property.js, string.quoted.double.js variable.other.property.js, string.unquoted.js, string.unquoted.label.js, string.unquoted.label.js punctuation.definition.string.begin.js, string.unquoted.label.js punctuation.definition.string.end.js | #abcdef | — |
| meta.definition.variable.name entity.name.variable.js | #c5fa67 | — |
| keyword.other.DML.sql | #c46ce7 | — |
| entity.name.tag.template.html.vue, support.class.component.open.jsx | #1ccd86 | — |
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}!`;
}