Aurora Coffe Theme
Publisher: rafaelhenriquegrecoThemes in package: 1
This a Aurora theme
This a Aurora theme
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 | #546E7A | italic |
| string, string.quoted | #EED263 | — |
| constant.numeric | #C792EA | — |
| storage.type.class, storage.type.function, storage.type.interface, storage.type.type, storage.type.enum, storage.type.ts, storage.type.js, storage.modifier.ts, storage.modifier.js, storage.modifier, variable.language.super, new.expr.ts | #89DDFF | italic |
| storage.type.function.constructor, entity.name.function.constructor | #89DDFF | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.operator.comparison.go, keyword.operator.assignment.go | #FF5370 | — |
| entity.name.function, entity.name.function.ts, entity.name.function.js, support.function, meta.function-call.generic | #C3E88D | — |
| variable.language.this | #ABABAB | — |
| variable.other.constant, variable.other.readwrite, variable.other, variable.parameter | #959de9 | — |
| variable.other.property | #EEFFFF | — |
| punctuation.accessor | #EEFFFF | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.typeparameters, punctuation.definition.binding-pattern, punctuation.definition.string, punctuation.separator, punctuation.terminator, punctuation.accessor, keyword.operator.type.annotation, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.section.embedded, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, string.template meta.brace, meta.embedded punctuation.section, punctuation.other.period.go, punctuation.other.comma.go | #ABABAB | — |
| entity.name.type.go, storage.type.go, keyword.function.go | #89DDFF | italic |
| punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, meta.tag.tsx, meta.tag.jsx, meta.jsx.children | #EEFFFF | italic |
| variable.other.object.tsx, variable.other.object.jsx, meta.object.member.tsx, meta.object.member.jsx | #C3E88D | — |
| variable.other.property | #EEFFFF | — |
| variable.other.object.tsx, variable.other.object.jsx, meta.object.member.tsx, meta.object.member.jsx | #C3E88D | — |
| meta.object-literal.key, meta.object-literal.key.tsx, meta.object-literal.key.jsx | #EEFFFF | — |
| punctuation.support.type.property-name.end.json, support.type.property-name.json, string.json, meta.structure.dictionary.json, source.json | #959de9 | — |
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}!`;
}