Darcula Theme
Publisher: cepsThemes in package: 1
Darcula Theme for VS Code based on IntelliJ Darcula
Darcula Theme for VS Code based on IntelliJ Darcula
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #A9B7C6 | — |
| sublimelinter.outline | #cc7832 | — |
| sublimelinter.underline | #ff6666 | — |
| punctuation | #808080 | — |
| meta.delimiter | #808080 | — |
| meta.tag, declaration.tag | #CC7832 | |
| markup.todo | #F29C00 | — |
| comment | #808080 | italic |
| string | #6A8759 | — |
| constant.numeric | #6897bb | — |
| constant.language | #CC7832 | — |
| constant.character.escape, string source | #CC7832 | |
| constant.character, constant.other | #9876AA | — |
| variable | #9876AA | — |
| keyword.control | #CC7832 | — |
| keyword.control.import | #CC7832 | — |
| meta.tag.preprocessor.xml | #CC7832 | |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #CC7832 | |
| keyword, storage | #CC7832 | — |
| storage | #A9B7C6 | — |
| storage.type | #CC782F | — |
| entity.name.class | #A9B7C6 | underline |
| entity.other.inherited-class | #A9B7C6 | italic underline |
| entity.name.function | #A9B7C6 | |
| variable.parameter | #A9B7C6 | — |
| entity.name.tag | #CC6B2E | |
| entity.other.attribute-name | #BABA8A | |
| support.function | #A9B7C6 | |
| support.constant | #A9B7C6 | |
| support.type, support.class | #A9B7C6 | italic |
| support.other.variable | #A9B7C6 | — |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #ffffffa0 | — |
| entity.name.filename.find-in-files | #B8FF9A | — |
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}!`;
}