Quellen's VSCode Theme
Publisher: QuellenThemes 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 |
|---|---|---|
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.function.sql, entity.name.operator.custom-literal | #DCDCAA | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #ce9178 | — |
| string | #ce9178 | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, 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 | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, keyword.other.await.cs | #C586C0 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder, constant.other.database-name.sql, constant.other.table-name.sql | #9CDCFE | — |
| variable.other.constant, variable.other.enummember | #4FC1FF | — |
| meta.object-literal.key | #9CDCFE | — |
| 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 | #CE9178 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #CE9178 | — |
| string.regexp, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DCDCAA | — |
| keyword.operator.quantifier.regexp | #d7ba7d | — |
| constant.character, constant.language, keyword.operator.new, keyword.other.rust, keyword.other.fn.rust, punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust, keyword.operator.logical.python, storage.modifier, keyword.operator.expression.typeof, keyword.operator.expression.import, keyword.operator.expression.keyof, variable.parameter.function.language.special.self.python, keyword.operator.expression.void, storage.type, keyword.operator.expression.of, keyword.operator.expression.in, keyword.other.new.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.class.cs, keyword.other.using.cs, keyword.other.var.cs, keyword.other.let.cs, keyword.other.const.cs, keyword.other.static.cs, keyword.other.public.cs, keyword.other.private.cs, keyword.other.protected.cs, keyword.other.internal.cs, keyword.other.abstract.cs, keyword.other.virtual.cs, keyword.other.override.cs, keyword.other.this.cs, keyword.other.base.cs, keyword.other.new.cs, keyword.other.as.cs, keyword.other.is.cs, keyword.other.params.cs, keyword.other.ref.cs, keyword.other.out.cs, keyword.other.in.cs, keyword.other.by.cs, keyword.other.yield.cs, keyword.other.void.cs, keyword.other.bool.cs, keyword.other.byte.cs, keyword.other.sbyte.cs, keyword.other.short.cs, keyword.other.ushort.cs, keyword.other.int.cs, keyword.other.uint.cs, keyword.other.long.cs, keyword.other.ulong.cs, keyword.other.float.cs, keyword.other.double.cs, keyword.other.decimal.cs, keyword.other.string.cs, keyword.other.char.cs, keyword.other.object.cs, keyword.other.dynamic.cs, keyword.other.namespace.cs, keyword.other.using.directive.cs, keyword.other.using.alias.cs, keyword.other.extern.alias.cs, keyword.other.global.cs, keyword.other.alias.cs, keyword.other.from.cs, keyword.other.where.cs, keyword.other.select.cs, keyword.other.group.cs, keyword.other.into.cs, keyword.other.join.cs, keyword.other.orderby.cs, keyword.other.ascending.cs, keyword.other.descending.cs, keyword.other.on.cs, keyword.other.equals.cs, keyword.other.by.cs, keyword.other.typeof.cs, keyword.other.sizeof.cs, keyword.other.default.cs, keyword.other.checked.cs, keyword.other.unchecked.cs, keyword.other.unsafe.cs, keyword.other.fixed.cs, keyword.other.stackalloc.cs, keyword.other.add.cs, keyword.other.remove.cs, keyword.other.value.cs, keyword.type.cs, keyword.other.create.sql, keyword.other.select.sql, keyword.other.insert.sql, keyword.other.update.sql, keyword.other.delete.sql, keyword.other.from.sql, keyword.other.where.sql, keyword.other.and.sql, keyword.other.or.sql, keyword.other.order.sql, keyword.other.by.sql, keyword.other.asc.sql, keyword.other.desc.sql, keyword.other.limit.sql, keyword.other.offset.sql, keyword.other.into.sql, keyword.other.join.sql, keyword.other.on.sql, keyword.other.using.sql, keyword.other.left.sql, keyword.other.right.sql, keyword.other.inner.sql, keyword.other.outer.sql, keyword.other.cross.sql, keyword.other.full.sql, keyword.other.union.sql, keyword.other.intersect.sql, keyword.other.except.sql, keyword.other.all.sql, keyword.other.distinct.sql, keyword.other.case.sql, keyword.other.when.sql, keyword.other.then.sql, keyword.other.else.sql, keyword.other.end.sql, keyword.other.if.sql, keyword.other.as.sql, keyword.other.in.sql, keyword.other.exists.sql, keyword.other.like.sql, keyword.other.escape.sql, keyword.other.between.sql, keyword.other.is.sql, keyword.other.null.sql, keyword.other.not.sql, keyword.other.true.sql, keyword.other.false.sql, keyword.other.unknown.sql, keyword.other.set.sql, keyword.other.go.sql, keyword.other.execute.sql, keyword.other.declare.sql, keyword.other.cursor.sql, keyword.other.open.sql, keyword.other.close.sql, keyword.other.fetch.sql, keyword.other.print.sql, keyword.other.return.sql, keyword.other.continue.sql, keyword.other.break.sql, keyword.other.try.sql, keyword.other.catch.sql, keyword.other.throw.sql, keyword.other.raiserror.sql, keyword.other.waitfor.sql, keyword.other.waitsql.sql, keyword.other.waitfor.delay.sql, keyword.other.begin.sql, keyword.other.begin.transaction.sql, keyword.other.begin.try.sql, keyword.other.begin.catch.sql, keyword.other.begin.finally.sql, keyword.other.begin.end.sql, keyword.other.commit.sql, keyword.other.rollback.sql, keyword.other.save.transaction.sql, keyword.other.create.sql, keyword.other.table.sql, keyword.other.view.sql, keyword.other.index.sql, keyword.other.procedure.sql, keyword.other.function.sql, keyword.other.trigger.sql, keyword.other.default.sql, keyword.other.constraint.sql, keyword.other.primary.sql, keyword.other.key.sql, keyword.other.unique.sql, keyword.other.check.sql, keyword.other.foreign.sql, keyword.other.references.sql, keyword.other.nocheck.sql, keyword.other.cascade.sql, keyword.other.restrict.sql, keyword.other.setnull.sql, keyword.other.setdefault.sql, keyword.other.nocascade.sql, keyword.other.norestrict.sql, keyword.other.setnotnull.sql, keyword.other.setdefault.sql, keyword.other.clustered.sql, keyword.other.nonclustered.sql, keyword.other.rebuild.sql, keyword.other.reorganize.sql, keyword.other.with.sql, keyword.other.DML.sql, keyword.other.DDL.create.II.sql, keyword.other.sql | #569cd6 | — |
| constant.character.escape | #d7ba7d | — |
| entity.name.label | #C8C8C8 | — |
| entity.name.tag | #569cd6 | — |
| entity.other.attribute-name, support.type.property-name | #7cdcfe | — |
| comment | #6a9955 | — |
| constant.numeric | #b5cea8 | — |
| punctuation.definition.tag, meta.template.expression | #b6b6b6 | — |
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}!`;
}