Darcula python
Publisher: Michel BetancourtThemes in package: 1
A fork of "Darcula Theme inspired by IntelliJ" optimize for Python
A fork of "Darcula Theme inspired by IntelliJ" optimize for Python
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 |
|---|---|---|
| Global settings | #A9B7C6 | — |
| string | #698151 | — |
| constant.language.boolean | #DFA97C | — |
| constant.numeric | #6897BB | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #A9B7C6 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #CC7832 | — |
| entity.name.function, support.function | #A9B7C6 | — |
| storage.type, storage.modifier | #CC7832 | — |
| support.module, support.node | #A9B7C6 | italic |
| support.type | #927AC0 | — |
| entity.name.type, entity.other.inherited-class | #927AC0 | — |
| comment | #535353 | italic |
| template.expression.begin, template.expression.end | #CC7832 | — |
| entity.name.tag.yaml | #927AC0 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #927AC0 | — |
| constant.language.json | #CC7832 | — |
| entity.other.attribute-name.class | #927AC0 | — |
| entity.other.attribute-name.id | #DFA97C | — |
| source.css entity.name.tag | #A9B7C6 | — |
| meta.tag, punctuation.definition.tag | #CC7832 | — |
| entity.name.tag | #A9B7C6 | — |
| entity.other.attribute-name | #A9B7C6 | — |
| markup.heading | #CC7832 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #A9B7C6 | — |
| text.html.markdown markup.quote | #c0c0c0 | — |
| text.html.markdown beginning.punctuation.definition.list | #CC7832 | — |
| markup.italic | #A9B7C6 | italic |
| markup.bold | #A9B7C6 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #A9B7C6 | italic bold |
| keyword.other.definition.ini | #A9B7C6 | — |
| entity.name.section.group-title.ini | #CC7832 | — |
| source.cs meta.class.identifier storage.type | #CC7832 | underline |
| source.cs meta.method.identifier entity.name.function | #CC7832 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #A9B7C6 | — |
| source.cs storage.type | #927AC0 | — |
| source.cs meta.method.return-type | #927AC0 | — |
| source.cs meta.preprocessor | #535353 | — |
| source.cs entity.name.type.namespace | #A9B7C6 | — |
| Global settings | #A9B7C6 | — |
| comment | #535353 | |
| keyword, storage.modifier, constant.language, storage.type.class, storage.type.function, support.other.escape.special.regexp, support.other.match.any.regexp, storage.type.string.python, constant.character.escape | #CC7832 | |
| keyword.operator, support.other.match.begin.regexp, support.other.match.end.regexp, storage.modifier.flag.regexp, entity.name.tag.named.group.regexp, punctuation.parenthesis.named.begin.regexp, punctuation.parenthesis.named.end.regexp, entity.name.tag.named.backreference.regexp | #DFA97C | |
| entity.other.inherited-class.python, constant.character.set.regexp, constant.character.escape.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp | #927AC0 | |
| keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.begin.regexp, keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp, keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.begin.regexp, keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp, keyword.operator.lookbehind.regexp, keyword.operator.lookahead.regexp | #33774A | |
| keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.negative.end.regexp, keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.negative.end.regexp, keyword.operator.lookbehind.negative.regexp, keyword.operator.lookahead.negative.regexp | #97535A | |
| punctuation.parenthesis.non-capturing.begin.regexp, punctuation.parenthesis.non-capturing.end.regexp, punctuation.parenthesis.non-capturing.begin.regexp, punctuation.parenthesis.non-capturing.end.regexp | #777777 | |
| constant.numeric.dec, constant.numeric.hex, constant.numeric.bin, constant.numeric.oct, constant.numeric.float | #6897BB | |
| invalid | #F44747 | |
| meta.class.inheritance | #D4D4D4 | |
| string, string storage.type.string, string.quoted.docstring.multi, string.quoted.docstring.multi storage.type.string, string.regexp.quoted.multi.python, string.regexp.quoted.single.python | #698151 | |
| entity.name.function.decorator, support.type | #927AC0 | |
| variable.parameter, comment.typehint.punctuation.notation.python | #A9B7C6 | |
| variable.parameter.function.language.special | #927AC0 | |
| variable.parameter.function-call.python | #C0B0E6 | |
| keyword.operator.expression, keyword.operator.sizeof, keyword.operator.logical.python | #CC7832 | |
| support.function.magic | #DFA97C | |
| support.function.builtin | #927AC0 | |
| variable.language.special | #927AC0 | |
| variable.language | #CC7832 | |
| entity.name.function, support.function | — | |
| entity.name.class, entity.name.type | #A9B7C6 | — |
| keyword.control | #CC7832 | |
| support.variable | #A9B7C6 | |
| variable | #927AC0 | |
| constant.other.caps | #927AC0 | |
| support.type.exception.python | #C56764 | |
| comment.typehint | #44727B | |
| comment.typehint.variable | #578C96 | |
| comment.typehint.ignore | #7E6461 | |
| comment.typehint.type | #927AC0 |
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}!`;
}