Shiki Highlighter
Publisher: litingyesThemes in package: 60
A Visual Studio Code extension that provides beautiful code highlighting using the Shiki syntax highlighter.
A Visual Studio Code extension that provides beautiful code highlighting using the Shiki syntax highlighter.
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 |
|---|---|---|
| — | #3c3836 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #458588 | — |
| comment, punctuation.definition.comment | #928374 | italic |
| constant, support.constant, variable.arguments | #8f3f71 | — |
| constant.rgb-value | #3c3836 | — |
| entity.name.selector | #427b58 | — |
| entity.other.attribute-name | #b57614 | — |
| entity.name.tag, punctuation.tag | #427b58 | — |
| invalid, invalid.illegal | #cc241d | — |
| invalid.deprecated | #b16286 | — |
| meta.selector | #427b58 | — |
| meta.preprocessor | #af3a03 | — |
| meta.preprocessor.string | #79740e | — |
| meta.preprocessor.numeric | #79740e | — |
| meta.header.diff | #af3a03 | — |
| storage | #9d0006 | — |
| storage.type, storage.modifier | #af3a03 | — |
| string | #79740e | — |
| string.tag | #79740e | — |
| string.value | #79740e | — |
| string.regexp | #af3a03 | — |
| string.escape | #9d0006 | — |
| string.quasi | #427b58 | — |
| string.entity | #79740e | — |
| object | #3c3836 | — |
| module.node | #076678 | — |
| support.type.property-name | #689d6a | — |
| keyword | #9d0006 | — |
| keyword.control | #9d0006 | — |
| keyword.control.module | #427b58 | — |
| keyword.control.less | #d79921 | — |
| keyword.operator | #427b58 | — |
| keyword.operator.new | #af3a03 | — |
| keyword.other.unit | #79740e | — |
| metatag.php | #af3a03 | — |
| support.function.git-rebase | #689d6a | — |
| constant.sha.git-rebase | #79740e | — |
| meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, storage.type.cs, variable.class | #b57614 | — |
| variable.this, support.variable | #8f3f71 | — |
| entity.name, entity.static, entity.name.class.static.function, entity.name.function, entity.name.class, entity.name.type | #b57614 | — |
| entity.function, entity.name.function.static | #427b58 | — |
| entity.name.function.function-call | #427b58 | — |
| support.function.builtin | #af3a03 | — |
| entity.name.method, entity.name.method.function-call, entity.name.static.function-call | #689d6a | — |
| brace | #504945 | — |
| meta.parameter.type.variable, variable.parameter, variable.name, variable.other, variable, string.constant.other.placeholder | #076678 | — |
| prototype | #8f3f71 | — |
| punctuation | #7c6f64 | — |
| punctuation.quoted | #3c3836 | — |
| punctuation.quasi | #9d0006 | — |
| *url*, *link*, *uri* | — | underline |
| meta.function.python, entity.name.function.python | #427b58 | — |
| storage.type.function.python, storage.modifier.declaration, storage.type.class.python, storage.type.string.python | #9d0006 | — |
| storage.type.function.async.python | #9d0006 | — |
| meta.function-call.generic | #076678 | — |
| meta.function-call.arguments | #504945 | — |
| entity.name.function.decorator | #b57614 | bold |
| constant.other.caps | — | bold |
| keyword.operator.logical | #9d0006 | — |
| punctuation.definition.logical-expression | #af3a03 | — |
| string.interpolated.dollar.shell, string.interpolated.backtick.shell | #427b58 | — |
| keyword.control.directive | #427b58 | — |
| support.function.C99 | #b57614 | — |
| meta.function.cs, entity.name.function.cs, entity.name.type.namespace.cs | #79740e | — |
| keyword.other.using.cs, entity.name.variable.field.cs, entity.name.variable.local.cs, variable.other.readwrite.cs | #427b58 | — |
| keyword.other.this.cs, keyword.other.base.cs | #8f3f71 | — |
| meta.scope.prerequisites | #b57614 | — |
| entity.name.function.target | #79740e | bold |
| storage.modifier.import.java, storage.modifier.package.java | #665c54 | — |
| keyword.other.import.java, keyword.other.package.java | #427b58 | — |
| storage.type.java | #b57614 | — |
| storage.type.annotation | #076678 | bold |
| keyword.other.documentation.javadoc | #427b58 | — |
| comment.block.javadoc variable.parameter.java | #79740e | bold |
| source.java variable.other.object, source.java variable.other.definition.java | #3c3836 | — |
| meta.function-parameters.lisp | #b57614 | — |
| markup.underline | — | underline |
| string.other.link.title.markdown | #928374 | underline |
| markup.underline.link | #8f3f71 | — |
| markup.bold | #af3a03 | bold |
| markup.heading | #af3a03 | bold |
| markup.italic | — | italic |
| markup.inserted | #79740e | — |
| markup.deleted | #d65d0e | — |
| markup.changed | #af3a03 | — |
| markup.punctuation.quote.beginning | #98971a | — |
| markup.punctuation.list.beginning | #076678 | — |
| markup.inline.raw, markup.fenced_code.block | #427b58 | — |
| string.quoted.double.json | #076678 | — |
| entity.other.attribute-name.css | #af3a03 | — |
| source.css meta.selector | #3c3836 | — |
| support.type.property-name.css | #af3a03 | — |
| entity.other.attribute-name.class | #79740e | — |
| source.css support.function.transform, source.css support.function.timing-function, source.css support.function.misc | #9d0006 | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | #d65d0e | — |
| entity.name.tag.css | — | |
| punctuation.definition.tag | #076678 | — |
| text.html entity.name.tag, text.html punctuation.tag | #427b58 | bold |
| source.js variable.language | #af3a03 | — |
| source.ts variable.language | #af3a03 | — |
| source.go storage.type | #b57614 | — |
| source.go entity.name.import | #79740e | — |
| source.go keyword.package, source.go keyword.import | #427b58 | — |
| source.go keyword.interface, source.go keyword.struct | #076678 | — |
| source.go entity.name.type | #3c3836 | — |
| source.go entity.name.function | #8f3f71 | — |
| keyword.control.cucumber.table | #076678 | — |
| source.reason string.double, source.reason string.regexp | #79740e | — |
| source.reason keyword.control.less | #427b58 | — |
| source.reason entity.name.function | #076678 | — |
| source.reason support.property-value, source.reason entity.name.filename | #af3a03 | — |
| source.powershell variable.other.member.powershell | #af3a03 | — |
| source.powershell support.function.powershell | #b57614 | — |
| source.powershell support.function.attribute.powershell | #665c54 | — |
| source.powershell meta.hashtable.assignment.powershell variable.other.readwrite.powershell | #af3a03 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}