Kors Theme
Publisher: Igor KorsukovThemes in package: 1
Suitable for C++, CMake, Js, Json, Markdown, Qml, Html, Shell
Suitable for C++, CMake, Js, Json, Markdown, Qml, Html, Shell
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 |
|---|---|---|
| ============== Basic ============== | — | — |
| comment | #a8abb0 | italic |
| string | #66a334 | — |
| constant.numeric | #fcf5c7 | — |
| constant.numeric | #fcf5c7 | — |
| keyword, storage.type, storage.modifier | #45c6d6 | — |
| storage.type.built-in.primitive | #eecf22 | — |
| entity.name.namespace, entity.name.scope-resolution | #cf6eff | — |
| entity.name.type.class, entity.name.type | #cf6eff | — |
| entity.name.function | #74bbfb | — |
| entity.name.command | #3f9cd6 | — |
| variable.other.object | #fcf5c7 | — |
| variable.other.property | #ff6aad | — |
| variable.parameter | #ffa348 | — |
| entity.name.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #cf6eff | — |
| entity.other.attribute-name | #ff6aad | — |
| punctuation.separator.key-value | #d6bb9a | — |
| ============== C++ ============== | — | — |
| variable.language.this.cpp, storage.type.namespace.cpp, storage.type.namespace.definition.cpp, storage.type.namespace.directive.cpp, storage.type.struct.cpp, storage.type.class.cpp, storage.type.enum.cpp, storage.type.union.cpp, storage.type.typedef.cpp, storage.type.template.cpp, storage.type.template.argument.typename.cpp, storage.type.template.argument.class.cpp, storage.type.constexpr.cpp, storage.type.modifier.const.cpp, storage.type.modifier.volatile.cpp, storage.type.modifier.typedef.cpp, storage.type.modifier.auto.cpp, storage.type.modifier.register.cpp, storage.type.modifier.thread_local.cpp, storage.type.modifier.extern.cpp, storage.type.modifier.mutable.cpp, storage.type.modifier.alignas.cpp, storage.type.modifier.alignof.cpp, storage.type.modifier.noexcept.cpp, storage.type.modifier.restrict.cpp, storage.type.modifier.static.cpp, storage.type.modifier.virtual.cpp, storage.type.modifier.inline.cpp, storage.type.modifier.explicit.cpp, storage.type.modifier.mutable.cpp, storage.type.modifier.cpp, storage.type.modifier.access.control.private.cpp, storage.type.modifier.access.control.protected.cpp, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.public.cpp, storage.type.modifier.access.private.cpp, storage.type.modifier.access.protected.cpp, storage.modifier.inline.cpp, storage.modifier.virtual.cpp, storage.modifier.static.cpp, storage.modifier.extern.cpp, storage.modifier.mutable.cpp, storage.modifier.register.cpp, storage.modifier.thread_local.cpp, storage.modifier.auto.cpp, storage.modifier.alignas.cpp, storage.modifier.alignof.cpp, storage.modifier.noexcept.cpp, storage.modifier.restrict.cpp, storage.modifier.constexpr.cpp, storage.modifier.type.volatile.cpp, storage.modifier.type.const.cpp, storage.modifier.const.cpp, storage.modifier.specifier.const.cpp, storage.modifier.specifier.volatile.cpp, storage.modifier.specifier.static.cpp, storage.modifier.specifier.thread_local.cpp, storage.modifier.specifier.inline.cpp, storage.modifier.specifier.virtual.cpp, storage.modifier.specifier.explicit.cpp, storage.modifier.specifier.functional.pre-parameters.virtual.cpp, storage.modifier.specifier.functional.post-parameters.const.cpp, storage.modifier.specifier.functional.post-parameters.noexcept.cpp, storage.modifier.specifier.functional.pre-parameters.inline.cpp, keyword.control.flow.cpp, keyword.control.loop.cpp, keyword.control.exception.cpp, keyword.control.switch.cpp, keyword.control.cpp, keyword.control.return.cpp, keyword.control.jump.cpp, keyword.control.for.cpp, keyword.control.while.cpp, keyword.control.if.cpp, keyword.control.else.cpp, keyword.control.do.cpp, keyword.control.case.cpp, keyword.control.default.cpp, keyword.control.break.cpp, keyword.control.continue.cpp, keyword.control.goto.cpp, keyword.control.try.cpp, keyword.control.catch.cpp, keyword.control.switch.cpp, keyword.control.type.cpp, keyword.control.access.cpp, keyword.operator.sizeof.cpp, keyword.operator.cast.reinterpret_cast.cpp, keyword.operator.cast.static_cast.cpp, keyword.operator.cast.dynamic_cast.cpp, keyword.operator.cast.const_cast.cpp, keyword.other.namespace.directive.cpp, keyword.other.namespace.cpp, keyword.other.exception.cpp, keyword.other.new.cpp, keyword.other.delete.cpp, keyword.other.cast.cpp, keyword.other.operator.cpp, keyword.other.operator.overload.cpp, keyword.other.memory.cpp, keyword.other.directive.cpp, keyword.other.using.directive.cpp | #45c6d6 | — |
| support.type.built-in.posix-reserved.cpp, constant.language.false.cpp, constant.language.true.cpp | #eecf22 | — |
| constant.numeric.decimal.cpp | #fcf5c7 | — |
| entity.name.type.parameter.cpp | #ffa348 | — |
| keyword.operator, storage.modifier.reference.cpp, punctuation.separator.pointer-access.cpp | #d6bb9a | — |
| punctuation.definition.directive.cpp, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp | #3f9cd6 | — |
| ============== CMake ============== | — | — |
| support.function.cmake, support.function.commandProperty.cmake, support.type.targetProperty.cmake, support.type.cacheProperty.cmake, support.type.testProperty.cmake, support.type.sourceFile.cmake, support.type.system.cmake | #45c6d6 | — |
| support.type.provideInfo.cmake, support.type.change.cmake, support.type.build.cmake, variable.other.cmake, string.unquoted.cmake | #ffa348 | — |
| constant.language.boolean.cmake | #eecf22 | — |
| ============== Json ============== | — | — |
| constant.language.json | #eecf22 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #9876db | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ca80c6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fc8ab0 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcae9a | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcbc87 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcca73 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcca73 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcca73 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fcca73 | — |
| ============== JS ============== | — | — |
| variable.language.this.js, variable.language.super.js, storage.type.js, storage.type.function.js, storage.type.class.js, storage.type.interface.js, storage.type.enum.js, storage.modifier.js, storage.modifier.async.js, storage.modifier.static.js, storage.modifier.export.js, keyword.control.conditional.js, keyword.control.repeat.js, keyword.control.flow.js, keyword.control.loop.js, keyword.operator.js, constant.language.undefined.js, constant.language.null.js, support.type.object.module.js | #45c6d6 | — |
| constant.language.boolean.true.js, constant.language.boolean.false.js | #eecf22 | — |
| constant.numeric.decimal.js | #fcf5c7 | — |
| variable.other.object.js, variable.other.constant.js | #9aa7d6 | — |
| entity.name.type.js | #cf6eff | — |
| variable.other.property.js, variable.other.object.property.js, support.variable.property.js | #ff6aad | — |
| variable.other.property.js, variable.other.object.property.js, support.variable.property.js | #ff6aad | — |
| ============== Markdown ============== | — | — |
| heading.1.markdown | #9876db | bold |
| heading.2.markdown | #ca80c6 | bold |
| heading.3.markdown | #fc8ab0 | bold |
| heading.4.markdown | #fcae9a | bold |
| heading.5.markdown | #fcbc87 | bold |
| heading.6.markdown | #fcca73 | bold |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #fcca73 | — |
| markup.bold.markdown | #fcca73 | bold |
| markup.italic.markdown | #fcca73 | italic |
| markup.strikethrough.markdown | #fcca73 | — |
| punctuation.definition.list.begin.markdown | #fcca73 | bold |
| string.other.link.title.markdown, markup.underline.link.markdown | #729fcf | — |
| ============== Qml ============== | — | — |
| entity.name.section.import.module.qml, constant.numeric.import.version.qml | #fcf5c7 | — |
| variable.parameter.attr-object.type.qml, storage.type.prop-custom.type.qml, entity.name.type.object.qml, entity.name.type.qml, entity.name.type.signal.param-type.qml, entity.name.type.import.type.qml, entity.name.type.on-prop.qml, entity.name.type.on-prop.signal.param-type.qml | #cf6eff | — |
| variable.parameter.attr-expr.qml, variable.parameter.attr-list.qml, variable.parameter.attr-object.qml, variable.parameter.attr-string.qml, variable.parameter.attr-block.qml, variable.parameter.on-prop.prop.qml | #ff6aad | — |
| entity.name.function.qml, entity.name.function.signal.name.qml | #74bbfb | — |
| variable.parameter.signal.param-name.qml, source.qml variable.parameter.js, source.qml variable.other.readwrite.js, source.qml variable.other.object.js, source.qml variable.other.constant.property.js, source.qml variable.other.constant.js | #fcf5c7 | — |
| ============== Shell ============== | — | — |
| support.function.builtin.shell, punctuation.definition.subshell.single.shell, punctuation.definition.variable.shell, punctuation.definition.string.heredoc.delimiter.shell | #45c6d6 | — |
| variable.other.assignment.shell, variable.other.normal.shell, string.regexp.unquoted.shell, meta.scope.logical-expression.shell, variable.other.for.shell | #ffa348 | — |
| constant.numeric.integer.shell | #fcf5c7 | — |
| string.unquoted.argument.shell | #ffa348 | — |
| punctuation.separator.statement.and.shell | #d6bb9a | — |
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}!`;
}