SpaceRave Theme
Publisher: geraneThemes in package: 1
SpaceRave Theme ported from the SpaceRave TextMate Theme
SpaceRave Theme ported from the SpaceRave TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #E1EBFA | — |
| comment | #00DDFF82 | — |
| string | #00DDFF | — |
| constant.numeric | #FF0077 | — |
| constant.language | #E9EE00 | — |
| constant.character, constant.other | #00DDFF | — |
| variable | #00DDFF | — |
| keyword | #A3ED0E | — |
| storage | #ffffff | |
| storage.type | #00DDFF | italic |
| entity.name.class | #A3ED0E | underline |
| entity.other.inherited-class | #00DDFF | italic underline |
| entity.name.function | #EFFBFF | |
| variable.parameter | #FF0077 | italic |
| entity.name.tag | #EFFBFF | |
| entity.other.attribute-name | #7a9bc2 | |
| support.function | #FF0077 | |
| support.constant | #FF0077 | |
| support.type, support.class | #FF0077 | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #EFFBFF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #00A8C6 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E9EE00 | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| meta.selector.css entity.name.tag | #FF0077 | — |
| meta.selector.css entity.other.attribute-name.id | #56c5c0 | — |
| meta.selector.css entity.other.attribute-name.class | #A3ED0E | underline |
| support.type.property-name.css | #00DDFF | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #A3ED0E | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #E9EE00 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #E9EE00 | — |
| meta.constructor.argument.css | #EB3440 | — |
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}!`;
}