GrayJack Themes
Publisher: GrayJackThemes in package: 27
My personal take on classic/famous themes
My personal take on classic/famous themes
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 | #6272A4 | italic |
| punctuation, punctuation.separator.period.python, punctuation.definition.tag, keyword.operator.sigil.rust, keyword.operator.key-value.rust, keyword.operator.access.dot.rust, koka.type | #8a96bb | — |
| variable, meta.function-call.arguments, string constant.other.placeholder, meta.function-call.java, storage.modifier.import.java, variable.other.object, variable.other.readwrite, support.variable.swift, meta.function-call.swift | #F8F8F2 | — |
| #F8F8F2 | underline | |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5555 | — |
| keyword, storage.type, storage.modifier, punctuation.definition.directive.c, punctuation.definition.directive.cpp, storage.type.impl.rust, keyword.type.go, storage.class.d, variable.language.super.rust, markup.deleted.git_gutter, entity.name.tag.css, punctuation.definition.keyword.css, entity.name.tag.wildcard.css, storage.struct.racket | #FF79C6 | — |
| storage.control, keyword.control, constant.other.color, punctuation.separator.inheritance.php, punctuation.separator.key-value.html, punctuation.section.embedded, punctuation.symbol.match-branch, punctuation.symbol.return-type, keyword.other.template, keyword.other.substitution, punctuation.separator.pointer-access.c, punctuation.definition.function.pointer.dereference.cpp, punctuation.separator.namespace.access.cpp, punctuation.separator.scope-resolution.function.definition.cpp, punctuation.separator.scope-resolution.cpp, punctuation.separator.colon.python, punctuation.separator.annotation.result.python, koka.op | #FF79C6 | — |
| entity.name.tag, meta.tag.sgml, variable.key.toml | #FF79C6 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, keyword.other.common.function, entity.name.command | #50FA7B | — |
| entity.name.function.core.janet, entity.name.function.call.janet | #8BE9FD | — |
| support.function.macro.rust, support.function.macro.builtin.rust, support.function.macro.core.rust, entity.name.type.macro.rust, entity.name.function.macro.rust, entity.name.function.macro.rules.rust, support.function.macro.julia, support.function.builtin.zig | #3884ef | |
| support.enum.core.rust, entity.name.type.option.rust, entity.name.type.result.rust, constant.other.haskell, variable.other.enummember.cpp, variable.other.enummember.zig, variable.other.enummember.swift | #3884ef | underline |
| variable.constant.error.zig | #3884ef | underline italic |
| storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust, variable.other.generic-type.haskell, punctuation.definition.template-expression, constant.other.placeholder.c, punctuation.definition.evaluation, variable.language.special.shell, routine.arm, variable.name.labels.arm64 | #FF6E6E | italic |
| keyword.operator.misc.question-mark.rust, keyword.operator.question.rust, keyword.operator.misc.special.rust, keyword.operator.macro.dollar.rust, variable.other.metavariable.name.rust, punctuation.section.embedded.meta.tag.format.rust, keyword.control.shortfn.janet, storage.control.shortfn.janet, entity.name.package.go | #FF6E6E | — |
| punctuation.definition.interpolation.rust, constant.character.format.placeholder.other.python, punctuation.section.embedded.begin, punctuation.section.embedded.end | #FF6E6E | bold |
| entity.name.type.module.ts, koka.moduleid | #9da7c6 | — |
| meta.block variable.other | #FF5555 | — |
| support.other.variable, string.other.link | #FF79C6 | — |
| constant.literal, constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.other.constant, constant.other.boolean, constant.other.caps.python, keyword.constant.bool.zig, keyword.constant.default.zig | #BD93F9 | — |
| string, punctuation.definition.string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.char.rust | #F1FA8C | — |
| text.html.derivative meta.embedded | #adb5cf | — |
| keyword.other.unsafe | #FF5555 | — |
| meta.attributes, entity.name.function.attribute, meta.preprocessor.pragma.nim, punctuation.pragma.start.nim, punctuation.pragma.end.nim, meta.attribute.rust, meta.attribute.rust keyword.operator.namespace.rust, punctuation.brackets.attribute.rust, punctuation.definition.attribute.rust, entity.name.function.preprocessor.nim, constant.other.linkage.d, variable.key.array.table.toml, support.function.attribute.fsharp, support.pragma.block.agda, punctuation.definition.pragma.agda, storage.modifier.attribute.swift | #FFFFA5 | — |
| meta.attribute.rust entity.name.type.rust | #FFFFA5 | italic |
| variable.other.property, entity.name.variable.field, variable.other.member, meta.member, variable.other.object.property, variable.object.property, entity.name.variable.property | #FF6E6E | — |
| variable.parameter, keyword.other.self.rust, meta.parens.block.c, variable.css, variable.language.closure-parameter.swift, koka.id.param | #FFB86C | — |
| constant.keyword.janet | #FFB86C | — |
| keyword.other.racket | #FFB86C | italic |
| support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.table.toml, variable.key.table.toml, storage.type.haskell, storage.type.java, storage.type.primitive.java, storage.type.object.array.java, storage.type.c, storage.type.built-in.c, meta.function.definition.parameters.c, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, entity.name.class.kotlin, storage.type.go, storage.type.boolean.go, storage.type.byte.go, storage.type.error.go, storage.type.numeric.go, storage.type.rune.go, storage.type.string.go, storage.type.uintptr.go, storage.type.concrete.nim, storage.type.basic-type.d, storage.type.d, support.type.python, basicTypes.nim, meta.class.stanza.dune, storage.type.cs, entity.name.struct.racket, koka.type.typecon | #8BE9FD | — |
| support.type, entity.name.type, keyword.type, storage.type.built-in.primitive.c, storage.type.string.python, variable.other.metavariable.specifier.rust, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.class.css | #8BE9FD | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #FF6E6E | — |
| variable.language | #FFB86C | italic |
| entity.name.method.js | #50FA7B | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #50FA7B | — |
| entity.other.attribute-name | #FFFFA5 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.html | #8BE9FD | italic |
| entity.other.attribute-name.class | #8BE9FD | italic |
| source.sass keyword.control | #FFFFA5 | — |
| markup.inserted | #50FA7B | — |
| markup.deleted | #FF5555 | — |
| markup.changed | #FF79C6 | — |
| string.regexp | #FFB86C | — |
| constant.character.escape | #BD93F9 | italic |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, punctuation.definition.decorator.python, meta.function.decorator.python, entity.name.function.decorator.python, punctuation.definition.annotation.java, storage.type.annotation.java, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #3884ef | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF79C6 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #FF6E6E | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFB86C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFFFA5 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #69FF94 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #5596f1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6ACFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF92DF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A4FFFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFB86C | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #F8F8F2 | — |
| text.html.markdown markup.inline.raw.markdown | #FF79C6 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #ececdc | — |
| heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown, heading.1.quarto punctuation.definition.heading.quarto, heading.1.quarto, markup.heading.atx.1.mdx, markup.heading.atx.1.mdx punctuation.definition.heading.mdx, markup.heading.setext.1.markdown, markup.heading.heading-0.asciidoc | #FF6E6E | bold |
| heading.2.markdown punctuation.definition.heading.markdown, heading.2.markdown, heading.2.quarto punctuation.definition.heading.quarto, heading.2.quarto, markup.heading.atx.2.mdx, markup.heading.atx.2.mdx punctuation.definition.heading.mdx, markup.heading.setext.2.markdown, markup.heading.heading-1.asciidoc | #FFB86C | bold |
| heading.3.markdown punctuation.definition.heading.markdown, heading.3.markdown, heading.3.quarto punctuation.definition.heading.quarto, heading.3.quarto, markup.heading.atx.3.mdx, markup.heading.atx.3.mdx punctuation.definition.heading.mdx, markup.heading.heading-2.asciidoc | #FFFFA5 | bold |
| heading.4.markdown punctuation.definition.heading.markdown, heading.4.markdown, heading.4.quarto punctuation.definition.heading.quarto, heading.4.quarto, markup.heading.atx.4.mdx, markup.heading.atx.4.mdx punctuation.definition.heading.mdx, markup.heading.heading-3.asciidoc | #69FF94 | bold |
| heading.5.markdown punctuation.definition.heading.markdown, heading.5.markdown, heading.5.quarto punctuation.definition.heading.quarto, heading.5.quarto, markup.heading.atx.5.mdx, markup.heading.atx.5.mdx punctuation.definition.heading.mdx, markup.heading.heading-4.asciidoc | #5596f1 | bold |
| heading.6.markdown punctuation.definition.heading.markdown, heading.6.markdown, heading.6.quarto punctuation.definition.heading.quarto, heading.6.quarto, markup.heading.atx.6.mdx, markup.heading.atx.6.mdx punctuation.definition.heading.mdx, markup.heading.heading-5.asciidoc | #D6ACFF | bold |
| markup.bold | #FFB86C | bold |
| markup.italic | #FFB86C | italic |
| markup.strikethrough | #ececdc | strikethrough |
| punctuation.definition.link, markup.underline.link | #8BE9FD | — |
| text.html.markdown punctuation.definition.link.title, text.html.quarto punctuation.definition.link.title, string.other.link.title.markdown, string.other.link.title.quarto, markup.link, punctuation.definition.constant.markdown, punctuation.definition.constant.quarto, constant.other.reference.link.markdown, constant.other.reference.link.quarto, markup.substitution.attribute-reference | #A4FFFF | — |
| punctuation.definition.raw.markdown, punctuation.definition.raw.quarto, markup.inline.raw.string.markdown, markup.inline.raw.string.quarto, markup.raw.block.markdown, markup.raw.block.quarto | #69FF94 | — |
| fenced_code.block.language | #FF92DF | — |
| markup.fenced_code.block punctuation.definition, markup.raw support.asciidoc | #9599b1 | — |
| markup.quote, punctuation.definition.quote.begin | #D6ACFF | — |
| meta.separator.markdown | #A4FFFF | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.begin.quarto, markup.list.bullet | #FF92DF | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #F8F8F2 | — |
| variable.language.fenced.markdown | #9599b1 | — |
| meta.separator | #9599b1 | bold |
| markup.table | #F8F8F2 | — |
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}!`;
}