LCARS
Publisher: Micah DutroThemes in package: 3
Star Trek LCARS color themes for VS Code, in three screen-accurate variants: TNG, DS9, and the film era.
Star Trek LCARS color themes for VS Code, in three screen-accurate variants: TNG, DS9, and the film era.
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 | #61594c | italic |
| string, string.quoted, punctuation.definition.string | #d0a030 | — |
| constant.character.escape, string.regexp | #a098c8 | — |
| constant.numeric | #d8b040 | — |
| constant.language, constant.other, variable.language, support.constant | #d8b040 | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.other | #c8a828 | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #a89e90 | — |
| punctuation.definition.tag, punctuation.section, meta.brace | #a89e90 | — |
| variable, variable.other.readwrite, variable.parameter | #c4ae80 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #a09268 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #7098c8 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, storage.type.class | #8888c0 | — |
| meta.decorator, entity.name.function.decorator, entity.other.attribute-name, punctuation.decorator, entity.name.tag.yaml | #a098c8 | — |
| entity.name.namespace, entity.name.module, support.module | #8c806e | — |
| entity.name.tag, meta.tag | #c8a828 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx | #7098c8 | — |
| invalid, invalid.illegal | #cb5353 | — |
| markup.heading, entity.name.section | #c8a828 | bold |
| markup.bold | #cabca1 | bold |
| markup.italic | #c2baad | italic |
| markup.underline.link, string.other.link | #7098c8 | — |
| markup.quote | #8c806e | italic |
| markup.raw, markup.inline.raw | #d0a030 | — |
| markup.inserted | #7098c8 | — |
| markup.deleted | #cb5353 | — |
| meta.diff.header, meta.diff.range | #61594c | — |
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}!`;
}