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 |
|---|---|---|
| comment | #878580 | — |
| comment.block.documentation, comment.block.documentation variable.other | #878580 | italic |
| comment.block.documentation entity.name.type | #CECDC3 | — |
| comment.block.documentation storage.type | #878580 | italic |
| string, punctuation.definition.string.template | #3AA99F | — |
| constant.numeric | #8B7EC8 | — |
| constant.language | #D0A215 | — |
| constant.character, constant.other | #3AA99F | — |
| variable.language.this | #CE5D97 | — |
| keyword.control, keyword.operator.new | #879A39 | — |
| keyword.control.as | #CECDC3 | — |
| keyword, keyword.operator.less, keyword.control.import, keyword.control.from | #D14D41 | — |
| variable.other.object | #879A39 | — |
| meta.tag.without-attributes.js.jsx | #CECDC3 | — |
| variable.other.object.property | #CECDC3 | — |
| variable.other.readwrite | #CECDC3 | — |
| storage.modifier | #4385BE | — |
| keyword.operator | #CECDC3 | |
| punctuation, meta.brace | #878580 | — |
| punctuation.definition.comment | #878580 | |
| punctuation.definition.tag | #878580 | |
| string.quoted punctuation.definition.string | #3AA99F | |
| string.regexp, string.regexp punctuation.definition.string | #3AA99F | |
| storage | #CE5D97 | |
| storage.type | #4385BE | — |
| storage.type.class | #4385BE | — |
| entity.name.class | #4385BE | underline |
| meta.require, support.function.any-method, variable.function | #CECDC3 | — |
| meta.definition.method, entity.name.function.js.jsx, entity.name.function.tsx | #DA702C | — |
| entity.name.function | #DA702C | — |
| entity.name.function.js, entity.name.function.ts | #DA702C | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.increment, keyword.operator.decrement, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.expression | #D14D41 | — |
| variable.parameter | #CECDC3 | |
| source.css.scss, source.css | #3AA99F | |
| entity.other.attribute-name | #D0A215 | |
| entity.other.inherited-class | #879A39 | |
| support.function, support.variable.dom | #D0A215 | |
| support.constant | #3AA99F | |
| support.type | #CECDC3 | |
| support.class | #CECDC3 | |
| invalid | #D14D41 | |
| invalid.deprecated | #D14D41 | — |
| invalid.illegal | #878580 | — |
| meta.diff, meta.diff.header | #878580 | — |
| markup.deleted | #D14D41 | — |
| markup.inserted | #879A39 | — |
| markup.changed | #D0A215 | — |
| constant.numeric.line-number.find-in-files - match | #879A39 | — |
| entity.name.filename.find-in-files | #D0A215 | — |
| keyword.other | #CECDC3 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #4385BE | — |
| meta.property-value punctuation.separator.key-value | #878580 | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #CE5D97 | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #CE5D97 | — |
| meta.object-literal.key | #DA702C | — |
| variable.parameter.function.coffee | #4385BE | |
| markup.deleted.git_gutter | #D14D41 | — |
| markup.inserted.git_gutter | — | — |
| markup.changed.git_gutter | #D0A215 | — |
| meta.template.expression | #4385BE | — |
| variable.other.constant.property, keyword.operator.ternary, keyword.operator.expression.typeof | #8B7EC8 | — |
| keyword.operator.expression.keyof | #CE5D97 | — |
| entity.name.type, support.type.python | #D0A215 | — |
| entity.name.type.class | #DA702C | — |
| token.info-token | #4385BE | — |
| token.warn-token | #D0A215 | — |
| token.error-token | #D14D41 | — |
| token.debug-token | #8B7EC8 | — |
| entity.name.tag.tsx, entity.name.tag.js.jsx, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.script.html.vue, entity.name.tag.template.html.vue, entity.name.tag.style.html.vue, entity.name.tag.style.html.vue, entity.name.tag.script.html, entity.name.tag.template.html, entity.name.tag.style.html, entity.name.tag.block.any.html | #4385BE | |
| support.class.component.tsx, support.class.component.js.jsx | #CE5D97 | |
| support.type.primitive.tsx, support.type.primitive.ts | #D14D41 | — |
| storage.modifier.tsx | #CE5D97 | — |
| entity.other.inherited-class.tsx | #D0A215 | — |
| meta.object.member variable.other.readwrite.tsx | #CECDC3 | — |
| meta.structure.dictionary.json string.quoted.double.json | #878580 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #3AA99F | — |
| meta.structure.dictionary.json, punctuation.definition.string | #3AA99F | — |
| meta.structure.dictionary.json, support.type.property-name.json | #CE5D97 | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.begin.mdx, punctuation.definition.list.end.markdown, punctuation.definition.list.end.mdx, punctuation.definition.quote.begin.markdown, punctuation.definition.quote.begin.mdx, punctuation.definition.quote.end.markdown, punctuation.definition.quote.end.mdx, meta.separator.markdown, meta.separator.mdx, markup.inline.raw.string.markdown, markup.raw.code.text.mdx | #D0A215 | — |
| entity.name.section.markdown, entity.name.section.mdx | #D0A215 | — |
| punctuation.definition.heading.markdown, punctuation.definition.heading.mdx | #CE5D97 | — |
| markup.raw.inline.markdown, markup.raw.inline.mdx | #4385BE | — |
| punctuation.definition.bold.markdown, punctuation.definition.bold.mdx, punctuation.definition.italic.markdown, punctuation.definition.italic.mdx, punctuation.definition.entity | #CE5D97 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.begin.mdx, punctuation.definition.string.end.markdown, punctuation.definition.string.end.mdx | #CE5D97 | — |
| punctuation.definition.metadata.markdown, punctuation.definition.metadata.mdx | #CE5D97 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.destination.mdx, meta.image.inline.markdown, meta.image.inline.mdx | #CE5D97 | |
| markup.bold.markdown, string.other.strong.asterisk.mdx, markup.italic.markdown, markup.italic.mdx | #CE5D97 | — |
| markup.italic.markdown, markup.italic.mdx | — | italic |
| markup.bold.markdown, markup.bold.mdx | — | bold |
| markup.raw.block.markdown, markup.raw.block.mdx | #4385BE | — |
| keyword.other.rust | #8B7EC8 | — |
| keyword.other.fn.rust | #CE5D97 | — |
| punctuation.section.embedded.begin.php, keyword.other.class.php | #CE5D97 | — |
| support.class.php | #CECDC3 | — |
| entity.name.function.php | #DA702C | — |
| meta.use.php | #879A39 | — |
| keyword.other.definition.ini | #D0A215 | — |
| support.type.primitive.prisma | #D0A215 | — |
| support.constant.constant.prisma | #CE5D97 | — |
| variable.language.relations.prisma | #879A39 | — |
| entity.name.tag.yaml | #CE5D97 | — |
| variable.other.object.property.java | #8B7EC8 | — |
| storage.modifier.java | #4385BE | — |
| storage.type.java | #D0A215 | — |
| keyword.other.package.java, keyword.other.import.java | #CE5D97 | — |
| storage.modifier.package.java | #D0A215 | — |
| storage.modifier.import.java | #CECDC3 | — |
| punctuation.separator.java | #CECDC3 | — |
| meta.tag.xml | #3AA99F | — |
| keyword.other.declaration-specifier.swift, keyword.other.declaration-specifier.accessibility.swift | #CE5D97 | — |
| support.type.swift, meta.function-result.swift, variable.language.swift, keyword.operator.custom.infix.swift | #D0A215 | — |
| variable.parameter.function.swift | #878580 | — |
| entity.name.function.swift | #D0A215 | — |
| variable.parameter.function.swift, meta.parameter-clause.swift | #878580 | — |
| support.function.go | #4385BE | — |
| keyword.operator.address.go, keyword.operator.pointer.go | #D0A215 | — |
| keyword.channel.go | #8B7EC8 | — |
| storage.type.numeric.go, storage.type.string.go, storage.type.error.go, storage.type.boolean.go, storage.type.byte.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.complex.go | #D0A215 | — |
| entity.name.tag.astro | #4385BE | — |
| support.class.component.astro | #CE5D97 | |
| support.function.builtin.python, meta.function-call.generic.python | #DA702C | — |
| entity.name.function.decorator.python | #D0A215 | — |
| entity.name.function.rust | #DA702C | — |
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}!`;
}