nalemischema
Publisher: NALEMIThemes in package: 1
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, comment.block.documentation.phpdoc.php | #999999 | italic |
| string | #2E7D32 | — |
| keyword.other.namespace.php, keyword.other.use.php, keyword.control.php, keyword.other.use-as.php, variable.language.this.php | #00F | — |
| variable.other.property.php | #000 | — |
| keyword.operator.assignment.php | #555555 | — |
| meta.namespace.php, meta.use.php, meta.path.php, support.class.php | #000000 | — |
| meta.array.php | #999999 | — |
| meta.namespace.php, punctuation.separator.namespace.php, punctuation.terminator.expression.php | #000 | — |
| storage.type.class.php, storage.modifier, storage.type, constant.class.php, keyword.operator.type.php, keyword.other.new.php, keyword.other.function.use.php, keyword.operator.logical.php, keyword.operator.comparison.php, support.function.file.php | #009 | — |
| meta.class.php, meta.method-call.php | #000 | — |
| constant.other.php | #000000 | — |
| constant.other.class.php | #555555 | — |
| variable.language.php | #000000 | — |
| punctuation.section.block.php, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.section.group.begin.php, punctuation.section.group.end.php, punctuation.section.block.begin.php, punctuation.section.block.end.php, punctuation.section.brackets.begin.php, punctuation.section.brackets.end.php | #999999 | — |
| variable.other.php, variable.parameter.php | #000000 | — |
| meta.block.php meta.path.php, support.class.php, support.class.builtin.php | #DA564A | — |
| constant.numeric.php, constant.language.php, support.constant.std.php | #0000FF | bold |
| variable.other.global.safer.php, variable.other.global.php | #0000FF | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #FF0000 | bold |
| constant.numeric.decimal.php, constant.numeric.decimal.js, constant.numeric.float.js | #FF0000 | — |
| variable.other.member.php | #DA564A | — |
| variable.function.php, support.function.var.php, support.function.errorfunc.php, support.function.classobj.php, support.function.json.php, support.function.array.php, support.function.network.php, support.function.info.php, support.function.string.php, support.function.math.php, support.function.datetime.php | #555555 | — |
| support.function.construct.php, keyword.control.foreach.php, keyword.control.if.php, keyword.control.else.php, keyword.control.elseif.php, storage.modifier.php, keyword.control.return.php, keyword.control.default.php, keyword.control.while.php, storage.type.php | #0000FF | — |
| meta.block.php punctuation.accessor.php | #555555 | — |
| meta.function-call.php, support.function.string.php, storage.modifier.php, storage.type.function.php, keyword.operator.as.php, keyword.operator.logical.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, support.function.array.php, support.function.network.php | #0000ae | — |
| support.function.construct.output.php | #bb00bb | — |
| meta.function.parameters.php support.class.php | #000000 | — |
| string.quoted.single.php, string.quoted.double.php | #468092 | — |
| meta.tag.structure.any.html, meta.tag.inline.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.tag.sgml.html | #999999 | — |
| custom.compiler.blade.php punctuation.section.embedded.php constant.other.inline-data.html | #000000 | — |
| custom.compiler.blade.php punctuation.section.embedded.php entity.name.tag.block.any.html | #0077AA | — |
| entity.name.tag, entity.other.attribute-name | #009 | bold |
| meta.tag.metadata.script.start.html, meta.tag.metadata.script.end.html | #DA564A | — |
| string.quoted.double.html, string.quoted.single.html | #009faa | — |
| constant.character.entity.html | #0077AA | — |
| meta.class-name.html, string.quoted.double.html | #00F | — |
| punctuation.separator.key-value, punctuation.separator.php, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.section.embedded.begin.blade, punctuation.section.embedded.end.blade | #00F | — |
| source.php.blade support.function.string.php | #555555 | — |
| embedding.php, text.html.basic, meta.tag.block.any.html, meta.attribute-with-value.style.html, source.css, punctuation.separator.key-value.css | #F00 | — |
| source.php.blade keyword.operator | #555555 | — |
| source.php.blade | #555555 | — |
| source.php.blade string.quoted.single.php, source.php.blade string.quoted.double.php | #2E7D32 | — |
| variable.other.object.js | #000000 | — |
| keyword.control.import-export.js, meta.object-literal.key.js, keyword.control.flow.js | #0077AA | — |
| entity.name.function.js | #000000 | — |
| punctuation.accessor.js, punctuation.section.block.js, punctuation.section.group.js, punctuation.section.group.begin.js, punctuation.section.group.end.js, punctuation.separator.comma.js, punctuation.section.brackets.js, meta.object-literal.js | #999999 | — |
| keyword.operator.relational.js | #999999 | — |
| variable.language.this.js, support.class.builtin.js, constant.numeric.js, constant.language.null.js | #DA564A | — |
| variable.function.js, variable.parameter.function.js, entity.name.function.js, meta.property.object.js | #555555 | — |
| meta.function-call.js variable.function.js, variable.other.readwrite.js | #0077AA | — |
| keyword.control.conditional.js | #0077AA | — |
| constant.language.boolean.false.js, constant.language.boolean.true.js | #DA564A | — |
| meta.directive.vue entity.other.attribute-name.html | #4EA1DF | — |
| entity.other.attribute-name.class.css, meta.selector.css | #DA564A | — |
| keyword.other.unit.css | #555555 | — |
| punctuation.section.property-list.css | #999999 | — |
| support.type.property-name.css | #009 | — |
| support.constant.property-value.css | #00f | — |
| meta.property-value.css | #555555 | — |
| variable.declaration.less | #000000 | — |
| variable.other.less | #4EA1DF | — |
| variable.declaration.less | #0077AA | — |
| source.scss meta.set.variable, keyword.control.at-rule.sass, keyword.control.at-rule.import.scss, variable.parameter.sass | #0077AA | — |
| source.scss meta.set.variable variable.scss | #4EA1DF | — |
| variable.parameter.url.sass, variable.parameter.url.scss | #2E7D32 | — |
| constant.other.color.rgb-value.scss, constant.other.rgb-value.sass, punctuation.definition.constant.scss, constant.numeric.scss, constant.numeric.sass, keyword.other.unit.scss, constant.other.unit.sass | #555555 | — |
| support.constant.font-name.scss, support.constant.font-name.sass | #4EA1DF | — |
| punctuation.section.dictionary.begin.json, punctuation.section.dictionary.end.json, punctuation.section.array.begin.json, punctuation.section.array.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json | #999999 | — |
| constant.language.json | #DA564A | — |
| meta.structure.dictionary.key.json string.quoted.double.json | #0077AA | — |
| meta.tag.preprocessor.xml, meta.tag.preprocessor.xml string.quoted.double.xml, meta.tag.xml, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml | #999999 | — |
| string.quoted.double.xml | #0077AA | — |
| entity.name.tag.localname.xml, entity.other.attribute-name.localname.xml | #DA564A | — |
| source.sql | #0077AA | — |
| keyword.operator.star.sql | #DA564A | — |
| punctuation.definition.string.begin.sql, punctuation.definition.string.end.sql | #999999 | — |
| punctuation.definition.heading.begin.markdown | #4EA1DF | — |
| markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.markdown | #4EA1DF | — |
| markup.list.unnumbered.bullet.markdown, markup.list.numbered.bullet.markdown | #555555 | — |
| punctuation.definition.link.begin.markdown, punctuation.definition.link.end.markdown, punctuation.definition.metadata.begin.markdown, punctuation.definition.metadata.end.markdown, punctuation.definition.image.begin.markdown, punctuation.definition.image.end.markdown | #999999 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #0077AA | — |
| meta.link.inline.description.markdown, meta.image.inline.description.markdown | #2E7D32 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.bold.markdown markup.italic.markdown | — | bold italic |
| markup.deleted.git_gutter | #DE654A | — |
| markup.inserted.git_gutter | #2E7D32 | — |
| markup.changed.git_gutter | #4EA1DF | — |
| markup.ignored.git_gutter | #999999 | — |
| markup.untracked.git_gutter | #999999 | — |
| sublimelinter.mark.error | #DA564A | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.warning | #DDB700 | — |
| source.diff | #555555 | — |
| source.diff meta.diff.header.from-file punctuation.definition.from-file.diff | #DA654A | bold |
| source.diff meta.diff.header.from-file | #DA654A | — |
| source.diff meta.diff.header.to-file punctuation.definition.to-file.diff | #2E7D32 | bold |
| source.diff meta.diff.header.to-file | #2E7D32 | — |
| source.diff meta.diff.range | #4EA1DF | — |
| source.diff markup.deleted.diff | #DA654A | — |
| source.diff markup.inserted.diff | #2E7D32 | — |
| source.diff markup.changed.diff | #0077AA | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
| variable.other.object.js | #000 | — |
| entity.name.function.js | #990099 | — |
| keyword.control.import-export.js, meta.object-literal.key.js, keyword.control.flow.js | #009 | — |
| embedding.php, text.html.basic, source.js.embedded.html, source.js, meta.function.declaration.js, variable.other.readwrite.js | #000 | — |
| variable.language.this.js, support.class.builtin.js, constant.numeric.js, constant.language.null.js | #da564a | — |
| variable.function.js, variable.parameter.function.js, meta.property.object.js, meta.definition.function.js | #555 | — |
| meta.function-call.js, variable.function.js, embedding.php text.html.basic meta.tag.inline.any.html entity.name.tag.inline.any.html, embedding.php text.html.basic meta.tag.inline.any.html punctuation.definition.tag.begin.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.html entity.other.attribute-name.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.html punctuation.separator.key-value.html, embedding.php text.html.basic meta.tag.inline.any.html punctuation.definition.tag.end.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.class.html entity.other.attribute-name.class.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.class.html punctuation.separator.key-value.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.id.html entity.other.attribute-name.id.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.id.html punctuation.separator.key-value.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.style.html entity.other.attribute-name.style.html, embedding.php text.html.basic meta.tag.inline.any.html meta.attribute-with-value.style.html punctuation.separator.key-value.html | #990099 | — |
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}!`;
}