LS Unique
Publisher: LSThemes in package: 1
Theme criado a partir do theme Jupiter, com minhas adequações
Theme criado a partir do theme Jupiter, com minhas adequações
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 |
|---|---|---|
| constant.language, constant.numeric, constant.character, constant.other | #67aeff | — |
| storage.type, support.function, support.constant | #66D9EF | italic |
| keyword, storage, markup.deleted, markup.deleted.git_gutter, entity.name.type, entity.name.class, support.constant, support.function, support.module, support.type, support.constant.property-value | #F92672 | |
| entity.name.class, entity.other.inherited-class, markup.inserted, variable.parameter, variable.other.object, variable.other.property, markup.inserted.git_gutter, meta.var.expr | #A6E22E | |
| constant.numeric | #00b33c | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.character.escape, constant.other.placeholder, constant.language, constant.other | #00cc44 | — |
| entity.other.attribute-name.html | #4fc500 | |
| #FD971F | italic | |
| markup.changed, markup.changed.git_gutter, entity.name.filename.find-in-files | #E6DB74 | — |
| markup.ignored.git_gutter, markup.untracked.git_gutter, meta.diff, meta.diff.header, comment | #75715E | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| storage, storage.type, keyword.control.conditional, keyword.control.import, keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.logical, punctuation.definition.keyword, keyword.operator.word, keyword.other, storage.type, storage.modifier, storage.type.js, keyword.control.import, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end.ts | #ffcc00 | — |
| comment.line, comment.block, punctuation.definition.comment, comment.block.documentation, meta.toc-list | #a6a6a6 | — |
| entity.name.class, entity.name.struct, entity.name.enum, entity.name.union, entity.name.trait, entity.name.interface, entity.name.type, entity.name.namespace, entity.name.constant, entity.name.label, entity.name.section, entity.name.class.forward-decl, entity.name.tag, entity.other.inherited-class, entity.name.function, entity.name.function.constructor, entity.name.function.destructor, support.function, support.class | #0066ff | |
| token.info-token, keyword.operator.new, variable.language | #3d96fd | — |
| string.quoted.single, string.quoted.double, string.quoted.triple, punctuation.definition.string.begin, punctuation.definition.string.end, string.quoted.other, string.unquoted, string.regexp, variable.parameter.url.css | #25baff | — |
| invalid.illegal, invalid.deprecated | #ca3e6d | — |
| meta.class, meta.struct, meta.enum, meta.union, meta.trait, meta.interface, meta.type, meta.block, punctuation.section.block.begin, punctuation.section.block.end, meta.braces, punctuation.section.braces.begin, punctuation.section.braces.end, meta.function, meta.function.parameters, meta.function.return-type, meta.group, punctuation.section.group.begin, punctuation.section.group.end, meta.parens, punctuation.section.parens.begin, punctuation.section.parens.end, meta.brackets, punctuation.section.brackets.begin, punctuation.section.brackets.end, meta.namespace, meta.preprocessor, meta.generic, punctuation.definition.generic.begin, punctuation.definition.generic.end, meta.path, meta.tag, meta.function-call, meta.paragraph, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.separator.continuation, source, punctuation.separator, punctuation.accessor, markup.heading, markup.underline.link, markup.list.unnumbered, markup.list.numbered, markup.quote, markup.bold, markup.italic, markup.underline, markup.raw.inline, markup.raw.block, markup.inserted, markup.deleted, markup.other, entity.name.variable, meta.import.js.jsx.ts.tsc, source.js.jsx.ts.tsc, meta.structure.dictionary.json string.quoted.double.json, variable.other, punctuation.definition.variable, variable.other.member, variable.function, text.html, text.xml, punctuation.definition.tag.end.html, meta.tag.metadata.meta.void.html, punctuation.definition.tag.begin.html, meta.tag.inline.a.start.html, text.html.derivative, meta.tag.without-attributes, support.type.property-name.css, variable.other.readwrite.alias.js.jsx, variable.other.readwrite.alias.ts | #cccccc | — |
| meta.definition.variable.js.jsx, meta.array-binding-pattern-variable.js.jsx, meta.var.expr.js.jsx, meta.block.js.jsx, meta.function.js.jsx, source.js.jsx, variable.other.constant, variable.other.readwrite, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.js, variable, variable.parameter, variable.other.property.ts, variable.other.property.js, variable.other.property.jsx | #ff5500 | |
| entity.name.function, keyword.control.from, variable.other.property, entity.name.function, meta.var.expr, keyword.other.unit.px, keyword.control.import, keyword.control.from, keyword.control.conditional, punctuation.separator.key-value, support.constant, punctuation.definition.string.begin.json.comments, storage.type.function, storage.type, support.type.property-name, string.quoted.double, keyword.operator.relational, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.type.annotation, string.quoted.double, meta.embedded.expression, meta.tag.attributes, meta.tag, meta.tag.without-attributes, punctuation.terminator.rule, keyword.other, keyword.operator, constant.numeric.decimal, storage.type.js, storage.type.function.arrow, keyword.operator.relational, keyword.operator.ternary, keyword.operator.assignment, punctuation.definition.entity.css, support.other.variable | — | |
| entity.name.tag.css, entity.name.tag.custom.css, entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.class.css, keyword.control.at-rule.media.css, keyword.control.at-rule.import.css, keyword.operator.new, keyword.control, support.class, variable.other.constant.js.jsx, variable.other.constant.jsx, variable.other.constant.js, storage.modifier | — | italic |
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}!`;
}