1Dark RainCoat
Publisher: Ed HeltzelThemes in package: 7
A modified version of the One Dark + (Sublime Babel) color scheme, plus a custom Workbench theme
A modified version of the One Dark + (Sublime Babel) color scheme, plus a custom Workbench 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 |
|---|---|---|
| — | #ABB2BF | — |
| comment, punctuation.definition.comment | #5C6370 | italic |
| string.quoted.docstring.multi.python, string.quoted.docstring.multi.python keyword.control.flow.python | #5C6370 | italic |
| meta.brace.round.begin, meta.brace.round.end, meta.brace.square.begin, meta.brace.square.end, meta.brace.curly.begin.js, meta.brace.curly.end.js, meta.group.braces.round.function.arguments | #ABB2BF | — |
| string | #98C379 | — |
| string.regexp | #98C379 | — |
| string.detected-link | #C678DD | — |
| constant.numeric, markdown.python.constant.numeric | #D19A66 | — |
| constant.language | #D19A66 | — |
| constant.character | #56B6C2 | — |
| constant.character.escape.backslash.regexp | #98C379 | — |
| constant.character.format.placeholder.other.python | #D19A66 | — |
| constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #56B6C2 | — |
| variable.other.object | #E06C75 | — |
| meta.property.object.js | #D19A66 | — |
| variable.other.class, meta.class.property variable.other.property | #E06C75 | — |
| variable.other, meta.class.object.property.js, meta.property.class variable.other.property.static | #D19A66 | — |
| variable.other.readwrite | #ABB2BF | — |
| meta.group.braces variable.other.readwrite | #ABB2BF | — |
| variable.language, meta.class variable.other.readwrite | #E06C75 | — |
| variable.language.prototype | #E06C75 | — |
| python.support.magic.variable | #E06C75 | — |
| variable.function, entity.name.function, entity.name.function.arrow, meta.class-method.js entity.name.function.js, meta.method.property.js entity.name.function.js | #61AFEF | — |
| meta.function-call.generic.python | #61AFEF | — |
| meta.function.decorator.python | #56B6C2 | — |
| variable.function.constructor | #E5C07B | — |
| keyword.control, keyword.operator.new, keyword.operator.module, variable.language.super | #C678DD | — |
| meta.preprocessor, entity.name.function.preprocessor | #C678DD | — |
| entity.name.function.preprocessor | #E5C07B | — |
| meta.namespace.identifier entity.name.type, entity.name.variable | #E5C07B | — |
| cs.meta.namespace.function.identifier.body.class.method | #61AFEF | — |
| storage.type.cs, storage.type.variable.cs | #56B6C2 | — |
| keyword, keyword.other.namespace, storage.modifier,source.css meta.selector.css entity.other.attribute-name.pseudo-element.css | #C678DD | — |
| keyword.operator.logical.python | #C678DD | — |
| keyword.other.substitution.begin, keyword.other.substitution.end | #56B6C2 | — |
| keyword.operator.accessor | #ABB2BF | — |
| keyword.operator, constant.other.color, punctuation.separator.key-value | #56B6C2 | — |
| keyword.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #98C379 | — |
| python.keyword.operator | #56B6C2 | — |
| storage.type | #C678DD | |
| entity.name.class, meta.class.extends variable.other.readwrite | #E5C07B | |
| entity.other.inherited-class | #E5C07B | italic underline |
| variable.parameter | #ABB2BF | |
| variable.parameter.function.language.python | #D19A66 | |
| entity.name.tag | #E06C75 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.js, entity.other.attribute-name.jsx | #D19A66 | italic |
| selector.css.entity.other.attribute-name | #E5C07B | — |
| support.function, support.class support.function | #56B6C2 | |
| python.builtin.support.function | #C678DD | |
| python.meta.function-call.builtin.support.function, python.meta.type.support.function-call, python.meta.variable.function-call.legacy.builtin | #E5C07B | |
| meta.type.support.inheritance.python | #56B6C2 | |
| entity.name.type.class.python | #E5C07B | — |
| support.constant | #D19A66 | |
| support.type, support.class | #E5C07B | |
| support.other.variable | — | |
| css.property-list.property-name, source.css meta.selector.css entity.other.attribute-name.pseudo-element.css punctuation.definition.entity.css | #56B6C2 | |
| invalid | #FFFFFF | — |
| invalid.deprecated | #523D14 | — |
| meta.structure.dictionary.json string.quoted.double.json | #98C379 | — |
| meta.structure.dictionary.json string.quoted.double.detected-link | #C678DD | — |
| meta.structure.dictionary.json string.quoted.double.json | #89CA78 | — |
| meta.structure.dictionary.json string.quoted.double.detected-link | #D55FDE | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #E06C75 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #E06C75 | — |
| 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 | #E06C7590 | — |
| 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 | #E06C75 | — |
| 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 | #E06C7590 | — |
| 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 | #E06C75 | — |
| 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 | #E06C7590 | — |
| 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 | #E06C75 | — |
| 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 | #E06C7590 | — |
| punctuation.definition.block.sequence.item.yaml | #D55FDE | — |
| string.unquoted.plain.out.yaml | #89CA78 | — |
| markup.heading | #EF596F | — |
| string.other.link.title.markdown, string.other.link.description.markdown, meta.paragraph.markdown entity.name.tag.inline.any | #61AFEF | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #C678DD | — |
| markup.bold.markdown | — | bold |
| markup.fenced_code.block.markdown, markup.fenced.code.block.markdown, markup.raw.inline.markdown, markdown.block.raw | #56B6C2 | — |
| markup.fenced_code.block.markdown fenced_code.block.language, markup.fenced.code.block.markdown fenced.code.block.language | #D19A66 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.raw.markdown, meta.paragraph.markdown punctuation.definition.tag | #56B6C2 | — |
| markdown.fenced_code.block.markdown constant.numeric, markdown.fenced.code.block.markdown constant.numeric, markdown.fenced_code.block.markdown constant.language, markdown.fenced.code.block.markdown constant.language | #D19A66 | — |
| markdown.block.fenced.code.string, markdown.block.fenced.code.string.quote | #98C379 | — |
| markup.fenced_code.block.markdown keyword.operator, markup.fenced_code.block.markdown keyword.operator.logical.python, markup.fenced.code.block.markdown keyword.operator, markup.fenced_code.block.markdown keyword.control, markup.fenced.code.block.markdown keyword.control, markup.fenced_code.block.markdown storage.type, markup.fenced_code.block.markdown storage.type.function.lambda, markdown.block.fenced.code.lambda.storage.type | #61AFEF | — |
| markdown.block.fenced.code.operator.assignment | #ABB2BF | — |
| markdown.block.variable.parameter | #D19A66 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| entity.name.type.instance.jsdoc | #E5C07B | — |
| punctuation.output.jekyll, punctuation.tag.jekyll, punctuation.output.liquid, punctuation.tag.liquid | #C8DDFCD1 | — |
| frontmatter.jekyll, frontmatter.liquid | #C8DDFCD1 | — |
| entity.name.tag.jekyll, entity.name.tag.jekyll | #F92672 | — |
| variable.other.jekyll, variable.other.liquid | #b267e6 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #98C378 | — |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #E06C74 | — |
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}!`;
}