Sprinkles Theme
Publisher: Carlos CuestaThemes in package: 3
A sprinkled syntax theme with vibrant pops of colors 🍩
A sprinkled syntax theme with vibrant pops of 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 |
|---|---|---|
| comment, punctuation.definition.comment | #9ea8b4 | italic |
| variable, string constant.other.placeholder, meta.jsx.children, constant.other.color | #24292f | — |
| invalid, invalid.illegal | #DC3838 | — |
| storage.type, storage.modifier, variable.other.object.tsx | #107CC0 | — |
| storage.type.type.js | #DE2972 | — |
| punctuation, meta.type.annotation keyword.operator.type, meta.block punctuation.definition.tag, meta.tag punctuation.definition.tag | #69788C | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.string, punctuation.definition.typeparameters, keyword.operator.optional.js, keyword.operator.type.annotation.js, keyword.operator.assignment.js, keyword.operator.assignment.tsx, keyword.operator.optional.tsx, punctuation.definition.parameters, meta.brace.round, punctuation.accessor, punctuation.section.embedded, punctuation.separator, punctuation.definition.template-expression, meta.brace.square, punctuation.definition.binding-pattern.array.js | #009fb1 | — |
| entity.other.inherited-class, entity.name.type.class, entity.name.type.module, entity.name.function, meta.function-call entity.name.function | #a66c00 | — |
| keyword.control, constant.other.color, meta.tag, keyword.other.template, keyword.other.substitution, keyword.operator | #DE2972 | — |
| keyword.operator.expression.typeof, keyword.operator.new | #009fb1 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, source.yaml constant.language | #DC3838 | — |
| meta.class entity.name.function, meta.type.declaration entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, variable.other.object.js | #107CC0 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #DE2972 | — |
| variable.parameter, meta.parameters variable.object.property | #DC3838 | italic |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, meta.object-literal.key | #8c9c00 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, storage.type.function.arrow | #DC3838 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #D73B5B | — |
| variable.language | #D73B5B | italic |
| entity.other.attribute-name | #a66c00 | italic |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #a66c00 | italic |
| 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, meta.property-name.css, source.postcss support.type.property-name | #a66c00 | — |
| source.css punctuation.definition.keyword | #DE2972 | — |
| source.css keyword.other.unit, support.constant.property-value, support.constant.vendored, source.css keyword.operator | #009fb1 | — |
| source.css entity.other.attribute-name.pseudo-class | #637C74 | |
| source.css entity.other.attribute-name.class | #107CC0 | |
| source.css variable | #107CC0 | — |
| source.css constant.numeric, source.css support.constant | #DC3838 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #D73B5B | — |
| markup.changed | #9B59C9 | — |
| string.regexp | #009fb1 | — |
| constant.character.escape | #009fb1 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #107CC0 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #DC3838 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #DC3838 | — |
| source.json punctuation.support.type.property-name | #009fb1 | — |
| source.json punctuation.separator | #69788C | — |
| source.json constant.language, source.json constant.numeric | #a66c00 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #24292f | — |
| entity.name.section.markdown, markup.inline.raw.string.markdown | #8c9c00 | — |
| punctuation.definition.heading.markdown | #DC3838 | — |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.raw.markdown, punctuation.definition.metadata.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown | #009fb1 | — |
| markup.italic | #DE2972 | italic |
| markup.bold, markup.bold string | #107CC0 | bold |
| markup.underline | #DC3838 | underline |
| markup.quote | — | italic |
| string.other.link.title.markdown | #a66c00 | — |
| constant.other.reference.link.markdown | #a66c00 | — |
| keyword.type.graphql | #a66c00 | — |
| variable.graphql | #8c9c00 | — |
| keyword.operator.nulltype.graphql | #009fb1 | — |
| keyword.enum.graphql, keyword.operation.graphql, keyword.fragment.graphql | #DE2972 | — |
| constant.character.enum.graphql | #24292f | — |
| entity.name.function.graphql | #107CC0 | — |
| punctuation.definition.variable.shell, punctuation.section.array.shell, punctuation.definition.logical-expression.shell | #009fb1 | — |
| variable.other.special.shell | #DC3838 | — |
| string.interpolated.dollar.shell | #24292f | — |
| meta.scope.for-in-loop.shell | #DC3838 | — |
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}!`;
}