dqn
Publisher: dqnThemes in package: 1
Personal VS Code color theme for dqn
Personal VS Code color theme for dqn
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 |
|---|---|---|
| comment, punctuation.definition.comment | #7B8794 | — |
| variable, string constant.other.placeholder | #E1F0FF | — |
| keyword, storage.type, storage.modifier | #7FB8E5 | — |
| keyword.control, 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 | #85C1E9 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, punctuation.separator.operator, keyword.operator.increment, keyword.operator.decrement | #FFFFFF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #DE938C | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #81D4E6 | — |
| variable.parameter, meta.function.parameters variable.other | #D4E9FF | — |
| variable.language, variable.language.this, variable.language.super, variable.language.self | #9DC4E0 | — |
| entity.name.method, meta.method-call | #66E5FF | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #98D8C8 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #17A2B8 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #FFEDA1 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #C8A8E9 | — |
| entity.other.attribute-name | #A6E4E7 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFEDA1 | — |
| text.html.basic, meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #F6FBFF | — |
| invalid, invalid.illegal | #E74C3C | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #85C1E9 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #85C1E9 | bold |
| markup.bold, markup.bold string | #E8F4F8 | bold |
| markup.italic | #D5DBDB | italic |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown, punctuation.definition.raw.markdown | #FFEDA1 | — |
| string.other.link.title.markdown | #5DADE2 | underline |
| support.type.property-name.css | #30D5C8 | — |
| support.constant.property-value.css | #17A2B8 | — |
| string.regexp | #A8C8E1 | — |
| constant.character.escape | #A8C8E1 | — |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #8FC4C4 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #B8A3D1 | — |
| entity.name.type.enum, support.type.enum | #30D5C8 | — |
| variable.other.enummember, constant.other.enum, variable.other.constant.property | #F4D03F | — |
| variable.other.object, variable.other.readwrite, support.variable | #E8F4F9 | — |
| entity.name.type, support.type, entity.name.type.class | #C8A8E8 | — |
| meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, meta.decorator, punctuation.decorator | #FF7F7F | — |
| support.function.magic.python | #30D5C8 | — |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #87C5C5 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #FFEDA1 | — |
| meta.annotation.rust, meta.annotation.rust punctuation, meta.attribute.rust, punctuation.definition.attribute.rust | #85C1E9 | — |
| support.macro.rust, meta.macro.rust support.function.rust, entity.name.function.macro.rust | #30D5C8 | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime | #A8C8E1 | — |
| support.function.macro.julia | #30D5C8 | — |
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}!`;
}