ThemeDock
Publisher: DexThemes in package: 21
Color each VS Code window from a swatch grid in the sidebar, and switch between ten bundled themes without the command palette.
Color each VS Code window from a swatch grid in the sidebar, and switch between ten bundled themes without the command palette.
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, 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 | #848bbd | italic |
| string.quoted, string.template, punctuation.definition.string | #ff8b39 | — |
| string.template meta.embedded.line | #b6b1b1 | — |
| variable, entity.name.variable | #ff7edb | — |
| variable.language | #fe4450 | bold |
| variable.parameter | — | italic |
| storage.type, storage.modifier | #fede5d | — |
| constant | #f97e72 | — |
| string.regexp | #f97e72 | — |
| constant.numeric | #f97e72 | — |
| constant.language | #f97e72 | — |
| constant.character.escape | #36f9f6 | — |
| entity.name | #fe4450 | — |
| entity.name.tag | #72f1b8 | — |
| punctuation.definition.tag | #36f9f6 | — |
| entity.other.attribute-name | #fede5d | — |
| entity.other.attribute-name.html | #fede5d | italic |
| entity.name.type, meta.attribute.class.html | #fe4450 | — |
| entity.other.inherited-class | #D50 | — |
| entity.name.function, variable.function | #36f9f6 | — |
| keyword.control.export.js, keyword.control.import.js | #72f1b8 | — |
| constant.numeric.decimal.js | #2EE2FA | — |
| keyword | #fede5d | — |
| keyword.control | #fede5d | — |
| keyword.operator | #fede5d | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #fede5d | — |
| keyword.other.unit | #f97e72 | — |
| support | #fe4450 | — |
| support.function | #36f9f6 | — |
| support.variable | #ff7edb | — |
| meta.object-literal.key, support.type.property-name | #ff7edb | — |
| punctuation.separator.key-value | #b6b1b1 | — |
| punctuation.section.embedded | #fede5d | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #72f1b8 | — |
| support.type.property-name.css, support.type.property-name.json | #72f1b8 | — |
| switch-block.expr.js | #72f1b8 | — |
| variable.other.constant.property.js, variable.other.property.js | #2ee2fa | — |
| constant.other.color | #f97e72 | — |
| support.constant.font-name | #f97e72 | — |
| entity.other.attribute-name.id | #36f9f6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #D50 | — |
| support.function.misc.css | #fe4450 | — |
| markup.heading, entity.name.section | #ff7edb | — |
| text.html, keyword.operator.assignment | #ffffffee | — |
| markup.quote | #b6b1b1cc | italic |
| beginning.punctuation.definition.list | #ff7edb | — |
| markup.underline.link | #D50 | — |
| string.other.link.description | #f97e72 | — |
| meta.function-call.generic.python | #36f9f6 | — |
| variable.parameter.function-call.python | #72f1b8 | — |
| storage.type.cs | #fe4450 | — |
| entity.name.variable.local.cs | #ff7edb | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #ff7edb | — |
| constant.other.placeholder.c | #72f1b8 | italic |
| keyword.control.directive.include.c, keyword.control.directive.define.c | #72f1b8 | — |
| storage.modifier.c | #fe4450 | — |
| source.cpp keyword.operator | #fede5d | — |
| constant.other.placeholder.cpp | #72f1b8 | italic |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #72f1b8 | — |
| storage.modifier.specifier.const.cpp | #fe4450 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #36f9f6 | — |
| source.elixir entity.name.function | #72f1b8 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #36f9f6 | — |
| source.elixir punctuation.definition.string | #72f1b8 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #72f1b8 | — |
| source.elixir .punctuation.binary.elixir | #ff7edb | italic |
| entity.global.clojure | #36f9f6 | bold |
| storage.control.clojure | #36f9f6 | italic |
| meta.metadata.simple.clojure, meta.metadata.map.clojure | #fe4450 | italic |
| meta.quoted-expression.clojure | — | italic |
| meta.symbol.clojure | #ff7edbff | — |
| source.go | #ff7edbff | — |
| source.go meta.function-call.go | #36f9f6 | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #fede5d | — |
| source.go storage.type, source.go keyword.struct.go, source.go keyword.interface.go | #72f1b8 | — |
| source.go constant.language.go, source.go constant.other.placeholder.go, source.go variable | #2EE2FA | — |
| markup.underline.link.markdown, markup.inline.raw.string.markdown | #72f1b8 | italic |
| string.other.link.title.markdown | #fede5d | — |
| markup.heading.markdown, entity.name.section.markdown | #ff7edb | bold |
| markup.italic.markdown | #2EE2FA | italic |
| markup.bold.markdown | #2EE2FA | bold |
| punctuation.definition.quote.begin.markdown, markup.quote.markdown | #72f1b8 | — |
| source.dart, source.python, source.scala | #ff7edbff | — |
| string.interpolated.single.dart | #f97e72 | — |
| variable.parameter.dart | #72f1b8 | — |
| constant.numeric.dart | #2EE2FA | — |
| variable.parameter.scala | #2EE2FA | — |
| meta.template.expression.scala | #72f1b8 | — |
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}!`;
}