Coda+ Theme
Publisher: Will RoscoeThemes in package: 1
A darkmode theme with highly configured theming of python.
A darkmode theme with highly configured theming of python.
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 |
|---|---|---|
| source.python | #989898 | — |
| keyword.control.conditional.python, keyword.control.repeat.python | #fad749 | italic |
| keyword.control.exception.python | #ffd000 | italic |
| keyword.operator.logical.python | #ffffff | — |
| keyword.control.import.python, keyword.control.context.python | #71c4c0 | italic |
| , keyword.operator.unpacking.parameter.python | #fff200 | — |
| keyword.control.flowcont.python | #ff0000 | — |
| keyword.other.python | #ff0000 | — |
| keyword.control.secondary.python | #a4a4a4 | italic |
| constant.language.false.python | #ff6e6e | italic bold |
| constant.language.true.python | #8cde82 | italic bold |
| constant.language.none.python | #4b4b4b | italic bold |
| support.type.exception.python | #ff3300 | italic bold |
| storage.modifier.python | #00ffea | italic bold |
| constant.other.caps.python | #ffffff | italic bold |
| variable.parameter.function.language.python variable.parameter.function.language.special.cls.python, variable.parameter.function.language.python variable.parameter.function.language.special.self.python, support.function.magic.python, support.variable.magic.python, variable.language.special.cls.python, variable.language.special.self.python | #58bcff | italic bold |
| meta.attribute.python | #f5f5f5 | — |
| storage.type.function.python, punctuation.section.function.begin.python, storage.type.class.python, punctuation.section.class.begin.python, keyword.control.out.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.separator.parameters.python | #ff7214 | italic |
| meta.function.python entity.name.function.python, entity.name.type.class.python | #ffffff | — |
| punctuation.separator.annotation.python, punctuation.separator.annotation.result.python | #89ff76 | — |
| meta.function-call.python | #dcdcdc | — |
| support.function.builtin.python | #eeca94 | — |
| keyword.operator.arithmetic.python | #00c8ff | — |
| keyword.operator.comparison.python | #e9e9e9 | — |
| keyword.operator.assignment.python | #ffffff | — |
| string.quoted.docstring.multi.python | #d1d1d1 | — |
| comment.line.number-sign.python | #24a936 | — |
| keyword.codetag.notation.python | #ffe600 | — |
| punctuation.definition.comment.python | #225500 | — |
| punctuation.definition.docstring.begin.python, punctuation.definition.docstring.end.python | #444444 | — |
| string.quoted.single.python, string.quoted.multi.python, support.type.str.python, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #3e9a58 | — |
| support.type.num.python, constant.numeric.float.python, constant.numeric.hex.python, constant.numeric.oct.python | #aee0ff | — |
| support.type.list.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python | #49a6a0 | — |
| support.type.dict.python, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python, punctuation.separator.dict.python | #b383f2 | — |
| support.type.tup.python, punctuation.parenthesis.end.python, punctuation.parenthesis.begin.python | #fff712 | — |
| support.type.bytes.python, support.type.obj.python | #ffffff | — |
| support.type.alt.python, constant.numeric.dec.python, constant.numeric.python, constant.numeric.bin.python | #cccccc | — |
| constant.character.format.placeholder.other.python, meta.fstring.python,meta.format.brace.python, string.interpolated.python | #ffffff | — |
| meta.function.python meta.function.parameters.python variable.parameter.function.language.python, variable.parameter.function-call.python | #bcdcf5 | — |
| text.html.markdown | #818181 | — |
| punctuation.definition.heading.markdown, markup.heading.markdown | #ffffff | — |
| heading.3.markdown, heading.2.markdown, heading.1.markdown | — | bold underline |
| markup.bold.markdown | — | bold |
| markup.strikethrough.markdown | — | strikethrough |
| markup.italic.markdown | — | italic |
| meta.separator.markdown | #5c5c5c | — |
| markup.quote.markdown | #969696 | — |
| punctuation.definition.quote.begin.markdown | #fcbb07fc | — |
| markup.list.unnumbered.markdown punctuation.definition.list.begin.markdown | #ffbf00 | — |
| markup.list.unnumbered.markdown markup.list.unnumbered.markdown punctuation.definition.list.begin.markdown | #00aeff | — |
| markup.list.numbered.markdown punctuation.definition.list.begin.markdown | #ffbf00 | — |
| fenced_code.block.language.markdown | #ffae00 | — |
| markup.raw.block.markdown, markup.fenced_code.block.markdown punctuation.definition.markdown, markup.inline.raw.string.markdown | #464646 | — |
| punctuation.separator.table.markdown | #323232 | — |
| punctuation.definition.table.markdown | #323232 | — |
| meta.link.inline.markdown | #8f48da | — |
| string.other.link.title.markdown | #ce9bfd | — |
| meta.image.inline.markdown | #502473 | — |
| string.other.link.description.markdown | #ce9bfd | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #1010f9 | — |
| comment | #a48a52 | — |
| constant.language | #45ae37 | bold underline |
| constant.numeric | #ffffff | — |
| constant.regexp | #bfbfbf | — |
| constant.other.color.rgb-value.css, constant.numeric.color.rgb-value.scss, constant.other.rgb-value.css | #ff0000 | — |
| entity.name.tag, entity.name.tag.css | #ffae00 | italic |
| meta.preprocessor.string | #ff4800 | — |
| meta.preprocessor.numeric | #ff0000 | — |
| meta.structure.dictionary.key.python | #814747 | — |
| meta.diff.header | #ff0000 | — |
| storage | #ff0000 | — |
| storage.type | #ffaa00 | — |
| storage.modifier | #ff0000 | — |
| string | #6ecff5 | — |
| string.tag | #ff0000 | — |
| string.value | #c92b2b | — |
| string.regexp | #d4d4d4 | — |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #ff1313 | — |
| support.type.property-name | #20c4ff | italic |
| keyword | #ff0000 | — |
| keyword.control | #d6c8c4 | — |
| keyword.operator | #ffffff | — |
| keyword.operator.new, keyword.operator.expression | #ff0000 | — |
| keyword.other.unit | #ababab | — |
| punctuation.section.embedded.metatag.begin.php, punctuation.section.embedded.metatag.end.php | #fc0000 | — |
| support.function.git-rebase | #a4a4a4 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #008cff | — |
| entity.name.function, support.function | #49c8ff | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #008f1d | — |
| meta.return.type, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json | #e3aa00 | — |
| keyword.control | #ff5aff | italic |
| variable, meta.definition.variable.name, support.variable | #aeaeae | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #00a6ff | — |
| constant.other.color.rgb-value.css, constant.other.rgb-value.css, meta.property-value.css support.function, meta.property-value.css support, constant.numeric.color.rgb-value.scss, constant.rgb-value.scss, meta.property-value.scss support.function, meta.property-value.scss support | #23b73c | — |
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}!`;
}