tangotango
Publisher: meatrobotThemes in package: 1
Port of Emacs tangotango theme
Port of Emacs tangotango theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #eeeeec | — |
| comment | #888a85 | — |
| string | #ad7fa8 | — |
| constant.numeric | #83e158 | — |
| constant.language | #83e158 | — |
| constant.character, constant.other | #83e158 | — |
| variable | #ffffff | — |
| keyword | #6fa0cb | — |
| storage | #ff5e5e | |
| storage.type | #6fa0cb | italic |
| entity.name.class | #83e158 | underline |
| entity.other.inherited-class | #83e158 | italic underline |
| entity.name.function | #eed247 | |
| variable.parameter | #fc9354 | italic |
| entity.name.tag | #ff5e5e | |
| entity.other.attribute-name | #97d8ea | |
| support.function | #6699cc | |
| support.constant | #83e158 | |
| support.type, support.class | #83e158 | — |
| support.other.variable | — | |
| support.other.namespace, entity.name.type.namespace | #FFB2F9 | — |
| support.other.namespace.use-as.php | #66D9EF | — |
| variable.language.namespace.php | #D66990 | — |
| punctuation.separator.inheritance.php | #F92672 | — |
| support.function.misc.css, support.constant.property-value.css, support.constant.font-name.css | #fdb082 | — |
| meta.tag.template.value.twig, meta.tag.template.block.twig | #CD5AC5 | — |
| keyword.control.twig | #E05D8C | — |
| variable.other.twig | #E5A5E0 | — |
| variable.other.property.twig | #FFE1FC | — |
| constant.language.twig | #FFD2A6 | — |
| constant.numeric.twig | #FFD0FB | — |
| support.function.twig | #90E7F7 | — |
| meta.function-call.other.twig | #FAB85A | — |
| meta.function-call.twig | #FAB85A | — |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #ffffff | — |
| variable.parameter.function | #d0d0d0 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #66a9ec | — |
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}!`;
}