MarsTheme
Publisher: Lucas NunesThemes in package: 1
The red planet feeling theme! :)
The red planet feeling theme! :)
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 |
|---|---|---|
| invalid | #E07B5F | — |
| meta.brace, punctuation, keyword.operator.class, keyword.operator.type.annotation, storage.type.function.arrow | #7B534E | — |
| comment, punctuation.definition.comment | #4A2C2C | — |
| keyword.control.directive | #685157 | — |
| entity.name.other.preprocessor, entity.name.function.preprocessor | #7a6b63 | — |
| keyword, storage.modifier.async, storage.type.function | #C45A3F | — |
| support.class.component | #6492c7 | — |
| storage, keyword.const.go, keyword.type.go, keyword.struct.go, keyword.function.go, keyword.other.declaration-specifier, entity.name.tag, entity.name.section.markdown, entity.name.section.group-title | #E07B5F | — |
| support.type, entity.name.type, keyword.other.type | #D9AFA7 | — |
| support.function, entity.name.function, variable.language.super | #8778ae | — |
| support.class, entity.name.class, entity.name.type.class, entity.name.type.module, entity.other.alias, entity.other.inherited-class | #FF6B4A | — |
| support.other.namespace, entity.name.type.namespace | #ad927b | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class | #a09747 | — |
| string, markup.inline.raw.string, markup.fenced_code.block | #7d9958 | — |
| variable.other.link, string.interpolated, markup.underline.link | #97a067 | — |
| constant, keyword.other.unit.hexadecimal, fenced_code.block.language | #ad9d60 | — |
| keyword.other.unit.px, storage.type.numeric.bigint | #c28a5c | — |
| variable, support.variable, constant.other.caps, storage.modifier.package.java, storage.modifier.import.java | #D9AFA7 | — |
| variable.language.self, variable.language.this, variable.language.special.self, variable.language.special.this | #A0392F | bold italic |
| variable.language.global | #A0392F | bold |
| entity.name.tag.yaml, entity.other.attribute-name, support.type.property-name | #8e739c | — |
| markup.inserted.diff, meta.diff.header.to-file | #60a060 | — |
| meta.diff.header.from-file, markup.deleted.diff | #bd6e6e | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.strikethrough | — | strikethrough |
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}!`;
}