OrdepK Dark
Publisher: OrdepKThemes in package: 1
My theme dark
My theme dark
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 | #dc6bff | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #82FFB6 | — |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #82FFB6 | — |
| constant.other.php | #82FFB6 | — |
| constant.other.color | #82FFB6 | — |
| invalid, invalid.illegal | #ff0000 | — |
| Keyword, Storage | — | italic underline strikethrough |
| 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 | #FDBCB4 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #FDBCB4 | — |
| 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 | #ffb62e | — |
| punctuation.definition, string.quoted.single.scss | #FDBCB4 | — |
| keyword.control | #ffe600 | italic |
| comment, comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html | #fcb07e80 | — |
| text.html.derivative | #ffffff | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #82FFB6 | — |
| entity.name.tag.html | — | — |
| variable.parameter.js, variable.parameter.keyframe-list.css | #00ff00 | — |
| storage.type.js, string.other.link.title.markdown, variable.other.property.js | #82FFB6 | italic |
| string, string.quoted.double.html, variable.other.constant.js, variable.other.object.property.js, variable.other.readwrite.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 | #FDBCB4 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #ffff00 | — |
| support.other.variable, string.other.link, markup.table | #FFFFFF | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #00ffff | — |
| variable.parameter.function.language.special, variable.parameter | #00ffff | — |
| 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 | #FDBCB4 | italic bold |
| 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 | #00ff00 | italic |
| support.type | #cea3ff | — |
| 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 | #FF998C | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ffffff | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #ffffff | italic |
| entity.other.attribute-name, support.function | #82FFB6 | — |
| entity.other.attribute-name.id, 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, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #b3ff00 | italic |
| source.scss keyword.control | #c8ff00 | — |
| markup.inserted | #ffffff | — |
| markup.deleted | #ffffff | — |
| markup.changed | #ffffff | — |
| string.regexp | #ff6600 | — |
| constant.character.escape | #ffffff | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #FFFFFF | italic |
| support.type.property-name.json | #FFFFFF | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #FFFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #ffffff | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #ffffff50 | — |
| 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 | #ed93ff | bold |
| markup.underline | #00ffff | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #ffffff | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #ffffff | — |
| constant.other.reference.link.markdown | #ffffff | — |
| markup.raw.block | #ffffff | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #ffffff | — |
| variable.language.fenced.markdown | #ffffff | — |
| meta.separator | #ffffff | bold |
| token.info-token | #ffffff | — |
| token.warn-token | #ffffff | — |
| token.error-token | #FF293B | — |
| token.debug-token | #ffffff | — |
| punctuation.definition.comment | #fcb07e | italic |
| variable, string constant.other.placeholder | #2ff936 | — |
| punctuation.decorator.js | #2ff936 | — |
| keyword, storage.type, storage.modifier | #82ffb6 | italic bold |
| meta.method.declaration.js, meta.class.js, source.js | #FDBCB4 | italic |
| constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #FDBCB4 | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #31ff87 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #E0B0FF | — |
| meta.block variable.other | #00ffff | — |
| support.other.variable, string.other.link | #A4DDED | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #76FF7A | italic |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #fff08f | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #ff8811 | italic bold |
| support.type | #B2FFFF | — |
| 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 | #B2FFFF | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #00FFBF | — |
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}!`;
}