Sylvan Color Theme
Publisher: Panchao WangThemes in package: 1
A color theme for those who are tired of dull colors.
A color theme for those who are tired of dull colors.
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| comment, punctuation.definition.comment | #7d92b4 | — |
| constant | #dab0fc | — |
| constant.character | #dab0fc | — |
| constant.numeric | #f6b468 | — |
| constant.character.escape | #f69ac5 | — |
| constant.language | #dab0fc | — |
| entity.name | #59c6ff | — |
| entity.other.inherited-class | #47d5ce | — |
| entity.name.function, meta.method.groovy, support.function.go, support.function.misc.scss, support.function.any-method.lua | #f5dc77 | — |
| entity.name.class, entity.name.type.class | #59c6ff | italic |
| entity.name.namespace, entity.name.type.namespace, entity.name.type.module | #f5dc77 | — |
| entity.name.type.parameter | #47d5ce | — |
| entity.name.tag | #fd876f | — |
| entity.other.attribute-name | #f5dc77 | — |
| entity.name.section | #fd876f | — |
| string, punctuation.definition.string | #6fe99b | — |
| keyword, punctuation.definition.keyword | #fd876f | — |
| variable.other | #f9efe4 | — |
| punctuation.definition.variable | #fd876f | — |
| entity.name.variable.parameter, variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.parameters variable.other.php, meta.function.parameters punctuation.definition.variable.php | #59c6ff | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.underline.link | #f5dc77 | — |
| markup.heading, punctuation.definition.heading | #fd876f | bold |
| markup.list punctuation.definition.list.begin | #47d5ce | — |
| markup.quote, punctuation.definition.quote.begin | #59c6ff | — |
| markup.inline.raw, punctuation.definition.raw, markup.fenced_code.block punctuation.definition.markdown | #f6b468 | — |
| punctuation.definition.math | #6fe99b | — |
| meta.embedded.math.markdown punctuation.definition.function | #f5dc77 | — |
| meta.embedded.math.markdown punctuation.math.operator | #fd876f | — |
| text.tex.latex punctuation.math | #f9efe4 | — |
| text.tex.latex punctuation.math.operator | #fd876f | — |
| markup.inserted, punctuation.definition.inserted | #6fe99b | — |
| markup.deleted, punctuation.definition.deleted | #fd876f | — |
| markup.changed, punctuation.definition.changed | #f6b468 | — |
| storage.type | #fd876f | — |
| storage.modifier | #fd876f | — |
| entity.name.package.go, entity.name.import.go, storage.modifier.import.java, storage.modifier.package.java, storage.modifier.import.groovy, storage.modifier.package.groovy | #f5dc77 | — |
| support | #59c6ff | — |
| support.function | #f5dc77 | — |
| support.type | #47d5ce | — |
| support.constant | #dab0fc | — |
| support.variable | #f9efe4 | — |
| invalid.illegal | — | italic underline |
| invalid.deprecated | — | italic underline |
| punctuation.section.embedded | #fd876f | — |
| punctuation.definition.decorator, punctuation.decorator | #fd876f | — |
| constant.other.placeholder, constant.character.format.placeholder | #f69ac5 | — |
| entity.name.constant, variable.other.constant | #dab0fc | — |
| keyword.control.new, keyword.operator.new, keyword.other.new, keyword.symbol.new | — | bold |
| variable.language, variable.language punctuation.definition.variable, variable.other.readwrite.instance.ruby, variable.other.readwrite.instance.ruby punctuation.definition.variable, keyword.other.this, keyword.other.new | #f69ac5 | — |
| variable.parameter.function.language.special | #f69ac5 | bold |
| variable.other.enummember | #dab0fc | — |
| storage.type.annotation, punctuation.definition.annotation | #47d5ce | — |
| comment.block.documentation storage.type.class | #fd876f | — |
| comment.block.documentation entity.name.type, comment.block.documentation entity.name.type punctuation.definition.bracket | #47d5ce | italic |
| comment.block.documentation variable.other | #59c6ff | — |
| entity.name.tag support.class.component | #fd876f | — |
| meta.template.expression meta.embedded.line | #f9efe4 | — |
| meta.template.expression punctuation.definition.template-expression | #f69ac5 | — |
| string.regexp, string.regexp punctuation.definition.string, constant.other.character-class.regexp, constant.character.escape.backslash.regexp | #59c6ff | — |
| keyword.operator.quantifier | #f5dc77 | — |
| punctuation.definition.group.assertion | #fd876f | — |
| keyword.control.anchor.regexp | #fd876f | — |
| keyword.other.back-reference.regexp | #dab0fc | — |
| support.type.property-name, punctuation.support.type.property-name | #f5dc77 | — |
| variable.prop.css, punctuation.definition.variable.property.css | #59c6ff | — |
| keyword.operator.combinator.css | #59c6ff | — |
| meta.property-name support.type.property-name.css, meta.property-list entity.name.tag | #47d5ce | — |
| variable.scss | #59c6ff | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #f69ac5 | — |
| variable.interpolation.scss | #f9efe4 | — |
| entity.other.attribute-name.parent-selector | #fd876f | — |
| comment keyword.codetag.notation | #47d5ce | — |
| support.function.magic | #f69ac5 | — |
| entity.name.type.primitive.rust, entity.name.type.numeric.rust | #47d5ce | — |
| entity.name.function.macro.rules.rust | #fd876f | — |
| punctuation.definition.attribute.rust, punctuation.brackets.attribute.rust | #47d5ce | — |
| meta.interpolation, punctuation.definition.interpolation.rust | #f69ac5 | — |
| punctuation.separator.pointer-access | #fd876f | — |
| storage.type.built-in.primitive | #fd876f | — |
| storage.type.primitive.java | #fd876f | — |
| meta.separator.markdown | #7d92b4 | — |
| string.other.link.title, string.other.link.description | #6fe99b | — |
| constant.other.reference.link | #dab0fc | — |
| meta.diff.header | #7d92b4 | — |
| source.diff meta.diff.header.from-file, punctuation.definition.from-file | #fd876f | — |
| source.diff meta.diff.header.to-file, punctuation.definition.to-file | #6fe99b | — |
| meta.diff.range, punctuation.definition.range | #dab0fc | — |
| meta.separator.diff | #7d92b4 | — |
| keyword.other.definition.ini | #f5dc77 | — |
| keyword.other.doctype.xml, keyword.other.entity.xml | #fd876f | — |
| variable.language.documentroot.xml, variable.language.entity.xml | #f5dc77 | — |
| variable.other.alias.yaml | #f5dc77 | italic underline |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #f69ac5 | — |
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}!`;
}