MultiTheme
Publisher: Arturo ArevaloThemes in package: 336
A collection of themes ported from TextMate
A collection of themes ported from TextMate
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #5B5A4E | — |
| Dave Luke | — | — |
| comment | #ACAB94 | italic |
| string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #0094A3 | |
| string | #DB4487 | |
| constant.numeric, constant.language, constant.character | #7C00FF | |
| constant.other | #7FB443 | |
| keyword | # | |
| support | #0094A3 | |
| storage | #CD65BA | |
| entity.name.class, entity.name.type.class, entity.name.type.module | #6089B4 | bold |
| entity.other.inherited-class | #0094A3 | bold |
| entity.name.function, support.function | #82BA38 | |
| variable.parameter | #F7AC20 | |
| Operation Sign | #FF3361 | |
| variable.other, variable.js, punctuation.separator.variable | #6089B4 | Bold |
| invalid | #FF0B00 | |
| meta.function-call | #0094A3 | |
| keyword.control | #417DD1 | |
| meta.tag | #646256 | |
| entity.name.tag | #417DD1 | |
| meta.doctype, meta.tag.sgml-declaration.doctype, meta.tag.sgml.doctype | #E872D3 | |
| meta.tag.inline source, text.html.php.source | #CD65BA | |
| meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html | #D0B344 | |
| entity.other.attribute-name, meta.tag punctuation.definition.string | #82BA38 | |
| meta.tag string -source -punctuation, text source text meta.tag string -punctuation | # | |
| punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html | #D0B344 | |
| meta.toc-list.id | #DB4487 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #417DD1 | |
| meta.selector.css entity.other.attribute-name.id | #9872A2 | |
| support.type.property-name.css | #676867 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #FF0156 | |
| variable.language.js | #CC555A | — |
| meta.function-call.object.php | #D0B344 | |
| punctuation.definition.string.end.php, punctuation.definition.string.begin.php | #9aa83a | — |
| source.php.embedded.line.html | #676867 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #cb602d | |
| constant.other.symbol.ruby | #9aa83a | |
| variable.language.ruby | #D0B344 | |
| keyword.other.special-method.ruby | #D9B700 | |
| source.ruby.embedded.source | #cb602d | — |
| keyword.other.DML.sql | #e8bc7b |
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}!`;
}