Tunning Dracula
Publisher: Tunning DraculaThemes in package: 1
The dracula theme with improves
The dracula theme with improves
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 |
|---|---|---|
| string constant.other.placeholder, keyword, storage.type, storage.modifier | #FF80BF | — |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell, storage.class.std.rust, storage.type.attribute.swift, storage.type.type, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.haskell, storage.type.ocaml, punctuation.definition.bracket, entity.other.inherited-class, meta.implementation, entity.other.attribute-name, list.highlightForeground | #acc8e4 | — |
| string constant.other.placeholder, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #FF80BF | — |
| constant.other.php, punctuation.definition.link.restructuredtext, beginning.punctuation.definition.list.markdown | #8904f5 | — |
| constant.other.color | #8904f5 | — |
| invalid, invalid.illegal | #af220a | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #FF80BF | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #FF80BF | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.binding-pattern.object.js | #F8F5F2 | — |
| string.quoted.single.scss | #F8F5F2 | bold |
| keyword.control | #FF80BF | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #FF80BF | bold |
| comment.line, comment.line.scss, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, punctuation.definition.comment.php, comment.block.html, comment, annotation, comment.block.documentation, comment.block | #6D6F7C | — |
| text.html.derivative | #F8F8F2 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF80BF | — |
| entity.name.tag.html | — | — |
| variable.parameter.keyframe-list.css | #F8F8F2 | — |
| variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js | #FF95ED | — |
| variable.other.constant.js, variable.other.object.property.js, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, entity.name.function, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js, entity.name.function.js, variable.function.constructor, source.sass keyword.control, meta.function-call.generic, meta.function-call.object, meta.function-call.static, keyword.operator.function.infix | #8AFF80 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #8AFF80 | — |
| support.other.variable, string.other.link, markup.table | #F8F5F2 | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, punctuation.separator.key-value.html, constant.other.symbol.hashkey, punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, meta.group.double.toml, meta.group.toml, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, unctuation.definition.variable.makefile, punctuation.section.embedded.end source.ruby | #FF80BF | — |
| variable.parameter.function.language.special, variable.parameter, constant.other.date, constant.other.timestamp | #DBC235 | — |
| constant.other.symbol, constant.other.key, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js, support.other, variable.language | #FF80BF | — |
| entity.name, support.type, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #f2f5f8 | — |
| support.class, punctuation.definition.binding-pattern.object.js, meta.tag.inline source | #acc8e4 | — |
| support.type | #FF80BF | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #FF95ED | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #DBC235 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #A8FF9B | italic |
| entity.other.attribute-name, support.function | #8AFF80 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, storage.type.function.js, meta.object-literal.key, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #acc8e4 | italic |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #DBC235 | — |
| source.scss keyword.control | #F8F8F2 | — |
| markup.inserted | #FF80BF | — |
| markup.deleted | #74D76C | — |
| markup.changed | #F8F8F2 | — |
| string.regexp | #8AFF80 | — |
| constant.character.escape | #8AFF80 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #F8F5F2 | italic |
| support.type.property-name.json | #F8F5F2 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #F8F5F2 | — |
| text.html.markdown markup.inline.raw.markdown | #F8F8F2 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #FF80BF50 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown, markup.quote punctuation.definition.blockquote.markdown, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end, entity.other.attribute-name.id | #FF80BF | bold |
| markup.underline | #A8FF9B | underline |
| markup.strike | — | |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #F8F8F2 | — |
| constant.other.reference.link.markdown | #F8F8F2 | — |
| markup.raw.block | #F8F8F2 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #8AFF80 | — |
| variable.language.fenced.markdown | #FF80BF | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #FF80BF | — |
| token.warn-token | #F8F8F2 | — |
| token.error-token | #FF293B | — |
| token.debug-token | #8AFF80 | — |
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}!`;
}