Birds_of_Paradise Theme
Publisher: geraneThemes in package: 1
Birds_of_Paradise Theme ported from the BirdsofParadise TextMate Theme
Birds_of_Paradise Theme ported from the BirdsofParadise TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #E6E1C4 | — |
| comment | #6B4E32 | italic |
| string.quoted.double.block.python | #6B4E32 | italic |
| constant | #6C99BB | — |
| entity | #EFAC32 | |
| keyword | #EF5D32 | |
| storage | #EF5D32 | |
| string | #D9D762 | italic |
| support | #E6E1C4 | |
| variable | #7DAF9C | — |
| invalid.deprecated | #CC4232 | italic underline |
| invalid.illegal | #E6E1C4 | — |
| ----------------------------------- | — | — |
| string constant | #6C99BB | italic |
| string.regexp | #8856D2 | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #BE73FD | — |
| string variable | #8A9A95 | — |
| support.function | #EFAC32 | |
| support.constant | #6C99BB | |
| meta.preprocessor.c | #8996A8 | — |
| meta.preprocessor.c keyword | #AFC4DB | — |
| 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 | #86B4BB | |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #86B4BB | |
| meta.diff, meta.diff.header, meta.separator | #F8F8F8 | italic |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| keyword.control.at-rule.sass | #EF5D32 | |
| variable.parameter | #7DAF9C | — |
| keyword.control.untitled, entity.other.attribute-name.class.sass, entity.other.attribute-name.id.sass, entity.other.attribute-name.tag.pseudo-class | #EFAC32 | — |
| support.type.property-name.sass | #E6E1C4 | — |
| support.constant.property-value.sass | #C699BB | — |
| meta.selector.css entity.name.tag, meta.selector.css entity.other.attribute-name.class, meta.selector.css entity.other.attribute-name.id | #EFAC32 | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #C699BB | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #6C99BB | — |
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}!`;
}