New dark Railscasts
Publisher: Carlos RamosThemes in package: 1
A beautifully modern dark theme with custom terminal colors.
A beautifully modern dark theme with custom terminal colors.
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 |
|---|---|---|
| entity.other.attribute-value.handlebars variable.parameter.handlebars, markup.underline, meta.brace.round, meta.function-call.arguments, meta.jsx.children, meta.object.member entity.name.function, meta.property-value constant, meta.property-value support, punctuation, source.elixir.embedded.source, string.unquoted.plain.out.yaml, support.type.object.module, text.html.markdown meta.paragraph.markdown, variable, variable.other.object | #f1ecce | — |
| heading entity.name.section.markdown, markup.bold.markdown | #FEF9E1 | bold |
| markup.italic.markdown, variable.parameter.js, variable.parameter.ts | #FEF9E1 | italic |
| constant.numeric, constant.numeric.css keyword.other.unit | #B0D43F | — |
| markup.inline.raw, punctuation.definition.string, string, string.quoted.double, string.quoted.single, string.quoted.template, string.unquoted.plain.out.yaml | #74D155 | — |
| variable.parameter.url.css | #74D155 | italic |
| punctuation.definition.raw.markdown, string punctuation.section.embedded, punctuation.definition.template-expression | #238e00 | italic bold |
| constant.language, keyword, meta.class.ts, punctuation.definition.tag.haml, storage, support.class.ruby, text.html.markdown markup.heading punctuation, text.html.markdown meta.paragraph punctuation, variable.language.this, variable.other.constant | #F47454 | — |
| entity.name.type.class.ruby, entity.name.type.module.elixir, entity.name.type.module.ruby, entity.other.attribute-name, entity.other.attribute-name.handlebars variable.parameter.handlebars, punctuation.separator.namespace.xml, storage.type.function.js, text.html.basic entity.other.attribute-name, text.html.basic entity.other.attribute-name.html | #F47454 | italic |
| entity.name.type.class.ruby entity.other.inherited-class.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.module.elixir, keyword.control.module.ruby, markup.fenced_code.block punctuation.definition, punctuation.definition.heading.markdown, punctuation.definition.keyword, punctuation.definition.list, storage.type.class.ts | #F47454 | bold |
| keyword.control.export | #F47454 | italic bold |
| entity.name.function, entity.name.tag, entity.other.attribute-name.id, markup.fenced_code.block.markdown, meta.directive.vue, meta.function-call variable, meta.function-call, meta.function.inline.other.handlebars variable.parameter.handlebars, meta.jsx.children.js meta.tag.attributes.js keyword.operator.assignment.js, meta.property-value.css, meta.selector entity, meta.selector entity, meta.tag support, meta.tag, punctuation.definition.parameters, punctuation.definition.tag, punctuation.section.function.elixir, punctuation.separator.comma, punctuation.separator.dictionary.pair, punctuation.separator.key-value.html, punctuation.separator.list.comma.css, punctuation.separator.method.elixir, punctuation.separator.object.elixir, punctuation.terminator.rule, support.constant.handlebars keyword.control, support.function, variable.other.property.ts | #FFC66D | — |
| punctuation.separator.inheritance | #FFC66D | bold |
| meta.decorator.js punctuation.decorator.js, meta.decorator.ts meta.function-call.ts entity.name.function.ts, meta.decorator.ts punctuation.decorator.ts, meta.definition.method.js entity.name.function.js, meta.definition.method.ts entity.name.function.ts, source.vue entity.name.tag.script.html, source.vue entity.name.tag.style.html, source.vue entity.name.tag.template.html | #FFC66D | italic bold |
| constant.other.symbol.elixir punctuation.definition.constant.elixir, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, markup.underline.link, punctuation.definition.constant.ruby, punctuation.separator.dictionary.key-value, punctuation.separator.key-value, punctuation.support.type.property-name.begin.json.comments, punctuation.support.type.property-name.end.json.comments, string.other.link | #6D9CBE | — |
| constant.language.symbol.hashkey.ruby, constant.language.symbol.ruby, constant.other.symbol.elixir punctuation.definition.constant.elixir, constant.other.symbol.elixir, constant.other.symbol.hashkey.ruby, constant.other.symbol.ruby, meta.definition.property.ts variable.object.property.ts, meta.object-literal.key.js, meta.object-literal.key.ts, meta.property-name, punctuation.definition.constant.hashkey.ruby, punctuation.support.type.property-name, support.type.property-name.css, support.type.property-name.json, support.type.vendored.property-name.css | #6D9CBE | bold |
| constant, entity.name.tag.yaml, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc, support, variable.other.property, variable.other.readwrite.instance.ruby punctuation.definition.variable.ruby, variable.other.readwrite.instance.ruby | #C19CE7 | — |
| constant.language.nil.ruby, entity.other.attribute-name.class.css, storage.type.js, storage.type.ts, support.type.primitive.ts, variable.scss | #C19CE7 | italic |
| constant.language.boolean, entity.name.function.decorator, entity.other.attribute-name.id.css, keyword.operator.new, keyword.other.important, punctuation.definition.decorator, variable.language.self, variable.language.special.self, variable.language.this.js, variable.language.this.ts, variable.other.readwrite.module.elixir punctuation.definition.variable.elixir, variable.other.readwrite.module.elixir | #C19CE7 | bold italic |
| #C19CE7 | bold | |
| constant.language.null, constant.language.undefined, storage.modifier.ts, variable.language.arguments | #FFAAE7 | italic |
| comment, punctuation.definition.comment, punctuation.section.comment.haml, string.quoted.docstring.multi | #BC7F23 | italic |
| expression.embedded.vue punctuation.definition.generic, keyword.operator.comparison.ts, keyword.operator.logical, keyword.operator.other.elixir, keyword.operator.spread, meta.brace.round.js, meta.brace.round.ts, meta.brace.square, meta.function.block.end.handlebars support.constant.handlebars, meta.function.block.start.handlebars support.constant.handlebars, meta.function.inline.else.handlebars support.constant.handlebars, meta.function.inline.other.handlebars support.constant.handlebars, punctuation.definition.arguments, punctuation.definition.array, punctuation.definition.binding-pattern.object, punctuation.definition.block, punctuation.definition.block.sequence.item, punctuation.definition.dictionary, punctuation.definition.entity, punctuation.definition.sequence, punctuation.definition.variable, punctuation.section.array, punctuation.section.embedded, punctuation.section.function.begin, punctuation.section.function.ruby, punctuation.section.property-list, punctuation.section.scope, punctuation.separator.arguments, punctuation.separator.colon, punctuation.separator.period, punctuation.separator.method.ruby, punctuation.separator.variable, punctuation.terminator.expression, punctuation.terminator.statement, storage.type.function.arrow.ts | #D38E39 | bold |
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}!`;
}