Purr Themes
Publisher: RyuuThemes in package: 2
A VSCode theme based on Purr.
A VSCode theme based on Purr.
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 | #767C9DC0 | |
| meta.parameters comment.block | #A6ACCD | |
| variable.other.constant.object, variable.other.readwrite.alias, meta.import variable.other.readwrite | #ADD7FF | — |
| variable.other, support.type.object | #E4F0FB | — |
| variable.other.object.property, variable.other.property, support.variable.property | #E4F0FB | — |
| entity.name.function.method, string.unquoted, meta.object.member | #ADD7FF | — |
| variable - meta.import, constant.other.placeholder, meta.object-literal.key-meta.object.member | #E4F0FB | — |
| keyword.control.flow | #5DE4C7C0 | — |
| keyword.operator.new, keyword.control.new | #5DE4C7 | — |
| variable.language.this, storage.modifier.async, storage.modifier, variable.language.super | #5DE4C7 | — |
| support.class.error, keyword.control.trycatch, keyword.operator.expression.delete, keyword.operator.expression.void, keyword.operator.void, keyword.operator.delete, constant.language.null, constant.language.boolean.false, constant.language.undefined | #D0679D | — |
| variable.parameter, variable.other.readwrite.js, meta.definition.variable variable.other.constant, meta.definition.variable variable.other.readwrite | #E4F0FB | — |
| constant.other.color | #FFFFFF | — |
| invalid, invalid.illegal | #D0679D | — |
| invalid.deprecated | #D0679D | — |
| keyword.control, keyword | #A6ACCD | — |
| keyword.operator, storage.type | #91B4D5 | — |
| keyword.control.module, keyword.control.import, keyword.control.export, keyword.control.default, meta.import, meta.export | #5DE4C7 | — |
| Keyword, Storage | — | |
| keyword-meta.export | #ADD7FF | — |
| meta.brace, punctuation, keyword.operator.existential | #A6ACCD | — |
| constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.objectliteral | #E4F0FB | — |
| support.class.component | #5DE4C7 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #5DE4C7 | — |
| variable.function, source meta.function-call entity.name.function, source meta.function-call entity.name.function, source meta.method-call entity.name.function, meta.class meta.group.braces.curly meta.function-call variable.function, meta.class meta.field.declaration meta.function-call entity.name.function, variable.function.constructor, meta.block meta.var.expr meta.function-call entity.name.function, support.function.console, meta.function-call support.function, meta.property.class variable.other.class, punctuation.definition.entity.css | #E4F0FBD0 | — |
| entity.name.function, meta.class entity.name.class, meta.class entity.name.type.class, meta.class meta.function-call variable.function, keyword.other.important | #ADD7FF | — |
| source.cpp meta.block variable.other | #ADD7FF | — |
| support.other.variable, string.other.link | #5DE4C7 | — |
| constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, string, constant.language, 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, text.html.derivative | #5DE4C7 | — |
| entity.other.inherited-class | #ADD7FF | — |
| meta.type.declaration | #ADD7FF | — |
| entity.name.type.alias | #A6ACCD | — |
| keyword.control.as, entity.name.type, support.type | #A6ACCDC0 | — |
| entity.name, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #91B4D5 | — |
| support.class, support.constant, variable.other.constant.object | #ADD7FF | — |
| 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 | #ADD7FF | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #E4F0FB | — |
| variable.language | #ADD7FF | |
| entity.name.method.js | #91B4D5 | |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #91B4D5 | — |
| entity.other.attribute-name | #91B4D5 | |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #5FB3A1 | |
| entity.other.attribute-name.class | #5FB3A1 | — |
| source.sass keyword.control | #42675A | — |
| markup.inserted | #ADD7FF | — |
| markup.deleted | #506477 | — |
| markup.changed | #91B4D5 | — |
| string.regexp | #5FB3A1 | — |
| constant.character.escape | #5FB3A1 | — |
| *url*, *link*, *uri* | #ADD7FF | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #42675A | |
| source.js constant.other.object.key.js string.unquoted.label.js | #5FB3A1 | |
| source.json meta.structure.dictionary.json support.type.property-name.json | #E4F0FB | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E4F0FB | — |
| text.html.markdown markup.inline.raw.markdown | #ADD7FF | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #E4F0FB | — |
| markup.italic | #7390AA | |
| markup.bold, markup.bold string | #7390AA | bold |
| 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 | #7390AA | bold |
| string.other.link.title.markdown | #ADD7FF | — |
| string.other.link.description.title.markdown | #ADD7FF | — |
| constant.other.reference.link.markdown | #ADD7FF | — |
| markup.raw.block | #ADD7FF | — |
| markup.raw.block.fenced.markdown | #50647750 | — |
| token.info-token | #89DDFF | — |
| token.warn-token | #FFFAC2 | — |
| token.error-token | #D0679D | — |
| token.debug-token | #E4F0FB | — |
| punctuation.definition.from-file.diff, meta.diff.header.from-file | #506477 | — |
| source.ignore, log.error, log.exception | #D0679D | — |
| log.verbose | #A6ACCD | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}