Topl Theme
Publisher: SlepeThemes in package: 2
Two elegant themes
Two elegant themes
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 |
|---|---|---|
| Global settings | #CFDEE6 | — |
| string, string.quoted, support.type.property-name.json, source.elixir punctuation.definition.string, entity.other.inherited-class, source.elixir punctuation.definition.string | #FF1654 | — |
| string.unquoted, meta.brace, object, punctuation.definition.string, punctuation.definition.parameters, punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array, punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list, variable.parameter.function.coffee, variable.other.readwrite.cs, entity.name.type.namespace.cs, source.js source.css meta.property-list, source.js source.css punctuation.section, source.js source.css punctuation.terminator.rule, source.js source.css punctuation.definition.entity.end.bracket, source.js source.css punctuation.definition.entity.begin.bracket, source.js source.css punctuation.separator.key-value, source.js source.css punctuation.definition.attribute-selector, source.js source.css meta.property-list, source.js source.css meta.property-list punctuation.separator.comma, source.ts source.css punctuation.section, source.ts source.css punctuation.terminator.rule, source.ts source.css punctuation.definition.entity.end.bracket, source.ts source.css punctuation.definition.entity.begin.bracket, source.ts source.css punctuation.separator.key-value, source.ts source.css punctuation.definition.attribute-selector, source.ts source.css meta.property-list, source.ts source.css meta.property-list punctuation.separator.comma, source.go meta.function-call.go, variable.qraphql, terminator.js, meta.js punctuation.definition.js, variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other, variable.other.readwrite.js, meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx, variable.other.object.js, variable.other.object.jsx, meta.object-literal.key.js, meta.object-literal.key.jsx, variable.object.property.js, variable.object.property.jsx, variable.js, variable.other.js, support.class.js, variable.other.ruby, string.other.link.title.markdown, string.other.link.description.markdown, variable.other.php, meta.function-call.php punctuation, meta.function-call.python, meta.function-call.generic.python, punctuation.python, variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass, source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts, meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block, variable.parameter.handlebars | #CFDEE6 | — |
| support.constant.math, entity.other.attribute-name.handlebars variable.parameter.handlebars, entity.name.function.decorator.python, variable.other.global.php punctuation.definition.variable, variable.other.global.php, support.class.php, markup.bold.markdown, support.constant.json, entity.name.type.js, entity.name.type.module.js, entity.other.attribute-name.id.html, meta.class entity.name.type.class.js, entity.other.attribute-name.id.html, source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir, source.elixir entity.name.function, bold, support.variable.dom, support.type, support.class, entity.name.tag.custom, entity.other.attribute-name, entity.name.class, meta.class entity.name.type.class, variable, constant.other.color, keyword.other.unit, entity.other.attribute-name.id, keyword.other.unit.css, constant.length.units.css, keyword.other.unit.less, constant.length.units.less, keyword.other.unit.scss, constant.length.units.scss, keyword.other.unit.sass, constant.length.units.sass, constant.numeric, constant.character.numeric, constant.character.escape, constant.other.color.rgb-value punctuation.definition.constant, meta.attribute-selector.css entity.other.attribute-name.attribute, meta.attribute-selector.less entity.other.attribute-name.attribute, meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute, punctuation.definition.string, string.template punctuation.definition.string | #FF1654 | — |
| constant.language, punctuation.definition.constant, variable.other.constant, constant.character, constant.other, entity.name.function, support.function, support.constant, entity.name.function, variable.function, meta.function-call, entity.name.type.class.cs, storage.type.cs, source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir, source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir, meta.method.declaration storage.type.js, source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable, support.class.node.ts, support.class.node.tsx, meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx, meta.tag.js meta.jsx.children.tsx, source.python variable.language.special, entity.other.attribute-value.handlebars variable.parameter.handlebars, variable.parameter.function.python, meta.function-call.arguments.python, variable.parameter.function.js, variable.parameter, beginning.punctuation.definition.list.markdown, punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string, markup.heading.markdown | #B2DBBF | — |
| string.regexp, string.regexp keyword.other, support.type.vendored.property-name, support.constant.vendored.property-value, support.type.property-name, meta.property-list entity.name.tag, meta.property-name, raw, meta.structure.dictionary.value.json string.quoted.double, string.quoted.double.json punctuation.definition.string.json, markup.inline.raw.markdown | #FF1654 | — |
| meta.function punctuation.separator.comma, entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc, meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #CFDEE6 | — |
| punctuation.accessor, keyword, storage, storage.type, meta.var.expr storage.type, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx, meta.class meta.method.declaration meta.var.expr storage.type.js, keyword.operator.relational, keyword.operator.assignment, meta.delimiter.period, meta.selector, entity.name.tag.doctype, meta.tag.sgml.doctype, keyword.operator.logical, keyword.operator.comparison, source.elixir .punctuation.binary.elixir | #B2DBBF | — |
| punctuation.definition.tag, meta.tag, support.constant.meta.property-value, keyword.operator, variable.parameter.function, keyword.control.operator, variable.other.property, variable.other.object.property, support.constant, keyword.other.special-method, keyword.other.new, support.function, support.variable.property, variable.assignment.coffee, punctuation.definition.tag.html, constant.language.symbol.hashkey.ruby, entity.name.tag.yaml, entity.other.attribute-name.handlebars, variable.other.jsdoc, variable.other.phpdoc, entity.name.type.ts, entity.name.type.tsx | #CFDEE6 | — |
| entity.name.tag support.class.component, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html, meta.property-list entity.name.tag.reference, constant.language.boolean, variable.instance, variable.other.instance, variable.reaedwrite.instance, variable.other.readwrite.instance, variable.language, variable.interpolation, punctuation.section.embedded, entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass, entity.name.tag.less, meta.structure.dictionary.json meta.structure.dictionary.value constant.language, punctuation.definition.metadata.markdown, entity.name.tag.scss, entity.name.tag.sass, constant.language.null, constant.language.python, markup.underline.link.markdown, markup.underline.link.image.markdown, string.template meta.template.expression | #FF1654 | — |
| invalid | #CFDEE6 | — |
| invalid.deprecated | #CFDEE6 | — |
| object.comma | #CFDEE6 | — |
| invalid.broken | #020e14 | — |
| invalid.unimplemented | #CFDEE6 | — |
| invalid.illegal | #CFDEE6 | — |
| quote, markup.quote.markdown, comment, comment.line.double-slash | #247BA0 | italic |
| italic, meta.tag.sgml.doctype.html, markup.italic.markdown | #B2DBBF | italic |
| meta.tag.js meta.embedded.expression.js punctuation.section.embedded.begin.js, meta.tag.js meta.embedded.expression.js punctuation.section.embedded.end.js, meta.property-list.css meta.property-value.css variable.other.less, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.type, punctuation.section.embedded.js, punctuation.definintion.string, punctuation | — | normal |
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}!`;
}