Asan Theme
Publisher: arielbettiThemes in package: 2
This theme was made for aggressive software developers, the most beautiful, powerful and aggressive dark theme you could have
This theme was made for aggressive software developers, the most beautiful, powerful and aggressive dark theme you could have
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, unused.comment, wildcard.comment | #a1a1aa | italic |
| constant | #5cc9f5 | — |
| constant.language, constant.charcter.escape | #60A5FA | — |
| constant.numeric | #5eead4 | — |
| entity.name | #60A5FA | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #e879f9 | — |
| entity.other.attribute-name, entity.other.inherited-class | #00ffa2 | italic |
| invalid | #DC2626 | — |
| invalid.deprecated | #a1a1aa | — |
| keyword.control.new, keyword.operator.new | — | bold |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #8BE9FE | — |
| keyword | #fb7185 | — |
| meta.tag, meta.brace | #9898A2 | — |
| meta.import, meta.export | #5cc9f5 | — |
| meta.directive.vue | #da68fb | italic |
| meta.property-name.css | #ACAFFF | — |
| meta.property-value.css | #3B82F6 | — |
| meta.tag.other.html | #a1a1aa | — |
| punctuation | #c4b5fd | — |
| punctuation.accessor | #5cc9f5 | — |
| punctuation.definition.string | #a5b4fc | — |
| punctuation.definition.tag | #fae8ff | — |
| storage.type, storage.modifier | #f0abfc | — |
| string | #e0e7ff | — |
| support | #ACAFFF | — |
| support.constant | #3B82F6 | — |
| support.function | #6ee7b7 | italic |
| variable | #60A5FA | italic |
| variable.other, variable.language, variable.function, variable.argument | #a5b4fc | — |
| variable.other.readwrite | #22d3ee | — |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #b280f8 | italic |
| variable.parameter | #f472b6 | — |
| support, entity.name.type, meta.interface.ts, entity.other.inherited-class | #60a5fa | — |
| variable.other.property | #c7d2fe | — |
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}!`;
}