syme
Publisher: SyThemes in package: 1
Based on monokai and maia.
Based on monokai and maia.
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, string.comment | #676F7D | italic |
| string | #E5C07B | — |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js,punctuation.definition.template-expression.begin.ts,punctuation.definition.template-expression.end.ts | #C678DD | — |
| string.template.js | #E5C07B | — |
| meta.template.expression.js | #ABB2BF | — |
| constant.numeric | #C678DD | — |
| string.embedded.begin, string.embedded.end | #C678DD | — |
| string.embedded | #98C379 | — |
| constant.language | #56B6C2 | — |
| constant.character, constant.other | #56B6C2 | — |
| variable.language | #E06C75 | — |
| variable.readwrite, variable.readwrite.other.block | #61AFEF | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #E06C75 | — |
| keyword.operator | #E06C75 | — |
| storage | #E06C75 | — |
| storage.type | #56B6C2 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #61AFEF | — |
| variable.other.object | #61AFEF | — |
| variable.other.property, variable.other.block | #ABB2BF | — |
| entity.other.inherited-class | #98C379 | — |
| entity.name.function, support.function | #98C379 | — |
| variable.parameter | #D19A66 | italic |
| entity.name.function-call | #ABB2BF | — |
| function.support.builtin, function.support.core | #98C379 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #E06C75 | — |
| entity.name.tag.class, entity.name.tag.id | #56B6C2 | — |
| entity.other.attribute-name | #98C379 | — |
| support.constant | #56B6C2 | — |
| support.type, support.variable | #56B6C2 | — |
| support.dictionary.json | #56B6C2 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #ABB2BF | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98C379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56B6C2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #E5C07B | — |
| unit.css, unit.scss, unit.less, unit.sass | #C678DD | — |
| function.css, function.scss, function.less, function.sass | #56B6C2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56B6C2 | — |
| string.detected-link | #61AFEF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #C678DD | — |
| markup.inserted | #E5C07B | — |
| markup.changed | #E5C07B | — |
| constant.numeric.line-number.find-in-files - match | #56B6C2A0 | — |
| entity.name.filename.find-in-files | #E5C07B | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.raw.markdown, punctuation.definition.markdown, punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.heading.markdown, fenced_code.block.language.markdown | #696969 | |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #E06C75 | bold |
| markup.quote.markdown | #98C379 | — |
| meta.separator.markdown | #C678DD | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56B6C2 | — |
| punctuation.definition.list_item.markdown | #FFFFFF | bold |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment | #606090 | italic |
| constant, storage.modifier, keyword.control, keyword.operator.expression | #DD5599 | italic bold |
| keyword.control.match-definition | — | |
| storage.type | #77AA66 | — |
| storage.type.class, storage.type.function, storage.type.type, storage.type.interface | #77AA66 | italic bold |
| support.function.dom | #77AA66 | — |
| entity.name.function | #56B6C2 | — |
| variable.other.readwrite, variable.other.constant.property | #AAC7C4 | — |
| variable.other.object | #519FDF | — |
| variable.language.this | #AD83E9 | italic |
| punctuation.accessor.ts, punctuation.accessor.tsx, punctuation.separator.comma.tsx, variable.other.constant.ts, variable.other.constant.tsx, variable.other.constant.object.ts | #A5DEE4 | — |
| punctuation.definition.template-expression.begin.tsx | #C678DD | — |
| punctuation.definition.template-expression.end.tsx | #C678DD | — |
| meta.at-rule.keyframes.scss | #98C379 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #98C379 | bold |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #008787 | — |
| entity.name.section.markdown | #61AFEF | bold |
| markup.inline.raw.string.markdown | #E06C75 | — |
| keyword.other.fn.rust, storage.type.rust, keyword.other.rust | #77AA66 | italic bold |
| keyword.other.rust | #77AA66 | — |
| support.function.std.rust | #519FDF | — |
| storage.class.std.rust, storage.type.core.rust | #61AFEF | — |
| meta.function-call.generic.python | #56B6C2 | — |
| meta.attribute.rust | #56B6C2 | — |
| variable.language.special.self.python, variable.language.rust | #AD83E9 | italic |
| meta.member.access.python | #ABB2BF | |
| meta.function-call.arguments.python | #A5DEE4 | |
| keyword.operator.logical.python | — | bold italic |
| keyword.other.where.rust | — | bold italic |
| keyword.sonic-pi | #DD5599 | italic bold |
| support.function.sonic-pi | — | bold |
| variable.other.constant.sonic-pi | #56B6C2 | — |
| support.function.sonic-pi | #77AA66 | bold italic |
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}!`;
}