JTN
Publisher: jatneThemes in package: 1
awesome dark mode 🔥
awesome dark mode 🔥
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.module.elm, entity.other.inherited-class.python, variable.other.object, support.other.namespace.php, entity.other.attribute-name.namespace.xml, record.accessor, entity.name.record.field.accessor | #FFA34F | italic |
| entity.name.type | #7E9E2D | — |
| comment, punctuation.definition.comment, string.quoted.docstring.multi, comment.block.documentation source | #C8C9DB60 | italic |
| constant | #FF4A7C | — |
| source, support, constant.character.entity.named, meta.jsx.children, source.lua | #FFFFFFcc | — |
| entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, punctuation.definition.decorator, meta.decorator variable.other.readwrite.ts | #F9A7F3 | — |
| keyword.control.export, support.type.object.module | #FFED4F | — |
| support.function, entity.name.function, meta.function-call, meta.function, meta.method.declaration, meta.function-call support, meta.decorator meta.definition.method entity.name.function, meta.decorator meta.method.declaration entity.name.function, variable.language.super.ts, source.directive, meta.function-call.generic, meta.method-call.static.php, meta.method-call.php, meta.class storage.type | #4ACADA | — |
| keyword.control.import, meta.module.name.elm support, meta.import.elm support, keyword.control.at-rule, punctuation.definition.keyword, variable.control.import.include | #FFED4F | — |
| keyword.control, keyword.control.conditional, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.begin.blade, keyword.end.blade, keyword.blade, keyword.type-alias, keyword.type, support.class.console, keyword.other.await, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #FFED4F | — |
| meta.object-literal.key, variable.object.property | #FFFFFFcc | — |
| keyword.other.definition.ini, support.type.property-name, entity.name.tag.yaml | #FFED4F | — |
| keyword.operator.comparison, storage.type.function.arrow, keyword.operator.lua | #FFED4F | — |
| punctuation, attribute_value, meta.brace, punctuation.definition.parameters, punctuation.definition.template-expression, keyword.operator, keyword.other, punctuation.terminator, punctuation.separator, punctuation.definition.generic.begin, punctuation.definition.generic.end, meta.function.type-declaration, keyword.other.colon.elm, meta.record.field.elm keyword.other.elm, keyword.other.period.elm, meta.tag.xml, meta.tag.preprocessor.xml, punctuation.definition.block, punctuation.accessor, constant.name.attribute.tag.pug, string.interpolated.pug, keyword.other.whitespace.liquid, meta.tag.template.block.twig, meta.tag.template.value.twig, begin.bracket, end.bracket, text.html.twig meta.tag.inline.any, text.html.twig meta.tag.block.any, support.function.construct.begin.blade, support.function.construct.end.blade source.php, support.function.construct.end.blade, meta.function.echo.blade source.php, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, text.html.vue-html meta.tag.block.any | #8A7F8A | — |
| variable.language.this, variable.language.special.self, variable.parameter.function.language.special.self | #FFA34F | italic |
| storage, meta.var.expr storage.type, storage.type.function, keyword.function, storage.type.class, storage.type.property, keyword.other, keyword.local.lua, entity.name.class, meta.function.lua keyword.control.lua, storage.type.enum, storage.type.interface, storage.type.type | #4AFFC8 | italic |
| string, string.template, string.quoted.single, punctuation.definition.string, punctuation.definition.string.template, punctuation.definition.string.begin, punctuation.definition.string.end, string.other.link, constant.character.escape.regexp, variable.parameter.url | #B2FD67 | — |
| entity.name.type, support.type, support.class, storage.type, entity.other.inherited-class, keyword.type | #BFB2FF | — |
| variable, variable.language, entity.name.type.class.js, entity.name.variable, support.variable.magic, meta.method.body, entity.name.variable, punctuation.definition.variable, support.variable.property, meta.class variable.object.property, variable.other.constant entity.name.function | #FF7597 | — |
| source.elm constant.type-constructor | #FF7597 | — |
| source.elm storage.type | #BFB2FF | normal |
| support.variable.liquid, support.class.liquid | #FF7597 | — |
| text.html.basic entity.name, source.js-ignored-vscode, entity.name.tag, entity.name.tag support.class.component, support.class.component.html, meta.embedded.block.blade constant.other.php, meta.embedded.block.blade keyword.operator.comparison.php, meta.embedded.block.blade keyword.operator.arithmetic.php | #4ACADA | — |
| meta.tag.sgml.doctype.html, punctuation.definition.tag, meta.tag.block.any, meta.tag.block.any.html, meta.tag.inline.any, source.css-ignored-vscode, meta.tag.metadata.style.end.html | #4ACADAaa | — |
| entity.other.attribute-name, entity.name.tag.liquid, invalid.deprecated.entity.other.attribute-name, meta.embedded.block.blade storage.type.php | #FFED4F | italic |
| markup.inline.raw.string.markdown, punctuation.definition.raw.markdown, markup.fenced_code.block.markdown, markup.fenced_code.block.markdown punctuation, markup.raw.block.markdown | #BFB2FF | — |
| fenced_code.block.language | #BFB2FF | — |
| markup.list.unnumbered.markdown meta.paragraph.markdown | #4ACADA | — |
| punctuation.definition.list.begin | #4ACADA | — |
| entity.name.section, markup.heading.setext | #FFED4F | — |
| punctuation.definition.heading | #FFED4F | — |
| markup.underline.link, markup.underline.link.image | #4ACADA | — |
| markup.bold, punctuation.definition.bold | #4ACADA | bold |
| markup.italic, punctuation.definition.italic | #4ACADA | italic |
| markup.quote | #4ACADA | italic |
| punctuation.definition.quote.begin | #4ACADA | italic |
| entity.other.attribute-name.pseudo-class | #F9A7F3 | — |
| entity.other.attribute-name.pseudo-element | #F9A7F3 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.class punctuation.definition.entity | #4AFFC8 | italic |
| entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity | #4AFFC8 | italic |
| support.type.property-name.css, support.type.vendored.property-name, meta.property-list entity.name.tag.css | #FFFFFFcc | — |
| source.css.scss entity.other.attribute-name.id , source.css entity.other.attribute-name.id , entity.other.attribute-name.id punctuation.definition.entity | #BFB2FF | — |
| entity.name.tag.reference, meta.property-list | #FFA34F | — |
| keyword.other.unit | #FFA34F | italic |
| support.constant.property-value, support.constant.font-name, meta.property-value.css | #FFA34F | — |
| constant.numeric | #FFA34F | — |
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}!`;
}