Darcula Color Theme (vic1)
Publisher: vicodinvic1Themes in package: 1
The proper colored color theme for js/react syntax.
The proper colored color theme for js/react syntax.
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 | #75715E | — |
| string | #698857 | — |
| constant.numeric | #6897BB | — |
| constant.language | #9975AB | — |
| constant.character, constant.other | #9975AB | — |
| variable | #9975AB | |
| keyword | #CE7827 | |
| storage | #CE7827 | |
| storage.type | #CE7827 | |
| entity.name.class | #FFB64E | underline |
| entity.other.inherited-class | #FFB64E | italic underline |
| entity.name.function | #FFB64E | |
| variable.parameter | #9975AB | |
| entity.name.tag | #CE7827 | |
| entity.other.attribute-name | #BABA8A | |
| support.function | #FFB64E | |
| support.constant | #FFB64E | |
| support.type, support.class | — | — |
| support.other.variable | — | |
| invalid | #BD1900 | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.property, variable.constant, variable.other.property, variable.other.constant, variable.other.object.property, variable.object.property, support.variable.property, meta.definition.property entity.name.function | #9E73AD | |
| variable.object.property.js.jsx, meta.object-literal.key | #698857 | |
| meta.brace.round.js.jsx, punctuation.definition.string.begin.js.jsx, punctuation.definition.string.end.js.jsx, objectliteral.key.separator, punctuation.separator.key-value, punctuation.definition.template-expression.begin.js.jsx, punctuation.definition.template-expression.end.js.jsx, meta.brace.square.js.jsx, keyword.operator.assignment.js.jsx, punctuation.separator.comma, punctuation.separator.parameter, punctuation.terminator.statement, punctuation.accessor.js.jsx | #A9B7C6 | — |
| constant.language.null.js.jsx, constant.language.undefined.js.jsx, constant.language.boolean.true.js.jsx, constant.language.boolean.false.js.jsx | #CE7827 | — |
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}!`;
}