EderandEder Dark
Publisher: EDERThemes in package: 1
EderandEder theme!
EderandEder theme!
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 |
|---|---|---|
| variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier | #F75C99 | — |
| variable, string constant.other.placeholder, entity.name.function, 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 | #C46BAF | — |
| constant.other.php | #F75C99 | — |
| constant.other.color | #C0A8FF | — |
| invalid, invalid.illegal | #459FB3 | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #A7A8AF | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #5D53C5 | — |
| 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.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, string.quoted.single.ts | #A890FF | — |
| punctuation.definition, string.quoted.single.scss | #A7A8AF | — |
| keyword.control | — | bold |
| comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html | #2029d7 | — |
| text.html.derivative | #A7A8AF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, string.quoted.single.python | #A890FF | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #F75C99 | — |
| variable.other.object.js, variable.other.object.ts, storage.type.js, meta.type.annotation.ts, storage.type.ts, string.other.link.title.markdown, variable.other.property.js | #5D53C5 | |
| string, string.quoted.double.html, variable.other.constant.js, meta.var-single-variable.expr.ts, variable.other.constant.ts, variable.other.readwrite.ts, 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, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #A595B5 | — |
| support.other.variable, string.other.link, markup.table, string.quoted.double.js | #A890FF | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #F75C99 | — |
| variable.parameter.function.language.special, variable.parameter, keyword.other.using.directive.cpp, entity.name.function.operator.cpp, entity.name.function.operator.member.cpp, variable.other.property.js, storage.type.class.cpp | #459FB3 | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js, storage.type.modifier.access.control.private.cpp, storage.type.modifier.access.control.public.cpp | #C46BAF | |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.html | #F75C99 | — |
| support.type | #B2CCD6 | — |
| 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 | #5D53C5 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #459FB3 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #A595B5 | italic |
| entity.other.attribute-name, support.function | #F75C99 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #A890FF | — |
| source.scss keyword.control | #F75C99 | — |
| markup.inserted | #C46BAF | — |
| markup.deleted | #459FB3 | — |
| markup.changed | #F75C99 | — |
| string.regexp | #4848F0 | — |
| constant.character.escape, source.python | #4848F0 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #A890FF | italic |
| support.type.property-name.json | #A890FF | — |
| text.html.markdown, punctuation.definition.list_item.markdown, punctuation.definition.end.bracket.square.c, string.quoted.double.cpp, string.quoted.single.cpp, string.quoted.double.c, string.quoted.single.c | #A890FF | — |
| text.html.markdown markup.inline.raw.markdown | #F75C99 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #9683A950 | — |
| 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 | #5D53C5 | bold |
| markup.underline | #A595B5 | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #9683A950 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #F75C99 | — |
| constant.other.reference.link.markdown | #F75C99 | — |
| markup.raw.block | #F75C99 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown, storage.type.built-in.primitive.c, entity.name.function.preprocessor.c, support.type.primitive.ts, storage.type.built-in.primitive.cpp, storage.type.namespace.directive.cpp | #4848F0 | — |
| variable.language.fenced.markdown, support.variable.property.ts | #9683A9 | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #9683A9 | — |
| token.warn-token | #F75C99 | — |
| token.error-token | #FF293B | — |
| variable.other.global.cpp, variable.other.local.cpp, variable.other.global.c, variable.other.local.c, variable.other.property.cpp | #7152CB | — |
| punctuation.definition.comment.documentation.cpp, comment.line.double-slash.cpp, comment.line.double-slash.documentation.cpp, punctuation.definition.directive.cpp, keyword.control.directive.include.cpp, punctuation.definition.comment.cpp, comment.line.double-slash.cpp, punctuation.definition.comment.end.cpp, comment.block.cpp, punctuation.definition.comment.begin.cpp, punctuation.definition.comment.documentation.c, comment.line.double-slash.c, comment.line.double-slash.documentation.c, punctuation.definition.directive.c, keyword.control.directive.include.c, punctuation.definition.comment.c, comment.line.double-slash.c, punctuation.definition.comment.end.c, comment.block.c, punctuation.definition.comment.begin.c, punctuation.definition.comment.python, comment.line.number-sign.python, punctuation.definition.comment.js, comment.block.js, punctuation.definition.comment.end.css, punctuation.definition.comment.begin.css, comment.block.css, comment.block.html, punctuation.definition.comment.html, comment.line.double-slash.js, punctuation.definition.comment.json.comments, comment.block.json.comments, source.json.comments, string.quoted.docstring.multi.python | #FFF | — |
| keyword.operator.arithmetic.cpp, keyword.operator.comparison.python, keyword.operator.assignment.python, keyword.operator.comparison.cpp, keyword.operator.assignment.cpp, keyword.operator.logical.cpp, keyword.control.if.cpp, keyword.control.else.cpp, keyword.operator.arithmetic.c, keyword.operator.comparison.c, keyword.operator.assignment.c, keyword.operator.logical.c, keyword.control.if.c, keyword.control.else.c | #EF9188 | — |
| string.quoted.double.json.comments, punctuation.definition.comment.json.comments, comment.block.json.comments | #C46BAF | — |
| punctuation.definition.string.begin.json.comments, punctuation.definition.string.end.json.comments | #5D53C5 | — |
| keyword.control.if.cpp, keyword.control.else.cpp, punctuation.definition.string.begin.cpp, string.quoted.other.lt-gt.include.cpp, punctuation.definition.string.end.cpp, keyword.control.if.c, keyword.control.else.c, punctuation.definition.string.begin.c, string.quoted.other.lt-gt.include.c, punctuation.definition.string.end.c, punctuation.support.type.property-name.end.json.comments, punctuation.support.type.property-name.begin.json.comments, string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, keyword.control.flow.python, variable.css, variable.argument.css, keyword.control.c, keyword.control.while.cpp, keyword.control.cpp, keyword.control.for.cpp, keyword.control.return.cpp, keyword.control.conditional.js, keyword.control.flow.js, keyword.control.do.cpp, punctuation.accessor.js, keyword.control.switch.cpp, keyword.control.case.cpp, keyword.control.break.cpp, keyword.control.continue.cpp, keyword.control.default.cpp, punctuation.accessor.ts, keyword.control.conditional.ts, keyword.operator.type.annotation.ts | #6CF1FF | — |
| text.html.derivative | #AEB1F0 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, punctuation.definition.entity.css | #2AC4AF | — |
| entity.name.tag.html, entity.name.type.class.python | #4950DE | — |
| token.debug-token | #4848F0 | — |
| constant.language.boolean.false.ts | #f90505 | — |
| constant.language.boolean.true.ts | #00FF00 | — |
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}!`;
}