Tomato Color Theme
Publisher: lypt1xThemes in package: 1
A dark color theme inspired by Visual Assist from Whole Tomato Software. Features vibrant syntax highlighting with tomato-orange functions, blue keywords, and green comments.
A dark color theme inspired by Visual Assist from Whole Tomato Software. Features vibrant syntax highlighting with tomato-orange functions, blue keywords, and green comments.
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 |
|---|---|---|
| variable.language.this | #7fc7ff | bold |
| variable.other.property, meta.property.object, meta.property.member | #ffd28f | — |
| comment, punctuation.definition.comment | #6fbf5a | italic |
| keyword, storage.type, storage.modifier | #4aa5ff | bold |
| entity.name.function, meta.function-call, support.function | #ff8700 | bold |
| entity.name.type, entity.name.type.class, support.class | #ffe066 | bold |
| entity.name.type.interface, support.type | #c3e3b6 | — |
| variable.parameter, meta.function.parameter | #9cd6ff | — |
| variable.other.readwrite | #dcdcdc | — |
| variable.other.constant, support.constant | #c36ad1 | — |
| constant.numeric, constant.language | #b8d8ad | — |
| string | #d79f87 | — |
| constant.character.escape | #e48811 | — |
| support.type.primitive.ts, support.type.builtin.ts, keyword.type.ts | #54d3bb | bold |
| entity.name.type.interface.ts, entity.name.type.alias.ts | #c3e3b6 | bold |
| keyword.operator.type.annotation.ts | #4aa5ff | — |
| meta.type.parameters.ts | #ff8700 | — |
| support.class.component.ts, support.class.component.tsx, entity.name.tag.tsx | #ffe066 | bold |
| punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #4aa5ff | — |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #7ad2ff | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #4aa5ff | — |
| variable.other.property, meta.property.object, meta.property.member, punctuation.accessor, keyword.operator.optional, keyword.operator.accessor | #ffb454 | — |
| variable.other.property, meta.property.object, meta.property.member | #ffc87a | — |
| entity.name.namespace | #c3e3b6 | — |
| meta.brace | #d6d6d6 | — |
| punctuation.separator | #8a8a8a | — |
| invalid | #ff3333 | underline |
| markup.deleted | #ff6666 | — |
| markup.inserted | #4cd44c | — |
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}!`;
}