IntelliJ Darcula Theme
Publisher: Georgekutty JoyesThemes in package: 1
A Darcula Theme inspired by IntelliJ.
A Darcula Theme inspired by IntelliJ.
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 |
|---|---|---|
| support.type.property-name.css | #c7c7c7 | — |
| entity.name.tag.css, entity.other.attribute-name.id.css | #88639b | — |
| string.quoted.docstring.multi.python, source.python | #707070 | — |
| entity.other.attribute-name.html | #88639b | — |
| support.type.python | #88639b | — |
| meta.property-value.css | #5a7b48 | — |
| punctuation.separator.key-value.js | #c7c7c7 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #707070 | — |
| constant.language | #e58332 | — |
| constant.numeric | #6897BB | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #e2ab54 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #88639b | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #c7c7c7 | — |
| markup.heading | #c7c7c7 | — |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #c7c7c7 | — |
| beginning.punctuation.definition.quote.markdown | #608b4e | — |
| beginning.punctuation.definition.list.markdown | #6796e6 | — |
| markup.inline.raw | #ce9178 | — |
| meta.selector | #88639b | — |
| punctuation.definition.dictionary.begin.json.comments, punctuation.definition.dictionary.end.json.comments, punctuation.definition.tag, meta.brace.round.js | #e2ab54 | — |
| meta.preprocessor | #e58332 | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #88639b | — |
| meta.diff.header | #e58332 | — |
| storage | #FF0000 | — |
| storage.type | #e58332 | — |
| keyword.other.phpdoc.php, keyword.other.type.php, storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc | #707070 | — |
| storage.modifier | #e58332 | — |
| string | #5a7b48 | — |
| string.tag | #5a7b48 | — |
| string.value | #5a7b48 | — |
| string.regexp | #5a7b48 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #c7c7c7 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #88639b | — |
| variable.other.property, support.variable.property.dom, entity.other.inherited-class | #88639b | — |
| variable.other.object, variable.other.object.property, support.class.dom, meta.function-call, entity.name.type.module | #c7c7c7 | — |
| variable.other.readwrite, variable.other.constant.ts, variable.parameter, variable.other.readwrite.alias | #c7c7c7 | — |
| keyword | #e58332 | — |
| keyword.control | #e58332 | — |
| keyword.operator | #c7c7c7 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #e58332 | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #e58332 | — |
| support.function.git-rebase | #88639b | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, storage.modifier.package.java | #c7c7c7 | — |
| variable.language | #e58332 | — |
| variable.parameter.function-call.python | #c04524 | — |
| source.python | #c7c7c7 | — |
| support.function.magic.python | #88639b | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #88639b | |
| entity.name.function.python, meta.function-call.generic.python | #e2ab54 | — |
| entity.name.function, support.function, support.constant.handlebars | #e2ab54 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java | #4EC9B0 | — |
| support.class, entity.name.class, support.type, entity.name.type | #e2ab54 | — |
| storage.type.function.arrow | #c7c7c7 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json | #4EC9B0 | — |
| keyword.control | #e58332 | — |
| meta.definition.variable.name, support.variable | #c7c7c7 | — |
| variable | #88639b | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #88639b | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #5a7b48 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| storage.type.groovy | #c7c7c7 | — |
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}!`;
}