CyberTrauma's Dark Theme v2
Publisher: CyberTraumaThemes in package: 1
.
.
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 | #108046 | italic |
| string.quoted, string.template, punctuation.definition.string | #f77326 | — |
| string.template meta.embedded.line | #b3aeae | — |
| variable, entity.name.variable | #1fc9cf | — |
| variable.language | #fe4450 | bold |
| variable.parameter | — | italic |
| storage.type, storage.modifier | #fbff00 | — |
| constant | #ff1500 | — |
| string.regexp | #ff1500 | — |
| constant.numeric | #f51400 | — |
| constant.language | #ff1500 | — |
| constant.character.escape | #36f9f6 | — |
| entity.name | #fc0011 | — |
| entity.name.tag | #00ff8c | — |
| punctuation.definition.tag | #00fffb | — |
| entity.other.attribute-name | #ffcc00 | — |
| entity.other.attribute-name.html | #ffcc00 | italic |
| entity.name.type, meta.attribute.class.html | #ff0011 | — |
| entity.other.inherited-class | #ff5201 | — |
| entity.name.function, variable.function | #00fffb | — |
| keyword.control.export.js, keyword.control.import.js | #00ff8c | — |
| constant.numeric.decimal.js | #00e1ff | — |
| keyword | #ffcc00 | — |
| keyword.control | #ffcc00 | — |
| keyword.operator | #ffcc00 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #ffcc00 | — |
| keyword.other.unit | #ff3e2c | — |
| support | #ff1d2c | — |
| support.function | #0ffffb | — |
| support.variable | #ff7edb | — |
| meta.object-literal.key, support.type.property-name | #ff32c5 | — |
| punctuation.separator.key-value | #ffffff | — |
| punctuation.section.embedded | #ffcc00 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #00ff8c | — |
| support.type.property-name.css, support.type.property-name.json | #00ff8c | — |
| switch-block.expr.js | #00ff8c | — |
| variable.other.constant.property.js, variable.other.property.js | #0ae2ff | — |
| constant.other.color | #ff402e | — |
| support.constant.font-name | #ff2d19 | — |
| entity.other.attribute-name.id | #00fffb | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #D50 | — |
| support.function.misc.css | #ff2331 | — |
| markup.heading, entity.name.section | #ff14bc | — |
| text.html, keyword.operator.assignment | #ffffffee | — |
| markup.quote | #ffffffcc | italic |
| beginning.punctuation.definition.list | #ff00b7 | — |
| markup.underline.link | #D50 | — |
| string.other.link.description | #ff321f | — |
| meta.function-call.generic.python | #1bfffb | — |
| variable.parameter.function-call.python | #2bffa0 | — |
| storage.type.cs | #ff2331 | — |
| entity.name.variable.local.cs | #ff28c2 | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #ff26c2 | — |
| constant.other.placeholder.c | #28fd9d | italic |
| keyword.control.directive.include.c, keyword.control.directive.define.c | #22ff9b | — |
| storage.modifier.c | #ff2635 | — |
| source.cpp keyword.operator | #ffd21d | — |
| constant.other.placeholder.cpp | #2cffa0 | italic |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #2effa1 | — |
| storage.modifier.specifier.const.cpp | #fc2735 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #1afaf6 | — |
| source.elixir entity.name.function | #17ff97 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #1af8f4 | — |
| source.elixir punctuation.definition.string | #2aff9f | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #06ff8f | — |
| source.elixir .punctuation.binary.elixir | #ff00b7 | italic |
| entity.global.clojure | #00fffb | bold |
| storage.control.clojure | #13fffb | italic |
| meta.metadata.simple.clojure, meta.metadata.map.clojure | #ff1c2b | italic |
| meta.quoted-expression.clojure | — | italic |
| meta.symbol.clojure | #ff31c5 | — |
| source.go | #ff2ac3 | — |
| source.go meta.function-call.go | #00fffb | — |
| 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 | #ffcf0d | — |
| source.go storage.type, source.go keyword.struct.go, source.go keyword.interface.go | #0aff91 | — |
| source.go constant.language.go, source.go constant.other.placeholder.go, source.go variable | #17dffa | — |
| markup.underline.link.markdown, markup.inline.raw.string.markdown | #29ff9e | italic |
| string.other.link.title.markdown | #ffce0b | — |
| markup.heading.markdown, entity.name.section.markdown | #ff35c6 | bold |
| markup.italic.markdown | #00e1ff | italic |
| markup.bold.markdown | #2EE2FA | bold |
| punctuation.definition.quote.begin.markdown, markup.quote.markdown | #06ff8f | — |
| source.dart, source.python, source.scala | #06ff8f | — |
| string.interpolated.single.dart | #fd4736 | — |
| variable.parameter.dart | #1eff9a | — |
| constant.numeric.dart | #00e1ff | — |
| variable.parameter.scala | #2EE2FA | — |
| meta.template.expression.scala | #1eff9a | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}