Publu Theme
Publisher: julbauThemes in package: 1
Simple light theme. Colors: Blue, Green, Purple, Grey
Simple light theme. Colors: Blue, Green, Purple, Grey
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 | #AAAAAA | — |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator, meta.brace.square.js, meta.brace.round.js, meta.brace.terminator.js, meta.brace.terminator.ts, punctuation.terminator.statement.cs, meta.brace.round.tsx, meta.brace.round.ts, meta.brace.square.ts | #6e6e6e | — |
| keyword, storage, entity.name.section.markdown | #4a77b3 | — |
| storage.type, support.type, support.type.property-name.json | #4a77b3 | — |
| constant.language, support.constant, variable.language, constant.other.caps.python | #6e6e6e | — |
| variable, support.variable, source.python, meta.function-call.arguments.python, entity.name.variable.parameter.cs, entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.property.cs, text.aspnetcorerazor, variable.other.php, support.other.namespace.php, text.html.php, text.html.derivative, source.ini, text.html.vue-html, meta.object-literal.key.ts, meta.object-literal.key.js, meta.embedded.block.shellscript, meta.paragraph.markdown, fenced_code.block.language.markdown, fenced_code.block.language.attributes.markdown | #6e6e6e | — |
| entity.name.function, entity.name.function.js, support.function, meta.function-call.generic.python, meta.function-call.python, meta.function-call.js, markup.underline.link.markdown, entity.name.function.tsx | #9e71b8 | — |
| entity.name.type, entity.other.inherited-class, support.class, support.type.python, entity.name.function.decorator.python, storage.type.cs, keyword.blade | #548f1d | — |
| entity.name.exception | #6e6e6e | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #b14840 | — |
| string | #06a07e | — |
| constant.character.escape | #6e6e6e | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol, constant.language.boolean.false.js, constant.language.boolean.true.js, constant.language.env, constant.language.json, constant.language.python | #AB6526 | — |
| punctuation, punctuation.definition.string.begin.cs, punctuation.squarebracket.close.cs | #6e6e6e | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #6e6e6e | — |
| entity.name.tag | #4B83CD | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #9e71b8 | — |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #9e71b8 | — |
| meta.property-name, support.type.property-name | #06a07e | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| meta.class | #FF0000 | — |
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}!`;
}