Star Trek: Factions Theme Pack
Publisher: Robert SchnableThemes in package: 7
7 dark VS Code themes inspired by the factions and aesthetics of Star Trek — Federation, Klingon, Cardassian, Romulan, Vulcan, Borg, and LCARS.
7 dark VS Code themes inspired by the factions and aesthetics of Star Trek — Federation, Klingon, Cardassian, Romulan, Vulcan, Borg, and LCARS.
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 | #dd9944 | italic |
| keyword, storage.type, storage.modifier | #ffaabb | bold |
| keyword.control | #ffccdd | bold |
| string, string.quoted | #fff0aa | — |
| constant.character.escape, string.regexp | #fff8cc | — |
| constant.numeric, constant.language, constant.other | #ddccff | — |
| entity.name.function, meta.function-call entity.name.function | #ffe8cc | — |
| variable.parameter | #ffcc99 | italic |
| variable, variable.other | #ffdd55 | — |
| entity.name.type, entity.name.class, support.class | #ffccdd | bold |
| entity.name.interface, entity.other.inherited-class | #ffbbcc | italic |
| variable.other.property, support.type.property-name | #ffcc88 | — |
| keyword.operator | #ffaabb | — |
| punctuation | #ddaa44 | — |
| entity.name.tag | #ddccff | — |
| entity.other.attribute-name | #fff0aa | — |
| meta.decorator, punctuation.decorator | #ffccdd | italic |
| entity.name.tag.css, entity.other.attribute-name.class.css | #ddccff | — |
| support.constant.property-value.css | #fff0aa | — |
| invalid | #ff6688 | underline bold |
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}!`;
}