Astral Foundry — Space Themes & Icons
Publisher: ToxicEpochThemes in package: 50
50 original space-inspired themes, 50 matching icon packs, and a dedicated developer workspace.
50 original space-inspired themes, 50 matching icon packs, and a dedicated developer workspace.
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 | #A0AB9E | — |
| keyword, storage | #CCBFEC | — |
| keyword.operator | #EAF2E2 | — |
| string | #DCE9DE | — |
| constant.numeric, constant.language, constant.character, constant.other | #E0EBDF | — |
| entity.name.function, support.function | #D5E59A | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.name.namespace | #D5E59A | — |
| variable, meta.definition.variable | #EAF2E2 | — |
| variable.parameter | #EAF2E2 | — |
| support.type.property-name, entity.other.attribute-name, meta.object-literal.key | #D5E59A | — |
| punctuation | #EAF2E2 | — |
| punctuation.section.interpolation, keyword.other.template, meta.interpolation punctuation | #D5E59A | — |
| constant.character.escape | #D5E59A | — |
| entity.name.tag | #CCBFEC | — |
| storage.type.terraform, keyword.control.terraform, keyword.other.terraform | #CCBFEC | — |
| variable.other.property.terraform, variable.other.readwrite.terraform | #EAF2E2 | — |
| support.function.builtin.shell, support.function.powershell | #D5E59A | — |
| markup.heading, entity.name.section | #D5E59A | bold |
| markup.bold | #EAF2E2 | bold |
| markup.italic | #EAF2E2 | italic |
| markup.inline.raw, markup.fenced_code.block | #DCE9DE | — |
| markup.underline.link | #D5E59A | — |
| markup.inserted | #78E5A1 | — |
| markup.deleted | #FB7E91 | — |
| invalid | #FB7E91 | — |
| support.type.property-name.json, entity.name.tag.yaml, entity.name.tag.yml | #D5E59A | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql | #CCBFEC | — |
| string.regexp, constant.other.character-class.regexp | #DCE9DE | — |
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}!`;
}