Knowlyr Theme
Publisher: KnowlyrThemes in package: 2
Knowlyr Dark + Knowlyr Light — warm syntax, clean aesthetic, pro-human color theme for VS Code.
Knowlyr Dark + Knowlyr Light — warm syntax, clean aesthetic, pro-human color 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 |
|---|---|---|
| comment, punctuation.definition.comment | #6f737a | italic |
| comment.block.documentation, comment.block.javadoc | #6f737a | italic |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #3d7a30 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #b35c2a | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.operator.new, keyword.operator.expression, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.expression.of, keyword.operator.expression.in, keyword.operator.expression.void, keyword.operator.expression.delete | #b35c2a | — |
| storage, storage.type, storage.modifier, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.type | #b35c2a | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call | #3574e0 | — |
| variable.parameter, meta.parameter | #2b2d30 | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.name.type.type, support.type, support.class, entity.other.inherited-class | #a04da0 | — |
| entity.name.type.parameter | #a04da0 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #1a8893 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #b35c2a | — |
| variable.other.constant, variable.other.enummember | #a04da0 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object | #2b2d30 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #b35c2a | italic |
| variable.other.property, support.variable.property, variable.other.object.property | #a04da0 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type | #2b2d30 | — |
| punctuation, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace.round, meta.brace.square, meta.brace.curly | #2b2d30 | — |
| entity.name.tag, entity.name.tag.html, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #b35c2a | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #6b7080 | — |
| support.class.component, entity.name.tag support.class.component | #3574e0 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #b35c2a | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #2b2d30 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.media.css | #2b2d30 | — |
| keyword.other.unit.css, constant.other.color.rgb-value.css, support.constant.color.css | #1a8893 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.media.css, keyword.control.at-rule.import.css | #b35c2a | — |
| variable.scss, variable.other.less | #2b2d30 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #1a8893 | — |
| constant.character.escape, constant.character.escape.backslash | #b35c2a | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, meta.annotation, storage.type.annotation | #9e7c10 | — |
| support.type.property-name.json, string.json support.type.property-name | #a04da0 | — |
| string.quoted.double.json | #3d7a30 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #b35c2a | — |
| string.unquoted.plain.out.yaml | #2b2d30 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, keyword.control.flow.block-scalar.yaml | #1a8893 | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading, markup.heading.setext | #b35c2a | bold |
| punctuation.definition.heading.markdown | #b35c2a | — |
| markup.bold | #2b2d30 | bold |
| markup.italic | #2b2d30 | italic |
| markup.inline.raw, markup.fenced_code.block | #0d6b5e | — |
| markup.underline.link, markup.underline.link.markdown | #0d6b5e | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #3574e0 | — |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown, markup.list.unnumbered.markdown | #b35c2a | — |
| markup.quote.markdown | #6f737a | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #9e7c10 | — |
| support.function.magic.python | #3574e0 | — |
| constant.character.format.placeholder.other.python | #b35c2a | — |
| entity.name.package.go | #2b2d30 | — |
| entity.name.import.go | #3d7a30 | — |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #1a8893 | — |
| entity.name.function.macro.rust, support.macro.rust | #3574e0 | bold |
| meta.attribute.rust | #9e7c10 | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell, variable.other.special.shell | #2b2d30 | — |
| entity.name.namespace, entity.name.module, entity.name.type.module | #a04da0 | — |
| support.constant, support.variable | #a04da0 | — |
| markup.inserted | #5ea30a | — |
| markup.deleted | #e34050 | — |
| markup.changed | #0d6b5e | — |
| string.quoted.docstring, string.quoted.docstring.multi.python, string.quoted.docstring.raw.multi.python | #6f737a | italic |
| meta.function.parameters.python support.type.python, meta.function.return-type.python | #a04da0 | — |
| meta.type.annotation entity.name.type, meta.return.type entity.name.type, meta.type.parameters entity.name.type | #a04da0 | — |
| entity.name.table.toml, entity.name.table.array.toml, support.type.property-name.table.toml | #b35c2a | — |
| support.type.property-name.toml | #a04da0 | — |
| constant.other.date.toml, constant.other.datetime.toml, constant.other.datetime-with-timezone.toml | #1a8893 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile | #b35c2a | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.create.sql, keyword.other.data-integrity.sql | #b35c2a | — |
| support.function.aggregate.sql, support.function.scalar.sql, support.function.string.sql | #3574e0 | — |
| variable.other.env | #a04da0 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #3d7a30 | — |
| constant.other.placeholder, constant.other.format-spec | #b35c2a | — |
| keyword.control.directive, entity.name.function.preprocessor, meta.preprocessor keyword, punctuation.definition.directive | #9e7c10 | — |
| string.quoted.other.lt-gt.include, string.quoted.double.include | #3d7a30 | — |
| entity.name.function.target.makefile | #3574e0 | — |
| variable.other.makefile | #2b2d30 | — |
| variable.language.makefile | #b35c2a | italic |
| keyword.graphql, keyword.operation.graphql | #b35c2a | — |
| support.type.graphql, entity.name.type.graphql | #a04da0 | — |
| variable.graphql, variable.arguments.graphql, entity.name.fragment.graphql | #1a8893 | — |
| invalid, invalid.illegal | #e34050 | — |
| invalid.deprecated | #d68f2e | strikethrough |
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}!`;
}