Watermelon
Publisher: Thomas van der VeldeThemes in package: 1
Dark theme with fruity colors
Dark theme with fruity colors
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 |
|---|---|---|
| — | #B2B9BDBF | — |
| comment | #555555 | — |
| string | #AAE384 | italic |
| constant.numeric | #0099FF | — |
| constant.language | #E7F29F | — |
| constant.character, constant.other | #E7F29F | — |
| variable | #FFFFFF | — |
| keyword | #FF3B3B | — |
| storage | #F7548D | — |
| storage.type | #F7548D | — |
| entity.name.class | #EB6F6F | — |
| entity.other.inherited-class | #A1FF3D | — |
| entity.name.function | #66D9EF | — |
| variable.parameter | #FD971F | — |
| entity.name.tag | #F92672 | — |
| entity.other.attribute-name | #70AAEB | — |
| support.function | #66D9EF | — |
| support.constant | #F92672 | |
| support.type, support.class | #099866 | — |
| support.other.variable | — | — |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| source.css meta.property-list.css meta.property-name.css support.type.property-name.css | #8DE3E3 | — |
| source.css meta.property-list.css meta.property-name.css | #8DE3E3 | — |
| source.css meta.selector.css entity.other.attribute-name | #FA7878 | — |
| source.css meta.selector.css entity.name.tag.css | #E7F29F | — |
| entity.name.tag | #EBD17BD9 | — |
| entity.other.attribute-name.html | #FA7878 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}