Ava Night
Publisher: Ava StudioThemes in package: 1
A modern dark Visual Studio Code theme inspired by midnight, designed for readability, balanced contrast, and long coding sessions.
A modern dark Visual Studio Code theme inspired by midnight, designed for readability, balanced contrast, and long coding sessions.
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 | #667085 | italic |
| variable, string constant.other.placeholder | #D8DEE9 | — |
| constant.other.color | #D8DEE9 | — |
| invalid, invalid.illegal | #F07178 | — |
| keyword, storage.type, storage.modifier | #B48EFA | — |
| keyword.control | #B48EFA | — |
| constant.other.color, 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 | #61AFEF | — |
| keyword.operator, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.increment, keyword.operator.decrement, keyword.operator.ternary, keyword.operator.new | #61AFEF | — |
| punctuation, punctuation.accessor, punctuation.terminator, punctuation.separator, punctuation.section | #8A93A5 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #F07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #61AFEF | — |
| meta.function entity.name.function, meta.function-call entity.name.function | #61AFEF | — |
| meta.block variable.other | #D8DEE9 | — |
| support.other.variable, string.other.link | #D8DEE9 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #E5C07B | — |
| 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 | #98C379 | — |
| string.template, string.template punctuation.definition.string.template, string.template variable.other | #98C379 | — |
| 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 | #FFD166 | — |
| support.type | #B2CCD6 | — |
| 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 | #B2CCD6 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media, support.constant.media.property-value | #E5C07B | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #D8DEE9 | — |
| variable.language | #D8DEE9 | italic |
| entity.name.method.js | #61AFEF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #61AFEF | — |
| entity.other.attribute-name | #B48EFA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFD166 | italic |
| entity.other.attribute-name.class | #FFD166 | — |
| source.sass keyword.control | #61AFEF | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #B48EFA | — |
| markup.inserted | #98C379 | — |
| markup.deleted | #F07178 | — |
| markup.changed | #B48EFA | — |
| string.regexp | #7FDBFF | — |
| string.regexp keyword.other, string.regexp constant.character.escape | #B48EFA | — |
| constant.character.escape | #7FDBFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #61AFEF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #D8DEE9 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #B48EFA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFD166 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #E5C07B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #61AFEF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #B48EFA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #98C379 | — |
| source.json punctuation.separator, source.json punctuation.definition.string | #8A93A5 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #D8DEE9 | — |
| text.html.markdown markup.inline.raw.markdown | #B48EFA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #667085 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #98C379 | — |
| markup.italic | #D8DEE9 | italic |
| markup.bold, markup.bold string | #D8DEE9 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #D8DEE9 | bold |
| markup.underline | #E5C07B | underline |
| markup.quote punctuation.definition.blockquote.markdown | #667085 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #61AFEF | — |
| string.other.link.description.title.markdown | #B48EFA | — |
| constant.other.reference.link.markdown | #FFD166 | — |
| markup.raw.block | #B48EFA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #D8DEE9 | — |
| variable.language.fenced.markdown | #667085 | — |
| meta.separator | #667085 | bold |
| markup.table | #D8DEE9 | — |
| variable.parameter.function.language.special.self.python | #B48EFA | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #B48EFA | italic |
| support.type.builtin.python, support.function.builtin.python | #61AFEF | — |
| variable.language.this.js, variable.language.this.ts, variable.language.this.jsx, variable.language.this.tsx | #B48EFA | italic |
| variable.language.super.js, variable.language.super.ts | #FFD166 | italic |
| keyword.control.import.js, keyword.control.export.js, keyword.control.import.ts, keyword.control.export.ts | #B48EFA | — |
| entity.name.tag.jsx, entity.name.tag.tsx | #FFD166 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #B48EFA | — |
| meta.tag.script.html | #D8DEE9 | — |
| meta.tag.style.html | #D8DEE9 | — |
| keyword.important.css, keyword.important.scss, keyword.important.sass | #F07178 | — |
| keyword.other.DDL.sql, keyword.other.DML.sql, keyword.other.DQL.sql | #B48EFA | — |
| entity.name.package.go | #B48EFA | — |
| variable.language.self.rust | #B48EFA | italic |
| variable.language.this.java | #B48EFA | italic |
| meta.preprocessor.c, meta.preprocessor.cpp, keyword.control.import.include.c, keyword.control.import.include.cpp | #B48EFA | — |
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}!`;
}