IridiumStar Theme
Publisher: geraneThemes in package: 1
IridiumStar Theme ported from the IridiumStar TextMate Theme
IridiumStar Theme ported from the IridiumStar TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #808080 | — |
| string | #a9e34f | — |
| constant.numeric | #5a60ff | — |
| constant.language |
TypeScript sample highlighted with this variant's colors and tokenColors.
| — |
| constant.character, constant.other | #5a60ff | — |
| variable | — |
| keyword | #35a0e2 | — |
| storage | #35a0e2 |
| storage.type | #7bcbda | italic |
| entity.name.class | #ba36e2 | underline |
| entity.other.inherited-class | #ba36e2 | italic underline |
| entity.name.function | #ba36e2 |
| variable.parameter | #35a0e2 | italic |
| entity.name.tag | #dd427a |
| entity.other.attribute-name | #a9e34f |
| support.function | #7ddaec |
| support.constant | #7ddaec |
| support.type, support.class | #7ddaec | italic |
| support.other.variable | — |
| invalid | #f5f5f3 |
| invalid.deprecated | #f5f5f3 | — |
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}!`;
}
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}!`;
}