Theodora
Publisher: ckpedersenThemes in package: 5
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 |
|---|---|---|
| — | #f9f9f9 | — |
| source.ruby, text.html.erb, source.json.comments, source.css, source.js | #5d5d97 | — |
| comment | #5d5d97 | italic |
| storage | #b197fc | |
| invalid.deprecated | #dbb7b0 | italic underline |
| invalid.illegal | #F8F8F8 | — |
| ----------------------------------- | — | — |
| text source | — | — |
| text.html.ruby source | — | — |
| entity.other.inherited-class | #e599f7 | italic |
| string source | #e4efb9 | |
| string constant | #e7f1ba | — |
| string.regexp | #E9C062 | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #CF7D34 | — |
| support.constant | #da7f5e | |
| meta.preprocessor.c, support.class.ruby | #e599f7 | — |
| meta.preprocessor.c keyword | #c0cfe0 | — |
| 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 | #494949 | — |
| declaration.tag, declaration.tag entity, meta.tag entity | #e599f7 | — |
| declaration.tag.inline, declaration.tag.inline entity, source entity.name.tag, source entity.other.attribute-name, meta.tag.inline, meta.tag.inline entity | #f783ac | — |
| meta.selector.css entity.name.tag | #d7b67c | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #a0ab7d | — |
| meta.selector.css entity.other.attribute-name.id | #8B98AB | — |
| meta.selector.css entity.other.attribute-name.class | #ac8350 | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #faf0a8 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #8693A5 | — |
| meta.constructor.argument.css | #a0ab7d | — |
| meta.diff, meta.diff.header, meta.separator | #F8F8F8 | italic |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.list | #faf0a8 | — |
| markup.heading | #da7f5e | — |
| markup.deleted.git_gutter | #da7f5e | — |
| markup.inserted.git_gutter | #a0ab7d | — |
| markup.changed.git_gutter | #889ab5 | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
| deco.folding | #6d7d78 | — |
| comment | #5d5d97 | italic |
| constant | #ffa94d | — |
| entity | #b197fc | |
| keyword | #b197fc | |
| string | #ffe066 | |
| support | #ac98ad | |
| variable | #e599f7 | — |
| invalid.deprecated | #dbb7b0 | italic underline |
| source invalid.deprecated | — | italic underline |
| invalid.illegal | #f9f9f9 | — |
| ----------------------------------- | — | — |
| meta.embedded.block, punctuation.whitespace.embedded | — | — |
| meta.embedded.line | — | — |
| entity.other.inherited-class | #b197fc | italic |
| string meta.embedded | #e4efb9 | |
| string constant | #e7f1ba | — |
| string.regexp | #E9C062 | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #CF7D34 | — |
| string variable | #ffffff | — |
| support.function | #74c0fc | |
| support.constant | #da7f5e | |
| meta.preprocessor.c, source.swift meta.preprocessor | #9da7b6 | — |
| meta.preprocessor.c keyword, source.swift meta.preprocessor keyword | #c0cfe0 | — |
| meta.tag.metadata.doctype, meta.tag.metadata.doctype entity, meta.tag.metadata.doctype string, meta.tag.metadata.processing.xml, meta.tag.metadata.processing.xml entity, meta.tag.metadata.processing.xml string | #494949 | — |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #ffffff | — |
| declaration.tag.inline, declaration.tag.inline entity, meta.tag.inline, meta.tag.inline entity | #fff | — |
| meta.selector.css entity.name.tag | #d7b67c | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #a0ab7d | — |
| meta.selector.css entity.other.attribute-name.id | #8B98AB | — |
| meta.selector.css entity.other.attribute-name.class | #ac8350 | — |
| support.type.property-name.css | #ffffff | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #faf0a8 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #8693A5 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #ffa94d | — |
| meta.constructor.argument.css | #a0ab7d | — |
| meta.diff, meta.diff.header, meta.separator, meta.diff.range, meta.diff.index | #F8F8F8 | italic |
| markup.deleted | #F8F8F8 | — |
| markup.changed | #F8F8F8 | — |
| markup.inserted | #F8F8F8 | — |
| markup.list | #faf0a8 | — |
| markup.heading | #da7f5e | — |
| markup.raw.block | — | — |
| meta.test1 | — | — |
| meta.test2 | — | — |
| meta.test3 | — | — |
| meta.test4 | — | — |
| source.ruby | #74c0fc | bold |
| variable.other.readwrite.instance.ruby, constant.other.symbol.hashkey.ruby | #f783ac | — |
| source.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #5d5d97 | |
| support.type.property-name.json.comments, support | #b197fc | — |
| entity | #e599f7 | — |
| variable.other.property.js | #f783ac | — |
| variable.language.this.js | #fff | — |
| meta.object-literal.key.js | #f783ac | — |
| variable.language.super.js | #8ce99a | — |
| entity.name.function.js | #74c0fc | — |
| support.class.component.js, meta.tag | #e599f7 | — |
| source entity.other.attribute-name | #ffa94d | — |
| meta.embedded.expression.js | #66d9e8 | — |
| meta.embedded.expression.js variable | #ffffff | — |
| source entity.name.tag | # | — |
| entity.name.function.tagged-template.js | #74c0fc | — |
| entity.other.inherited-class.ruby | #ffe066 | — |
| keyword.operator.other.ruby | #fff | — |
| entity.name.function.ruby | #74c0fc | — |
| constant.other.symbol.ruby | #8ce99a | — |
| keyword.other.special-method.ruby | #74c0fc | — |
| text.html.erb, punctuation.section.embedded.end.erb source.ruby, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, punctuation.separator.method.ruby | #fff | — |
| entity.other.attribute-name.html | #ffa94d | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, text.html.erb meta.tag entity | #e599f7 | — |
| punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, punctuation.section.embedded.end.erb source.ruby, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #5d5d97 | — |
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}!`;
}