Plasma Theme
Publisher: EclipterThemes in package: 1
ยท A simple dark violet color theme ๐
ยท A simple dark violet color 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 |
|---|---|---|
| source.dart, source.python, source.scala | #9900ff | โ |
| comment | #e2e2e2 | italic |
| string.quoted, string.template, punctuation.definition.string, string.quoted.docstring.multi | #ff58fc | โ |
| string.template meta.embedded.line | #b6b1b1 | โ |
| variable | #ff6868 | โ |
| entity.name.variable | #68ff68 | โ |
| variable.language | #FF8C00 | bold |
| variable.parameter | #6a2eff | italic |
| constant | #f97e72 | โ |
| string.regexp | #f97e72 | โ |
| constant.numeric | #406aff | โ |
| constant.language | #f97e72 | โ |
| constant.character.escape | #36f9f6 | โ |
| entity.name | #4870df | โ |
| constant.other.color | #f97e72 | โ |
| support.constant.font-name | #f97e72 | โ |
| keyword | #7a53d4 | โ |
| keyword.operator | #53a5d4 | โ |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #53d49e | โ |
| keyword.other.unit | #f97e72 | โ |
| support | #5e00e1 | โ |
| support.function | #62e5ff | โ |
| support.variable | #ff7edb | โ |
| meta.object-literal.key, support.type.property-name | #7ab1f8 | โ |
| punctuation.separator.key-value | #b6b1b1 | โ |
| punctuation.section.embedded | #53d49e | โ |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #72f1b8 | โ |
| entity.name.tag | #b78aff | โ |
| punctuation.definition.tag | #8de4ff | โ |
| entity.other.attribute-name | #ff3bef | โ |
| entity.other.attribute-name.html | #77b7ff | italic |
| entity.name.type, meta.attribute.class.html | #fe4450 | โ |
| entity.other.inherited-class | #D50 | โ |
| entity.name.function, variable.function | #57dae4 | โ |
| switch-block.expr.js | #72f1b8 | โ |
| keyword.control.export.js, keyword.control.import.js | #ff3bef | โ |
| constant.numeric.decimal.js | #ff607b | โ |
| variable.other.constant.property.js, variable.other.property.js | #2ee2fa | โ |
| entity.other.attribute-name.id | #53abd4 | โ |
| support.type.property-name.css, support.type.property-name.json | #8ba6ff | โ |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #d45393 | โ |
| support.function.misc.css | #d45353 | โ |
| 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 | #62e5ff | โ |
| storage.type.class.python | #ffc700 | bold |
| keyword.control.import | #ff4343 | โ |
| keyword.control.flow | #ff6969 | โ |
| punctuation.separator.period.python, punctuation.separator.parameters.python | #ff67f0 | โ |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #526fff | โ |
| variable.parameter.function-call.python | #72f1b8 | โ |
| punctuation.definition.decorator.python, support.type.python | #00ff85 | โ |
| storage.type.function | #4200ea | bold |
| 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 | #53d49e | โ |
| 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 | #53d49e | โ |
| 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 | #53d49e | โ |
| 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 | โ |
| 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}!`;
}