Dracula One Dark
Publisher: NegrekkoThemes in package: 1
A theme combining Dracula At Night color palette with One Dark Pro language support
A theme combining Dracula At Night color palette with One Dark Pro language support
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 |
|---|---|---|
| meta.embedded | #f8f8f2 | — |
| punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison | #ff79c6 | — |
| variable.other.generic-type.haskell | #bd93f9 | — |
| storage.type.haskell | #8be9fd | — |
| support.variable.magic.python | #bd93f9 | — |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #f8f8f2 | — |
| variable.parameter.function.language.special.self.python | #ff79c6 | italic |
| variable.parameter.function.language.special.cls.python | #ff79c6 | italic |
| storage.modifier.lifetime.rust | #ff79c6 | — |
| support.function.std.rust | #8be9fd | — |
| entity.name.lifetime.rust | #ff79c6 | — |
| variable.language.rust | #bd93f9 | — |
| support.constant.edge | #bd93f9 | — |
| constant.other.character-class.regexp | #ff79c6 | — |
| keyword.operator.word | #ff79c6 | — |
| keyword.operator.quantifier.regexp | #ff79c6 | — |
| variable.parameter.function | #ffb86c | — |
| comment markup.link | #6272a4 | — |
| markup.changed.diff | #f1fa8c | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #bd93f9 | — |
| markup.inserted.diff | #50fa7b | — |
| markup.deleted.diff | #ff5555 | — |
| meta.function.c,meta.function.cpp | #50fa7b | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #f8f8f2 | — |
| punctuation.separator.key-value | #ff79c6 | — |
| keyword.operator.expression.import | #ff79c6 | — |
| support.constant.math | #bd93f9 | — |
| support.constant.property.math | #bd93f9 | — |
| variable.other.constant | #bd93f9 | — |
| storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java | #8be9fd | — |
| source.java | #f8f8f2 | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java | #f8f8f2 | — |
| meta.method.java | #f8f8f2 | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #ff79c6 | — |
| keyword.operator.instanceof.java | #ff79c6 | — |
| meta.definition.variable.name.java | #f8f8f2 | — |
| keyword.operator.logical | #ff79c6 | — |
| keyword.operator.bitwise | #ff79c6 | — |
| keyword.operator.channel | #ff79c6 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #ffb86c | — |
| keyword.operator.css,keyword.operator.scss,keyword.operator.less | #ff79c6 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #bd93f9 | — |
| punctuation.separator.list.comma.css | #f8f8f2 | — |
| support.constant.color.w3c-standard-color-name.css | #bd93f9 | — |
| support.type.vendored.property-name.css | #50fa7b | — |
| support.module.node,support.type.object.module,support.module.node | #f8f8f2 | — |
| entity.name.type.module | #f1fa8c | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #f8f8f2 | — |
| support.constant.json | #bd93f9 | — |
| keyword.control.export, keyword.control.import, keyword.control.from, keyword.control.default, keyword.operator.expression.keyof | #ff79c6 | — |
| support.type.object.console | #f8f8f2 | — |
| support.variable.property.process | #f8f8f2 | — |
| entity.name.function,support.function.console | #50fa7b | — |
| keyword.operator.misc.rust | #ff79c6 | — |
| keyword.operator.sigil.rust | #ff79c6 | — |
| keyword.operator.delete | #ff79c6 | — |
| support.type.object.dom | #f8f8f2 | — |
| support.variable.dom,support.variable.property.dom | #f8f8f2 | — |
| keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational | #ff79c6 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp | #ff79c6 | — |
| punctuation.separator.delimiter | #f8f8f2 | — |
| punctuation.separator.c,punctuation.separator.cpp | #f8f8f2 | — |
| support.type.posix-reserved.c,support.type.posix-reserved.cpp | #8be9fd | — |
| keyword.operator.sizeof.c,keyword.operator.sizeof.cpp | #ff79c6 | — |
| variable.parameter.function.language.python | #ffb86c | — |
| support.type.python | #8be9fd | — |
| keyword.operator.logical.python | #ff79c6 | — |
| variable.parameter.function.python | #ffb86c | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #f8f8f2 | — |
| meta.function-call.generic.python | #f8f8f2 | — |
| constant.character.format.placeholder.other.python | #f1fa8c | — |
| keyword.operator | #ff79c6 | — |
| keyword.operator.assignment.compound | #ff79c6 | — |
| keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts | #ff79c6 | — |
| keyword | #ff79c6 | — |
| entity.name.namespace | #f8f8f2 | — |
| variable | #f8f8f2 | — |
| variable.c | #f8f8f2 | — |
| variable.language | #bd93f9 | italic |
| token.variable.parameter.java | #f8f8f2 | — |
| import.storage.java | #f8f8f2 | — |
| token.package.keyword | #ff79c6 | — |
| token.package | #f8f8f2 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #50fa7b | — |
| entity.name.type.namespace | #8be9fd | — |
| support.class, entity.name.type.class | #8be9fd | — |
| entity.name.class.identifier.namespace.type | #8be9fd | — |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #8be9fd | — |
| variable.other.class.php | #8be9fd | — |
| entity.name.type | #8be9fd | — |
| keyword.control | #ff79c6 | — |
| control.elements, keyword.operator.less | #ff79c6 | — |
| keyword.other.special-method | #50fa7b | — |
| storage | #ff79c6 | — |
| token.storage | #ff79c6 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #ff79c6 | — |
| token.storage.type.java | #ff79c6 | — |
| support.function | #50fa7b | — |
| support.type.property-name | #f8f8f2 | — |
| support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml | #bd93f9 | — |
| support.constant.property-value | #ffb86c | — |
| support.constant.font-name | #ffb86c | — |
| meta.tag | #f8f8f2 | — |
| string | #f1fa8c | — |
| constant.other.symbol | #bd93f9 | — |
| constant.numeric | #bd93f9 | — |
| constant | #bd93f9 | — |
| punctuation.definition.constant | #bd93f9 | — |
| entity.name.tag | #ff79c6 | — |
| entity.other.attribute-name | #50fa7b | — |
| entity.other.attribute-name.id | #f1fa8c | — |
| entity.other.attribute-name.class.css | #f1fa8c | — |
| meta.selector | #ff79c6 | — |
| markup.heading | #bd93f9 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #50fa7b | — |
| keyword.other.unit | #bd93f9 | — |
| markup.bold,todo.bold | #ffb86c | bold |
| punctuation.definition.bold | #f1fa8c | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | — | italic |
| emphasis md | #bd93f9 | — |
| entity.name.section.markdown | #bd93f9 | — |
| punctuation.definition.heading.markdown | #50fa7b | — |
| punctuation.definition.list.begin.markdown | #f1fa8c | — |
| markup.heading.setext | #f8f8f2 | — |
| punctuation.definition.bold.markdown | #f1fa8c | — |
| markup.inline.raw.markdown | #50fa7b | — |
| markup.inline.raw.string.markdown | #50fa7b | — |
| punctuation.definition.raw.markdown | #bd93f9 | — |
| punctuation.definition.list.markdown | #f1fa8c | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #bd93f9 | — |
| beginning.punctuation.definition.list.markdown | #f1fa8c | — |
| punctuation.definition.metadata.markdown | #bd93f9 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #8be9fd | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #bd93f9 | — |
| markup.raw.monospace.asciidoc | #50fa7b | — |
| punctuation.definition.asciidoc | #bd93f9 | — |
| markup.list.asciidoc | #f1fa8c | — |
| markup.link.asciidoc,markup.other.url.asciidoc | #8be9fd | — |
| string.unquoted.asciidoc,markup.other.url.asciidoc | #bd93f9 | — |
| string.regexp | #f1fa8c | — |
| punctuation.section.embedded, variable.interpolation | #ff79c6 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #ff79c6 | — |
| comment, punctuation.definition.comment | #6272a4 | italic |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc | #50fa7b | — |
| storage.type.annotation.dart | #f1fa8c | — |
| keyword.declaration.dart | #ff79c6 | — |
| storage.type.primitive.dart | #8be9fd | — |
| variable.parameter.dart, variable.other.dart | #f8f8f2 | — |
| entity.name.function.dart | #50fa7b | — |
| entity.name.type.class.dart | #8be9fd | — |
| string.interpolated.dart | #f1fa8c | — |
| constant.language.dart | #bd93f9 | — |
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}!`;
}