Fruity Theme
Publisher: feegoThemes in package: 1
Fruity theme for Visual Studio Code.
Fruity theme for Visual Studio Code.
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment, extract.custom.title.sql | #CCCCCC | italic |
| custom.title.sql | #CC6633 | |
| keyword, storage | #205191 | bold |
| constant.numeric |
TypeScript sample highlighted with this variant's colors and tokenColors.
| constant | #000000 |
| constant.language | #CF7E53 | bold |
| variable.language, variable.other | #2E2E2E |
| string | #8A8A8A |
| constant.character.escape, string source | #62CC62 |
| meta.preprocessor | #1A921C |
| keyword.control.import | #0C450D | bold |
| entity.name.function, support.function.any-method | #1E7369 | bold |
| entity.name.type | — |
| entity.other.inherited-class | — |
| variable.parameter | — |
| storage.type.method | #70727E |
| meta.section entity.name.section, declaration.section entity.name.section | #000000 | italic |
| support.function | #994599 |
| support.class, support.type | #CF7E53 |
| support.constant | #962A96 |
| support.variable | #CC6633 |
| keyword.operator.js | #000000 | — |
| invalid | #FFFFFF | — |
| invalid.deprecated.trailing-whitespace | #00000000 | — |
| text source, string.unquoted | — | — |
| text source string.unquoted, text source text source | — | — |
| meta.tag.preprocessor.xml | #68685B |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #888888 |
| string.quoted.docinfo.doctype.DTD | — | italic |
| meta.tag, declaration.tag | #888888 |
| entity.name.tag | #205191 | bold |
| entity.other.attribute-name | #1E7369 | italic |
| markup.heading | #4D4DA1 | bold |
| markup.quote | #000000 | italic |
| markup.list | #B90690 | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.warning | #DDB700 | — |
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}!`;
}