Dark Slot
Publisher: Darko KuzmanovicThemes in package: 2
A sleek theme inspired by the Slot KDE Plasma theme. Available in dark and light variants with deep navy/light backgrounds and teal accents.
A sleek theme inspired by the Slot KDE Plasma theme. Available in dark and light variants with deep navy/light backgrounds and teal accents.
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 | #6a7383 | italic |
| comment.block.documentation, comment.block.javadoc, string.quoted.docstring | #6a737d | italic |
| string, string.quoted, string.template | #98c379 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded.line | #c678dd | — |
| string.regexp | #56b6c2 | — |
| constant.character.escape | #56b6c2 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #d19a66 | — |
| constant, constant.other | #d19a66 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #d19a66 | italic |
| keyword, keyword.other | #c678dd | italic |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.return, keyword.control.trycatch | #c678dd | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.ternary | #56b6c2 | |
| keyword.operator.new, keyword.operator.expression, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.logical.python | #c678dd | italic |
| storage, storage.type, storage.modifier | #c678dd | italic |
| storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.type | #c678dd | italic |
| entity.name.function, meta.function-call, variable.function, support.function | #61afef | — |
| meta.method.declaration entity.name.function, entity.name.method | #61afef | — |
| entity.name.class, entity.name.type.class, support.class, entity.other.inherited-class | #e5c07b | — |
| entity.name.type.interface | #56b6c2 | — |
| entity.name.type, support.type, support.type.primitive | #e5c07b | — |
| entity.name.type.enum | #e5c07b | — |
| entity.name.namespace, entity.name.type.namespace, entity.name.type.module | #e5c07b | — |
| meta.decorator, meta.decorator entity.name.function, meta.annotation, punctuation.decorator, storage.type.annotation | #d29922 | italic |
| variable, variable.other | #e06c75 | — |
| variable.other.readwrite, variable.other.assignment | #e06c75 | — |
| variable.other.constant | #d19a66 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #e06c75 | — |
| variable.parameter, meta.parameter, meta.function.parameters variable | #d19a66 | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #e06c75 | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #abb2bf | — |
| punctuation.bracket, punctuation.section, meta.brace | #abb2bf | — |
| entity.name.tag, punctuation.definition.tag | #e06c75 | — |
| entity.other.attribute-name | #d19a66 | italic |
| string.quoted.double.html, string.quoted.single.html | #98c379 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #e5c07b | — |
| support.type.property-name.css, meta.property-name.css | #56b6c2 | — |
| support.constant.property-value.css, meta.property-value.css | #d19a66 | — |
| keyword.other.unit.css | #e06c75 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #56b6c2 | italic |
| support.type.property-name.json | #e06c75 | — |
| string.quoted.double.json | #98c379 | — |
| entity.name.section.markdown, heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading | #61afef | bold |
| markup.bold, punctuation.definition.bold.markdown | #d19a66 | bold |
| markup.italic, punctuation.definition.italic.markdown | #c678dd | italic |
| markup.inline.raw.string.markdown, markup.raw.inline | #98c379 | — |
| markup.fenced_code.block.markdown, markup.raw.block | #c9d1d9 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #58a6ff | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #c678dd | — |
| punctuation.definition.list.begin.markdown | #e06c75 | — |
| markup.quote.markdown | #6a7383 | italic |
| entity.name.tag.yaml | #e06c75 | — |
| string.unquoted.plain.out.yaml, string.quoted.double.yaml, string.quoted.single.yaml | #98c379 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #d19a66 | italic |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell, variable.other.special.shell | #e06c75 | — |
| support.function.builtin.shell, entity.name.command.shell | #61afef | — |
| support.function.magic.python | #56b6c2 | italic |
| variable.parameter.function.language.special.self.python | #e06c75 | italic |
| string.quoted.docstring.multi.python | #6a7383 | italic |
| meta.type.parameters entity.name.type | #56b6c2 | — |
| meta.type.annotation entity.name.type | #e5c07b | — |
| entity.name.package.go | #e5c07b | — |
| entity.name.import.go | #98c379 | — |
| punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust | #56b6c2 | italic |
| entity.name.function.macro.rust | #d29922 | — |
| meta.preprocessor, keyword.control.directive | #c678dd | — |
| string.quoted.other.include | #98c379 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #c678dd | italic |
| invalid, invalid.illegal | #f85149 | — |
| invalid.deprecated | #d29922 | strikethrough |
| markup.inserted, meta.diff.header.to-file | #3fb950 | — |
| markup.deleted, meta.diff.header.from-file | #f85149 | — |
| markup.changed | #d29922 | — |
| meta.diff.range | #c678dd | — |
| markup.strikethrough, punctuation.definition.strikethrough.markdown | #5c6370 | strikethrough |
| punctuation.definition.heading.markdown | #61afef | bold |
| entity.name.tag.js, entity.name.tag.tsx, support.class.component.js, support.class.component.tsx | #e5c07b | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #c678dd | — |
| punctuation.separator.table.markdown | #5c6370 | — |
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}!`;
}