Kiki
Publisher: SwyrmThemes in package: 1
Professional dark theme for VS Code.
Professional dark theme for VS Code.
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 |
|---|---|---|
| punctuation.accessor.cs, punctuation.curlybrace.open.cs, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.parenthesis.close.cs, punctuation.terminator.statement.cs, punctuation.separator.comma.cs, punctuation.separator.colon.cs | #cfcfc4 | — |
| keyword.other.await.cs, keyword.control.cs, keyword.control.conditional.if.cs, keyword.control.conditional.else.cs, keyword.control.switch.cs, keyword.control.case.cs, keyword.control.flow.break.cs, keyword.control.flow.continue.cs, keyword.control.flow.return.cs, keyword.control.flow.throw.cs, keyword.control.default.cs, keyword.control.try.cs, keyword.control.try.catch.cs, keyword.control.try.finally.cs, keyword.control.loop.foreach.cs, keyword.control.loop.for.cs, keyword.control.loop.in.cs, keyword.control.loop.while.cs, keyword.control.loop.do.cs, keyword.control.goto.cs | #C586C0 | — |
| entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.tuple-element.cs, entity.name.variable.parameter.cs, entity.name.variable.property.cs, entity.name.variable.event.cs, entity.name.label.cs, entity.name.type.type-parameter.cs, variable.other.object.property.cs, variable.other.readwrite.cs, variable.other.object.cs | #9CDCFE | — |
| constant.language.null.cs | #569cd6 | — |
| variable.other.enummember, entity.name.variable.enum-member.cs | #4FC1FF | — |
| keyword.operator.arrow.cs | #A2659D | — |
| keyword.operator.comparison.cs, keyword.operator.relational.cs | #b16aaa | — |
| keyword.operator.logical.cs, keyword.operator.bitwise.cs | #cd98c9 | — |
| keyword.operator.assignment.cs, keyword.operator.increment.cs, keyword.operator.decrement.cs | #a8e7b8 | — |
| entity.name.type.enum.cs, entity.name.type.type-parameter.cs, entity.name.type.class.cs, entity.name.type.delegate.cs, entity.name.type.struct.cs, storage.type.cs | #4EC9B0 | — |
| entity.name.type.namespace.cs | #33AEA9 | — |
| entity.name.type.interface.cs | #7fc7b8 | — |
| storage.modifier.cs | #569cd6 | — |
| comment, punctuation.definition.comment, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #333333 | italic |
| entity.name.function.cs | #dcdcaa | — |
| keyword.type.cs, keyword.other.new.cs, keyword.other.var.cs, keyword.other.namespace.cs, keyword.other.interface.cs, keyword.other.using.cs, keyword.other.class.cs, keyword.other.enum.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.base.cs, keyword.other.this.cs, keyword.other.implicit.cs, keyword.other.operator-decl.cs, keyword.other.as.cs, keyword.other.checked.cs, keyword.other.lock.cs, keyword.other.delegate.cs, keyword.other.event.cs, keyword.other.explicit.cs, keyword.other.struct.cs, keyword.other.nameof.cs, keyword.other.is.cs, keyword.other.unchecked.cs | #569cd6 | — |
| string.quoted.double.cs | #ce9178 | — |
| constant.numeric.decimal.cs | #b5cea8 | — |
| constant.language.boolean.true.cs, constant.language.boolean.false.cs | #569CD6 | — |
| punctuation.accessor.cs, punctuation.curlybrace.open.cs, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.parenthesis.close.cs, punctuation.terminator.statement.cs, punctuation.separator.comma.cs, punctuation.separator.colon.cs | #cfcfc4 | — |
| keyword.other.await.cs, keyword.control.cs, keyword.control.conditional.if.cs, keyword.control.conditional.else.cs, keyword.control.switch.cs, keyword.control.case.cs, keyword.control.flow.break.cs, keyword.control.flow.continue.cs, keyword.control.flow.return.cs, keyword.control.flow.throw.cs, keyword.control.default.cs, keyword.control.try.cs, keyword.control.try.catch.cs, keyword.control.try.finally.cs, keyword.control.loop.foreach.cs, keyword.control.loop.for.cs, keyword.control.loop.in.cs, keyword.control.loop.while.cs, keyword.control.loop.do.cs, keyword.control.goto.cs | #C586C0 | — |
| entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.tuple-element.cs, entity.name.variable.parameter.cs, entity.name.variable.property.cs, entity.name.variable.event.cs, entity.name.label.cs, entity.name.type.type-parameter.cs, variable.other.object.property.cs, variable.other.readwrite.cs, variable.other.object.cs | #9CDCFE | — |
| constant.language.null.cs | #569cd6 | — |
| variable.other.enummember, entity.name.variable.enum-member.cs | #4FC1FF | — |
| keyword.operator.arrow.cs | #A2659D | — |
| keyword.operator.comparison.cs, keyword.operator.relational.cs | #b16aaa | — |
| keyword.operator.logical.cs, keyword.operator.bitwise.cs | #cd98c9 | — |
| keyword.operator.assignment.cs, keyword.operator.increment.cs, keyword.operator.decrement.cs | #a8e7b8 | — |
| entity.name.type.enum.cs, entity.name.type.type-parameter.cs, entity.name.type.class.cs, entity.name.type.delegate.cs, entity.name.type.struct.cs, storage.type.cs | #4EC9B0 | — |
| entity.name.type.namespace.cs | #33AEA9 | — |
| entity.name.type.interface.cs | #7fc7b8 | — |
| storage.modifier.cs | #569cd6 | — |
| comment, punctuation.definition.comment, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #333333 | italic |
| entity.name.function.cs | #dcdcaa | — |
| keyword.type.cs, keyword.other.new.cs, keyword.other.var.cs, keyword.other.namespace.cs, keyword.other.interface.cs, keyword.other.using.cs, keyword.other.class.cs, keyword.other.enum.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.base.cs, keyword.other.this.cs, keyword.other.implicit.cs, keyword.other.operator-decl.cs, keyword.other.as.cs, keyword.other.checked.cs, keyword.other.lock.cs, keyword.other.delegate.cs, keyword.other.event.cs, keyword.other.explicit.cs, keyword.other.struct.cs, keyword.other.nameof.cs, keyword.other.is.cs, keyword.other.unchecked.cs | #569cd6 | — |
| string.quoted.double.cs | #ce9178 | — |
| constant.numeric.decimal.cs | #b5cea8 | — |
| constant.language.boolean.true.cs, constant.language.boolean.false.cs | #569CD6 | — |
| sd | #569cd6 | — |
| punctuation.accessor.cs, punctuation.curlybrace.open.cs, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.parenthesis.close.cs, punctuation.terminator.statement.cs, punctuation.separator.comma.cs, punctuation.separator.colon.cs | #cfcfc4 | — |
| keyword.other.await.cs, keyword.control.cs, keyword.control.conditional.if.cs, keyword.control.conditional.else.cs, keyword.control.switch.cs, keyword.control.case.cs, keyword.control.flow.break.cs, keyword.control.flow.continue.cs, keyword.control.flow.return.cs, keyword.control.flow.throw.cs, keyword.control.default.cs, keyword.control.try.cs, keyword.control.try.catch.cs, keyword.control.try.finally.cs, keyword.control.loop.foreach.cs, keyword.control.loop.for.cs, keyword.control.loop.in.cs, keyword.control.loop.while.cs, keyword.control.loop.do.cs, keyword.control.goto.cs | #C586C0 | — |
| entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.tuple-element.cs, entity.name.variable.parameter.cs, entity.name.variable.property.cs, entity.name.variable.event.cs, entity.name.label.cs, entity.name.type.type-parameter.cs, variable.other.object.property.cs, variable.other.readwrite.cs, variable.other.object.cs | #9CDCFE | — |
| constant.language.null.cs | #569cd6 | — |
| variable.other.enummember, entity.name.variable.enum-member.cs | #4FC1FF | — |
| keyword.operator.arrow.cs | #A2659D | — |
| keyword.operator.comparison.cs, keyword.operator.relational.cs | #b16aaa | — |
| keyword.operator.logical.cs, keyword.operator.bitwise.cs | #cd98c9 | — |
| keyword.operator.assignment.cs, keyword.operator.increment.cs, keyword.operator.decrement.cs | #a8e7b8 | — |
| entity.name.type.enum.cs, entity.name.type.type-parameter.cs, entity.name.type.class.cs, entity.name.type.delegate.cs, entity.name.type.struct.cs, storage.type.cs | #4EC9B0 | — |
| entity.name.type.namespace.cs | #33AEA9 | — |
| entity.name.type.interface.cs | #7fc7b8 | — |
| storage.modifier.cs | #569cd6 | — |
| comment, punctuation.definition.comment, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #333333 | italic |
| entity.name.function.cs | #dcdcaa | — |
| keyword.type.cs, keyword.other.new.cs, keyword.other.var.cs, keyword.other.namespace.cs, keyword.other.interface.cs, keyword.other.using.cs, keyword.other.class.cs, keyword.other.enum.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.base.cs, keyword.other.this.cs, keyword.other.implicit.cs, keyword.other.operator-decl.cs, keyword.other.as.cs, keyword.other.checked.cs, keyword.other.lock.cs, keyword.other.delegate.cs, keyword.other.event.cs, keyword.other.explicit.cs, keyword.other.struct.cs, keyword.other.nameof.cs, keyword.other.is.cs, keyword.other.unchecked.cs | #569cd6 | — |
| string.quoted.double.cs | #ce9178 | — |
| constant.numeric.decimal.cs | #b5cea8 | — |
| constant.language.boolean.true.cs, constant.language.boolean.false.cs | #569CD6 | — |
| sd | #569cd6 | — |
| storage.type.js | #569CD6 | — |
| punctuation.accessor.cs, punctuation.curlybrace.open.cs, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.parenthesis.close.cs, punctuation.terminator.statement.cs, punctuation.separator.comma.cs, punctuation.separator.colon.cs | #cfcfc4 | — |
| keyword.other.await.cs, keyword.control.cs, keyword.control.conditional.if.cs, keyword.control.conditional.else.cs, keyword.control.switch.cs, keyword.control.case.cs, keyword.control.flow.break.cs, keyword.control.flow.continue.cs, keyword.control.flow.return.cs, keyword.control.flow.throw.cs, keyword.control.default.cs, keyword.control.try.cs, keyword.control.try.catch.cs, keyword.control.try.finally.cs, keyword.control.loop.foreach.cs, keyword.control.loop.for.cs, keyword.control.loop.in.cs, keyword.control.loop.while.cs, keyword.control.loop.do.cs, keyword.control.goto.cs | #C586C0 | — |
| entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.tuple-element.cs, entity.name.variable.parameter.cs, entity.name.variable.property.cs, entity.name.variable.event.cs, entity.name.label.cs, entity.name.type.type-parameter.cs, variable.other.object.property.cs, variable.other.readwrite.cs, variable.other.object.cs | #9CDCFE | — |
| constant.language.null.cs | #569cd6 | — |
| variable.other.enummember, entity.name.variable.enum-member.cs | #4FC1FF | — |
| keyword.operator.arrow.cs | #A2659D | — |
| keyword.operator.comparison.cs, keyword.operator.relational.cs | #b16aaa | — |
| keyword.operator.logical.cs, keyword.operator.bitwise.cs | #cd98c9 | — |
| keyword.operator.assignment.cs, keyword.operator.increment.cs, keyword.operator.decrement.cs | #a8e7b8 | — |
| entity.name.type.enum.cs, entity.name.type.type-parameter.cs, entity.name.type.class.cs, entity.name.type.delegate.cs, entity.name.type.struct.cs, storage.type.cs | #4EC9B0 | — |
| entity.name.type.namespace.cs | #33AEA9 | — |
| entity.name.type.interface.cs | #7fc7b8 | — |
| storage.modifier.cs | #569cd6 | — |
| comment, punctuation.definition.comment, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #333333 | italic |
| entity.name.function.cs | #dcdcaa | — |
| keyword.type.cs, keyword.other.new.cs, keyword.other.var.cs, keyword.other.namespace.cs, keyword.other.interface.cs, keyword.other.using.cs, keyword.other.class.cs, keyword.other.enum.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.base.cs, keyword.other.this.cs, keyword.other.implicit.cs, keyword.other.operator-decl.cs, keyword.other.as.cs, keyword.other.checked.cs, keyword.other.lock.cs, keyword.other.delegate.cs, keyword.other.event.cs, keyword.other.explicit.cs, keyword.other.struct.cs, keyword.other.nameof.cs, keyword.other.is.cs, keyword.other.unchecked.cs | #569cd6 | — |
| string.quoted.double.cs | #ce9178 | — |
| constant.numeric.decimal.cs | #b5cea8 | — |
| constant.language.boolean.true.cs, constant.language.boolean.false.cs | #569CD6 | — |
| sd | #569cd6 | — |
| storage.type.js | #569CD6 | — |
| entity.name.tag.css | #569cd6 | — |
| support.type.property-name.css | #9CDCFE | — |
| constant.numeric.css | #b5cea8 | — |
| constant.other.color.rgb-value.hex.css | #afff83 | — |
| support.constant.property-value.css | #569cd6 | — |
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}!`;
}