Akane Noir
Publisher: nsnetThemes in package: 1
A calm gray-dark VS Code theme with warm akane accents by Akame.
A calm gray-dark VS Code theme with warm akane accents by Akame.
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 | #a3a0b8 | italic |
| keyword, storage, storage.type | #ff163d | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #ffd166 | — |
| string, constant.other.symbol | #9dff6a | — |
| constant.numeric, constant.language, constant.character | #ffd166 | — |
| entity.name.function, support.function, meta.function-call | #21b8ff | — |
| variable, meta.definition.variable.name | #ff304d | — |
| variable.other.property, support.variable.property, meta.object-literal.key | #ff5d73 | — |
| entity.name.type, entity.name.class, entity.name.interface, support.type | #ffd166 | — |
| entity.name.tag, punctuation.definition.tag | #ff304d | — |
| entity.other.attribute-name, variable.parameter, meta.jsx.children, meta.attribute | #ff6a7d | italic |
| support.type.property-name.json, meta.structure.dictionary.key.json, meta.object-literal.key, string.unquoted.yaml, entity.name.tag.yaml | #ff304d | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type.property-name.css, variable.css | #ff7a3d | — |
| keyword.control.import.python, keyword.control.from.python, storage.type.function.python, support.function.builtin.shell, keyword.control.shell | #ff6a7d | — |
| variable.other.normal.shell, variable.other.bracket.shell, string.interpolated.dollar.shell | #ff304d | — |
| keyword.other.sql, keyword.control.sql, storage.type.sql | #d76dff | — |
| support.type.property-name.toml, entity.name.section.toml, entity.name.tag.yaml, support.type.property-name.yaml | #ff304d | — |
| source.toml entity.name.section, source.toml entity.name.section.group-title, source.toml punctuation.definition.table, source.toml punctuation.definition.array | #ffd166 | — |
| source.toml support.type.property-name, source.toml variable.other.key, source.toml variable.other.member, source.toml string.unquoted | #ff304d | — |
| source.toml string.quoted, source.toml string.quoted.double, source.toml string.quoted.single | #9dff6a | — |
| source.toml constant.numeric, source.toml constant.language.boolean, source.toml constant.language, source.toml constant.other | #21e0ff | — |
| source.toml keyword.operator, source.toml punctuation.separator.key-value, source.toml punctuation.separator | #ffd166 | — |
| entity.other.attribute-name.xml, meta.attribute.xml | #ff7a3d | — |
| support.type.primitive, support.class, support.type.python, constant.language.boolean, constant.language.null | #21e0ff | — |
| markup.heading, markup.bold, markup.inline.raw | #ff304d | — |
| invalid, invalid.illegal | #ffffff | — |
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}!`;
}