Kabbotta Theme
Publisher: geraneThemes in package: 1
Kabbotta Theme ported from the Kabbotta TextMate Theme
Kabbotta Theme ported from the Kabbotta TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #D6AF8D | — |
| punctuation - (punctuation.definition.string | punctuation.definition.comment) | #FFFFFF | |
| constant | #D5BEED | |
| entity | #D4C0A7 | |
| keyword |
TypeScript sample highlighted with this variant's colors and tokenColors.
| storage | #F2E7B6 |
| string -string.unquoted.old-plist -string.unquoted.heredoc, string.unquoted.heredoc string | #ACDAF2 |
| comment | #666666 | — |
| support | #E9D4D2 |
| variable | #D1CBB8 |
| variable.language | #FFFFFF |
| meta.function-call | #FFEE80 | — |
| invalid | #F8F8F8 | — |
| text source, string.unquoted.heredoc, source source | #FFFFFF |
| entity.other.inherited-class | #777777 | — |
| string.quoted source | #9EFF80 |
| string constant | #80FF82 | — |
| string.regexp | #80FFC2 | — |
| string variable | #EDEF7D | — |
| support.function | #FFB054 |
| support.constant | #EB939A |
| support.type.exception | #FF1E00 | — |
| meta.preprocessor.c | #8996A8 | — |
| meta.preprocessor.c keyword | #AFC4DB | — |
| meta.sgml.html meta.doctype, meta.sgml.html meta.doctype entity, meta.sgml.html meta.doctype string, meta.xml-processing, meta.xml-processing entity, meta.xml-processing string | #73817D | — |
| meta.tag, meta.tag entity | #9EFFFF | — |
| meta.selector.css entity.name.tag | #9EFFFF | — |
| meta.selector.css entity.other.attribute-name.id | #FFB454 | — |
| meta.selector.css entity.other.attribute-name.class | #5FE461 | — |
| support.type.property-name.css | #9DF39F | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #F6F080 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #F6AA11 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #EDF080 | — |
| meta.constructor.argument.css | #EB939A | — |
| meta.diff, meta.diff.header | #F8F8F8 |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.raw | — | — |
| markup.quote | — | — |
| markup.list | — | — |
| markup.bold | #C1AFFF | bold |
| markup.italic | #B8FFD9 | italic |
| markup.heading | #C8E4FD | bold |
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}!`;
}