Pittaya Theme
Publisher: pittaya-orgThemes in package: 2
A minimalist theme for VS Code inspired by the vibrant colors of dragon fruit (dark and light versions)
A minimalist theme for VS Code inspired by the vibrant colors of dragon fruit (dark and light versions)
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 | #909090 | italic |
| variable, string constant.other.placeholder | #2a2a2a | — |
| meta.block variable.other | #2a2a2a | — |
| variable.language | #d91656 | italic |
| constant, constant.numeric, constant.language, constant.character, constant.other | #c2255c | — |
| constant.other.color | #2a2a2a | — |
| invalid, invalid.illegal | #ff3333 | — |
| keyword, keyword.control, keyword.control.conditional, keyword.control.flow, keyword.control.return, keyword.control.loop, storage.type, storage.modifier | #d91656 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, punctuation.separator, punctuation.terminator | #4a4a4a | — |
| keyword.other.substitution, meta.brace.round, meta.brace.square, punctuation.definition.parameters, punctuation.definition.array | #4a4a4a | — |
| entity.name.function, meta.function-call, support.function, keyword.other.special-method | #2f9e44 | — |
| entity.name.class, entity.name.type.class, support.class, entity.other.inherited-class | #d91656 | — |
| support.type, entity.name.type, entity.name.type.interface, entity.name.type.alias | #2b8a3e | — |
| string, string.quoted, string.template, punctuation.definition.string | #d97900 | — |
| string.other.link | #4d9fff | — |
| string.regexp | #c2255c | — |
| constant.character.escape | #d91656 | — |
| entity.name.tag, punctuation.definition.tag | #d91656 | — |
| entity.other.attribute-name | #2b8a3e | italic |
| meta.decorator, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #d91656 | italic |
| markup.underline.link, meta.link | — | underline |
| markup.inserted | #2f9e44 | — |
| markup.deleted | #ff3333 | — |
| markup.changed | #ff9900 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #2f9e44 | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #d91656 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.less | #2b8a3e | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss, entity.other.attribute-name.id.less | #d97900 | — |
| entity.other.attribute-name.attribute.css, meta.attribute-selector.css | #d97900 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-element.scss | #ae3ec9 | — |
| support.constant.property-value.css, support.constant.property-value.scss, support.constant.property-value.less | #c2255c | — |
| keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.less, keyword.other.unit.percentage.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css | #c2255c | — |
| support.function.css, support.function.scss, support.function.less, support.function.calc.css, support.function.var.css | #2f9e44 | — |
| variable.css, variable.scss, variable.argument.css, variable.parameter.css | #4d9fff | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss, keyword.control.at-rule.less, keyword.control.at-rule.media.css, keyword.control.at-rule.keyframes.css, keyword.control.at-rule.import.css, keyword.control.at-rule.fontface.css, keyword.control.at-rule.font-face.css, keyword.control.at-rule.supports.css, keyword.control.at-rule.container.css, keyword.control.at-rule.charset.css, keyword.control.at-rule.namespace.css, keyword.control.at-rule.page.css, keyword.control.at-rule.layer.css | #d91656 | italic |
| keyword.other.important.css, keyword.other.important.scss | #d91656 | bold |
| keyword.operator.combinator.css | #4a4a4a | — |
| support.class.component.tsx, support.class.component.jsx, entity.name.tag.tsx, entity.name.tag.jsx | #d91656 | bold |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.interface.ts, entity.name.type.interface.tsx, support.type.primitive.ts, support.type.primitive.tsx, support.type.builtin.ts, support.type.builtin.tsx | #2b8a3e | — |
| entity.name.type.parameter.ts, entity.name.type.parameter.tsx | #2f9e44 | — |
| storage.type.ts, storage.type.tsx, keyword.control.as.ts, keyword.control.as.tsx | #d91656 | — |
| keyword.control.import.ts, keyword.control.import.tsx, keyword.control.export.ts, keyword.control.export.tsx, keyword.control.from.ts, keyword.control.from.tsx | #d91656 | italic |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #2b8a3e | italic |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #2f9e44 | — |
| punctuation.definition.tag.end.tsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.begin.jsx | #4a4a4a | — |
| string.template.ts, string.template.tsx, string.template.js, string.template.jsx | #d97900 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #2f9e44 | — |
| storage.type.function.arrow.ts, storage.type.function.arrow.tsx, storage.type.function.arrow.js, storage.type.function.arrow.jsx | #d91656 | — |
| meta.object-literal.key.ts, meta.object-literal.key.tsx, meta.object-literal.key.js, meta.object-literal.key.jsx | #2a2a2a | — |
| entity.name.method.js, entity.name.method.ts, meta.class-method.js entity.name.function.js, variable.function.constructor | #2f9e44 | italic |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #d91656 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #d91656 | italic |
| entity.name.function.python, meta.function.python entity.name.function, support.function.python | #2f9e44 | — |
| meta.function-call.python, meta.function-call.generic.python | #2f9e44 | — |
| support.function.magic.python, entity.name.function.magic.python | #ae3ec9 | italic |
| support.function.builtin.python, meta.function-call.python support.function.builtin | #2f9e44 | — |
| entity.name.type.class.python, meta.class.python entity.name.type.class | #d91656 | bold |
| entity.other.inherited-class.python | #2b8a3e | italic |
| keyword.control.python, keyword.control.flow.python, keyword.control.conditional.python, keyword.control.loop.python, keyword.control.exception.python | #d91656 | bold |
| keyword.control.import.python, keyword.control.import.from.python | #ae3ec9 | italic |
| storage.type.function.python, storage.modifier.declaration.python, storage.type.class.python | #d91656 | bold |
| keyword.operator.python, keyword.operator.logical.python, keyword.operator.comparison.python, keyword.operator.arithmetic.python, keyword.operator.assignment.python | #4a4a4a | — |
| keyword.operator.wordlike.python | #d91656 | italic |
| entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python | #ae3ec9 | italic |
| string.quoted.single.python, string.quoted.double.python | #d97900 | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.raw.python | #909090 | italic |
| meta.fstring.python, string.interpolated.python, string.quoted.single.python.fstring, string.quoted.double.python.fstring | #d97900 | — |
| meta.embedded.line.python, meta.fstring.python source.python.embedded, meta.interpolation.python | #2a2a2a | — |
| punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #d91656 | — |
| string.quoted.raw.python, storage.type.string.python | #d97900 | — |
| meta.function.parameters.python support.type.python, meta.function.return-type.python support.type.python, meta.type.annotation.python | #2b8a3e | — |
| support.type.python, support.type.metaclass.python | #2b8a3e | — |
| keyword.operator.type.python, punctuation.separator.annotation.python, punctuation.separator.parameters.python | #4a4a4a | — |
| variable.parameter.function.python, variable.parameter.function.language.python, meta.function.parameters.python variable.parameter | #c2255c | italic |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python, variable.language.special.cls.python | #d91656 | italic |
| variable.other.python, meta.indexed-name.python | #2a2a2a | — |
| constant.language.boolean.python | #c2255c | bold |
| constant.language.python | #c2255c | italic |
| constant.numeric.python, constant.numeric.integer.python, constant.numeric.float.python, constant.numeric.complex.python, constant.numeric.bin.python, constant.numeric.oct.python, constant.numeric.hex.python | #c2255c | — |
| constant.character.escape.python, constant.character.escape.newline.python | #ae3ec9 | — |
| meta.import.python entity.name.namespace, meta.import-from.python entity.name.namespace, meta.qualified-name.python | #2f9e44 | — |
| meta.import.python variable.other, meta.import-from.python variable.other, meta.import-name.python, meta.generic-name.python | #2b8a3e | — |
| meta.import.python meta.generic-name.python, meta.import-from.python meta.generic-name.python, variable.other.readwrite.alias.python | #2a2a2a | italic |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python | #4a4a4a | — |
| punctuation.separator.colon.python, punctuation.separator.element.python, punctuation.separator.arguments.python | #4a4a4a | — |
| keyword.declaration.function.lambda.python, storage.type.function.lambda.python | #d91656 | italic |
| keyword.control.flow.python.comprehension | #d91656 | italic |
| storage.type.format.python, constant.character.format.placeholder.other.python | #ae3ec9 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #2a2a2a | — |
| markup.heading, entity.name.section.markdown, markup.heading.markdown punctuation.definition.heading.markdown | #d91656 | — |
| markup.bold, markup.bold string | #d97900 | bold |
| markup.italic | #ae3ec9 | italic |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #d97900 | bold italic |
| markup.underline | #d97900 | underline |
| markup.strikethrough | #606060 | strikethrough |
| markup.quote punctuation.definition.blockquote.markdown | #909090 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #4d9fff | — |
| string.other.link.description.title.markdown | #4d9fff | — |
| constant.other.reference.link.markdown | #d97900 | — |
| text.html.markdown markup.inline.raw.markdown | #2f9e44 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #909090 | — |
| markup.fenced_code.block.markdown, punctuation.definition.markdown | #d97900 | — |
| fenced_code.block.language.markdown | #2f9e44 | — |
| meta.separator | #909090 | bold |
| source.json meta.structure.dictionary.json support.type.property-name.json | #d91656 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c2255c | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #606060 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d91656 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c2255c | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #606060 | — |
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}!`;
}