Adones Theme
Publisher: Muhammad Ali SamejoThemes in package: 4
A custom dark theme for Visual Studio Code.
A custom dark theme for Visual Studio Code.
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 |
|---|---|---|
| constant.other.character-class.regexp | #db6069 | — |
| keyword.operator.quantifier.regexp | #cd936b | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #66b47d | — |
| variable.parameter.function | #a4b8ae | — |
| comment markup.link | #768280 | — |
| punctuation.separator.key-value | #a4b8ae | — |
| keyword.operator.expression.import | #8bc7f9 | — |
| support.constant.math | #ecbb6e | — |
| support.constant.property.math | #cd936b | — |
| variable.other.constant | #ecbb6e | — |
| keyword.operator.logical | #a3b6bc | — |
| keyword.operator.bitwise | #a3b6bc | — |
| support.constant.property-value.css | #cd936b | — |
| keyword.operator.css | #a3b6bc | — |
| support.constant.color.w3c-standard-color-name.css | #cd936b | — |
| punctuation.separator.list.comma.css | #a4b8ae | — |
| support.constant.color.w3c-standard-color-name.css | #cd936b | — |
| support.type.vendored.property-name.css | #a3b6bc | — |
| support.module.node,support.type.object.module,support.module.node | #ecbb6e | — |
| entity.name.type.module | #ecbb6e | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #db6069 | — |
| support.constant.json | #cd936b | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #ca86d7 | — |
| support.type.object.console | #db6069 | — |
| support.variable.property.process | #cd936b | — |
| entity.name.function,support.function.console | #8bc7f9 | — |
| keyword.operator.delete | #ca86d7 | — |
| support.type.object.dom | #a3b6bc | — |
| support.variable.dom,support.variable.property.dom | #db6069 | — |
| keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational | #a3b6bc | — |
| punctuation.separator.delimiter | #a4b8ae | — |
| keyword.operator | #a4b8ae | — |
| keyword.operator.assignment.compound | #ca86d7 | — |
| keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts | #a3b6bc | — |
| keyword | #ca86d7 | — |
| entity.name.namespace | #ecbb6e | — |
| variable | #db6069 | — |
| variable.language | #ecbb6e | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #8bc7f9 | — |
| entity.name.type.namespace | #ecbb6e | — |
| support.class, entity.name.type.class | #ecbb6e | — |
| entity.name.class.identifier.namespace.type | #ecbb6e | — |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #ecbb6e | — |
| entity.name.type | #ecbb6e | — |
| keyword.control | #ca86d7 | — |
| control.elements | #cd936b | — |
| keyword.other.special-method | #8bc7f9 | — |
| storage | #ca86d7 | — |
| token.storage | #ca86d7 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #ca86d7 | — |
| support.function | #a3b6bc | — |
| support.type.property-name | #a4b8ae | — |
| support.constant.property-value | #a4b8ae | — |
| support.constant.font-name | #cd936b | — |
| meta.tag | #a4b8ae | — |
| string | #66b47d | — |
| entity.other.inherited-class | #ecbb6e | — |
| constant.other.symbol | #a3b6bc | — |
| constant.numeric | #cd936b | — |
| constant | #cd936b | — |
| punctuation.definition.constant | #cd936b | — |
| entity.name.tag | #db6069 | — |
| entity.other.attribute-name | #cd936b | — |
| entity.other.attribute-name.id | #8bc7f9 | normal |
| entity.other.attribute-name.class.css | #cd936b | normal |
| meta.selector | #ca86d7 | — |
| keyword.other.unit | #db6069 | — |
| string.regexp | #a3b6bc | — |
| constant.character.escape | #a3b6bc | — |
| punctuation.section.embedded, variable.interpolation | #db6069 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #ca86d7 | — |
| invalid.illegal | #ffffff | — |
| invalid.illegal.bad-ampersand.html | #a4b8ae | — |
| invalid.broken | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| invalid.unimplemented | #ffffff | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #db6069 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #db6069 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #66b47d | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #a3b6bc | — |
| support.type.property-name.json | #db6069 | — |
| support.type.property-name.json punctuation | #db6069 | — |
| function.parameter | #a4b8ae | — |
| function.brace | #a4b8ae | — |
| rgb-value | #a3b6bc | — |
| inline-color-decoration rgb-value | #cd936b | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #ecbb6e | — |
| block.scope.end,block.scope.begin | #a4b8ae | — |
| token.info-token | #8bc7f9 | — |
| token.warn-token | #cd936b | — |
| token.error-token | #f44747 | — |
| token.debug-token | #ca86d7 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #ca86d7 | — |
| meta.template.expression | #a4b8ae | — |
| keyword.operator.module | #ca86d7 | — |
| support.type.primitive | #ecbb6e | — |
| meta.property.object | #db6069 | — |
| variable.parameter.function.js | #db6069 | — |
| keyword.other.template.begin | #66b47d | — |
| keyword.other.template.end | #66b47d | — |
| keyword.other.substitution.begin | #66b47d | — |
| keyword.other.substitution.end | #66b47d | — |
| keyword.operator.assignment | #a3b6bc | — |
| punctuation.quasi.element | #ca86d7 | — |
| constant.character.entity | #db6069 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #a3b6bc | — |
| meta.brace.square | #a4b8ae | — |
| comment, punctuation.definition.comment | #768280 | italic |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
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}!`;
}