SLab Theme
Publisher: Hasibur RahmanThemes in package: 708
All themes in one place
All themes in one place
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #707C74 | italic |
| constant.language | #58b2dc | — |
| constant.numeric | #986DB2 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #E03C8A | — |
| entity.name.tag.css | #E03C8A | — |
| entity.other.attribute-name | #E6844F | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #E03C8A | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #6796e6 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #58b2dc | bold |
| markup.heading | #E03C8A | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #58b2dc | — |
| beginning.punctuation.definition.quote.markdown | #608b4e | — |
| beginning.punctuation.definition.list.markdown | #6796e6 | — |
| markup.inline.raw | #E6844F | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #58b2dc | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.diff.header | #58b2dc | — |
| storage | #58b2dc | — |
| storage.type | #E03C8A | — |
| storage.modifier | #58b2dc | — |
| string | #66A866 | — |
| string.tag | #ce9178 | — |
| string.value | #ce9178 | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #58b2dc | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #E6844F | — |
| keyword | #E03C8A | — |
| keyword.operator | #B9B3B3 | — |
| keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #58b2dc | — |
| keyword.other.unit | #E03C8A | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #58b2dc | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #E03C8A | italic |
| entity.name.function, support.function, support.constant.handlebars | #58B2DC | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #58B2DC | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control | #58B2DC | |
| keyword.operator.assignment | #bcb28d | — |
| meta.definition.variable.name, support.variable | #bcb28d | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #E6844F | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #bcb28d | — |
| support.class, variable, entity.name.type, entity.other.inherited-class, keyword.operator, keyword.operator.arithmetic | #E6844F | — |
| string, string.regexp, keyword.operator | #66A866 | — |
| keyword.control | #58b2dc | — |
| entity.name.type.module.js, entity.name.type.module.js.jsx, entity.other.inherited-class.js, entity.other.inherited-class.js.jsx | — | italic |
| keyword.operator.new | #E03C8A | italic |
| constant.numeric | #DDA52D | — |
| markup.underline.link.markdown | #58b2dc | — |
| meta.separator.markdown, punctuation.definition.list.begin.markdown | #DDA52D | — |
| keyword.operator.accessor.js, keyword.operator.assignment.js | #bcb28d | — |
| meta.function-call.generic.python, meta.function-call.python, keyword.operator.logical.python, constant.other.caps.python, entity.other.inherited-class.python | #58b2dc | — |
| meta.function-call.arguments.python, meta.item-access.python, punctuation.definition.decorator.python, variable.language.special.self.python | #E6844F | — |
| storage.type.function.python, storage.type.class.python, keyword.control.flow.python | #E03C8A | — |
| punctuation.separator.arguments.python, punctuation.separator.element.python, punctuation.separator.period.python, keyword.operator.assignment.python, keyword.operator.python, meta.attribute.python | #bcb28d | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| string.quoted.docstring.multi.python | #707C74 | — |
| punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #66A866 | — |
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}!`;
}