Ashened
Publisher: Aashwin SThemes in package: 1
VS CODE THEME ASHENED
VS CODE THEME ASHENED
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, comment.line, comment.block, comment.line.scss, comment.line.double-slash.js, comment.line.double-slash.ts, comment.block.js, comment.block.ts, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.ts, punctuation.definition.comment.html, comment.block.html | #6D6F7C | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator, keyword.other, storage | #FF90EE | italic |
| keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.return, keyword.control.import, keyword.control.export, keyword.control.from | #FF90EE | bold italic |
| variable, variable.parameter, variable.parameter.js, variable.parameter.ts, variable.parameter.function, string constant.other.placeholder | #E1F0FF | italic |
| entity.name.function, support.function, meta.function-call.generic, variable.function, entity.name.method | #C9ECFF | italic |
| entity.name.class, entity.name.type, support.type, support.class, entity.other.inherited-class | #CAC9FF | bold |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template | #C9ECFF | — |
| string.template, string.quoted.template, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, meta.template.expression | #96F9FF | — |
| constant.numeric, constant.language, constant.character, constant.escape, constant.other | #FF90EE | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #5738FF | bold |
| string.regexp, string.regexp.character-class, string.regexp.anchor, string.regexp.quantifier | #CAC9FF | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property | #D1FFFD | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.tsx | #E1F0FF | bold |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #FF90EE | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, support.type.property-name.less | #D1FFFD | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.media.css | #C9ECFF | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #96F9FF | — |
| support.type.property-name.json, string.quoted.double.json support.type.property-name.json | #E1F0FF | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown | #D1FFFD | bold |
| markup.inline.raw.markdown, markup.fenced_code.block.markdown | #FF90EE | — |
| markup.underline.link.markdown, string.other.link.title.markdown, string.other.link.description.title.markdown | #96F9FF | underline |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #FF90EE | italic |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #CAC9FF | italic |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, meta.import.js, meta.import.ts | #FF7676 | — |
| entity.name.type.ts, entity.name.type.tsx, support.type.primitive.ts, support.type.primitive.tsx | #CAC9FF | bold |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.jsx, entity.name.tag.tsx | #96F9FF | bold |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition | #A7A8AF | — |
| punctuation.section.brackets, punctuation.section.braces, punctuation.section.parens, meta.brace.round, meta.brace.square, meta.brace.curly | #E1F0FF | — |
| keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise | #FF90EE | — |
| invalid, invalid.illegal, invalid.deprecated | #FF7676 | strikethrough |
| markup.inserted, markup.inserted.git_gutter | #5738FF | — |
| markup.deleted, markup.deleted.git_gutter | #FF7676 | — |
| markup.changed, markup.changed.git_gutter | #FF90EE | — |
| constant.character.escape | #CAC9FF | bold |
| *url*, *link*, *uri* | — | underline |
| support.function.console, entity.name.function.console | #96F9FF | bold |
| token.info-token | #96F9FF | — |
| token.warn-token | #FF90EE | — |
| token.error-token | #FF7676 | — |
| token.debug-token | #CAC9FF | — |
| keyword.control.import.python, keyword.control.flow.python, keyword.operator.logical.python, keyword.control.exception.python | #FF90EE | bold italic |
| support.function.builtin.python, support.type.python, constant.language.python | #CAC9FF | bold |
| support.function.magic.python, variable.language.special.self.python, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #96F9FF | italic |
| entity.name.function.decorator.python, punctuation.definition.decorator.python, meta.function.decorator.python | #FF90EE | italic |
| string.quoted.single.python, string.quoted.double.python, string.quoted.triple.python, meta.fstring.python, string.interpolated.python | #C9ECFF | — |
| meta.fstring.python meta.interpolation.python, punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #96F9FF | — |
| entity.name.class.python, entity.other.inherited-class.python | #CAC9FF | bold |
| keyword.control.cpp, keyword.other.cpp, storage.type.cpp, storage.modifier.cpp | #FF90EE | italic |
| storage.type.primitive.cpp, storage.type.built-in.cpp, entity.name.type.cpp | #CAC9FF | bold |
| support.function.cpp, support.class.std.cpp, entity.name.namespace.cpp | #D1FFFD | — |
| keyword.control.directive.cpp, meta.preprocessor.cpp, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #FF90EE | bold |
| entity.name.function.cpp, entity.name.function.member.cpp | #C9ECFF | italic |
| entity.name.class.cpp, entity.name.struct.cpp, entity.name.union.cpp | #CAC9FF | bold |
| punctuation.definition.pointer.cpp, storage.modifier.pointer.cpp, storage.modifier.reference.cpp | #FF90EE | bold |
| keyword.other.template.cpp, punctuation.definition.template.cpp, meta.template.cpp | #96F9FF | — |
| keyword.control.go, keyword.function.go, keyword.package.go, keyword.import.go | #FF90EE | italic |
| storage.type.go, entity.name.type.go, support.type.go | #CAC9FF | bold |
| support.function.builtin.go, constant.language.go | #D1FFFD | bold |
| entity.name.function.go, support.function.go | #C9ECFF | italic |
| entity.name.struct.go, entity.name.interface.go | #CAC9FF | bold |
| entity.name.package.go, entity.name.import.go | #96F9FF | — |
| keyword.channel.go, keyword.control.go.goroutine | #FF90EE | bold |
| constant.other.placeholder.go | #96F9FF | bold |
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}!`;
}