DarculaOneDark
Publisher: themerThemes in package: 3
mix between Darcula and One Dark of Atom (theme focusing on Python and C++)
mix between Darcula and One Dark of Atom (theme focusing on Python and C++)
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 | #7F848E | italic |
| keyword.control.flow.python, source.python | #C678DD | italic |
| keyword.control.import.python, source.python | #C678DD | italic |
| string.quoted.docstring.multi.python, source.python | #98C379 | bold |
| string.quoted.multi.python, source.python | #98C379 | bold |
| string.quoted.docstring.single.python, source.python | #98C379 | bold |
| string.quoted.single.python | #98C379 | bold |
| punctuation.section.function.begin.python, meta.function.python, source.python | #ABB2BF | bold |
| punctuation.definition.parameters.end.python, meta.function.parameters.python, meta.function.python, source.python | #ABB2BF | bold |
| punctuation.parenthesis | #ABB2BF | bold |
| punctuation.definition.arguments | #ABB2BF | bold |
| punctuation.separator.period.python, source.python | #ABB2BF | bold |
| punctuation.separator.element.python | #ABB2BF | bold |
| punctuation.separator.arguments.python | #ABB2BF | bold |
| keyword.operator.assignment.python, source.python | #56B6C2 | bold |
| keyword.operator.arithmetic.python, meta.function-call.arguments.python, meta.function-call.python, source.python | #56B6C2 | bold |
| storage.type.function.python, meta.function.python, source.python | #C678DD | bold |
| storage.type.class.python, meta.class.python, source.python | #C678DD | bold |
| constant.numeric | #D19A66 | bold |
| keyword.operator.comparison.python, source.python | #56B6C2 | bold |
| variable.parameter.function-call.python | #ff6600 | bold |
| keyword.operator.logical.python | #C678DD | bold |
| constant.language.python, source.python | #D19A66 | bold |
| punctuation.definition.decorator.python | #61AFEF | 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}!`;
}