Mariana by Ryan
Publisher: Ryan OlsonThemes in package: 7
Port of the default Sublime Text 4 theme
Port of the default Sublime Text 4 theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #AAAAAA | — |
| comment.keyword, keyword.codetag, keyword.phpdoc | #AAAAAA | bold |
| invalid.deprecated | — | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #777777 | — |
| keyword, keyword.operator.expression, keyword.control.at-rule.css, source.php storage.modifier, source.php storage.type | #4B83CD | — |
| punctuation.definition.keyword, keyword.control.at-rule.css punctuation | #91B3E0 | — |
| keyword.operator.new | #7A3E9D | — |
| storage, storage.type, storage.modifier, support.type | #7A3E9D | — |
| constant.language, support.constant, variable.language, variable.language.this | #AB6526 | — |
| variable, support.variable | #7A3E9D | — |
| punctuation.definition.variable | #B19BBD | — |
| entity.name.function, entity.name.class, entity.method.name, support.function, meta.function-call | #AA3731 | — |
| entity.name.function, entity.name.class, entity.method.name | — | bold |
| meta.function-call.arguments | #333333 | — |
| entity.name.type, entity.other.inherited-class, support.class | #AA3731 | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #AB6526 | — |
| string, string.quoted, punctuation.definition.string, string.regexp, storage.type.string | #448C27 | — |
| constant.character.escape | #AB6526 | — |
| string.regex | #333333 | — |
| string.regexp keyword, string.regexp keyword.operator, string.regexp constant, string.regexp constant.character, string.regexp punctuation | #7A3E9D | — |
| constant.other.symbol | #AB6526 | — |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #AB6526 | — |
| punctuation, punctuation.separator | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html, meta.tag.preprocessor, meta.tag.preprocessor entity.name.tag, meta.tag.preprocessor entity.other.attribute-name | #AAAAAA | — |
| meta.tag, entity.attribute-name, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.other.attribute-name.html, punctuation.separator.key-value.html | #91B3E0 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag string.quoted, meta.tag punctuation.definition.string | #448C27 | — |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, selector.css, entity.name.selector, entity.other.attribute-name.id.css, source.css entity.name.tag, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.parent-selector, entity.other.attribute-name.pseudo-element, punctuation.definition.entity.css, entity.id.scss, entity.tag.scss, entity.class.scss, entity.pseudo-class.scss, entity.parent-selector.scss, entity.pseudo-element.scss, punctuation.separator.list.css, meta.property-list keyword.operator.less, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss, entity.name.function.scss | #7A3E9D | — |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value, source.css keyword.other, source.css constant, source.css constant.numeric, source.css constant.numeric punctuation, meta.property-value support.constant | #448C27 | — |
| source.css variable, source.css.less variable, source.css.scss variable | #AA3731 | — |
| keyword.other.important | — | bold |
| variable.js, source.js variable, source.js support.variable, source.js support.type | #333333 | — |
| entity.name.function.js | — | |
| source.embedded | — | — |
| punctuation.support.type.property-name | #AB6526 | — |
| source.php | — | — |
| punctuation.section.embedded.metatag.php | #AA3731 | bold |
| entity.name.function.decorator, meta.function.decorator punctuation.definition, meta.function.decorator string.quoted, meta.function.decorator punctuation.definition.string, meta.function.decorator meta.function-call.arguments, meta.function.decorator variable.parameter, meta.function.decorator keyword.operator | #AAAAAA | — |
| source.python variable.parameter | #333333 | — |
| source.python support.type | #333333 | — |
| source.python meta.function-call support.type | #AA3731 | — |
| markup.changed | — | — |
| markup.deleted | — | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | — | — |
| meta.link, meta.image.inline | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #333333 | bold |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.inline.raw | #777777 | — |
| markdown.punctuation, markdown.link punctuation, punctuation.definition.raw.markdown, punctuation.definition.heading.markdown, beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.metadata.markdown | #448C27 | — |
| string.other.link.description.markdown, string.other.link.title.markdown | #7A3E9D | — |
| meta.diff.range, meta.diff.index, meta.separator | — | — |
| meta.diff.header.from-file | — | — |
| meta.diff.header.to-file | — | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}