Yi Dark & Yi Light Themes
Publisher: Wang WeixuanThemes in package: 2
Atom One Dark & One Light themes ported for VS Code.
Atom One Dark & One Light themes ported 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 | #5c6370 | italic |
| entity.name.type | #e5c07b | — |
| entity.other.inherited-class | #98c379 | — |
| keyword | #c678dd | — |
| keyword.control | #c678dd | — |
| keyword.operator | #abb2bf | — |
| keyword.operator.new | #c678dd | — |
| keyword.operator.expression | #c678dd | — |
| keyword.operator.cast | #c678dd | — |
| keyword.operator.sizeof | #c678dd | — |
| keyword.operator.instanceof | #c678dd | — |
| keyword.other.special-method | #61afef | — |
| keyword.other.unit | #d19a66 | — |
| storage | #c678dd | — |
| storage.type.annotation | #c678dd | — |
| storage.type.primitive | #c678dd | — |
| storage.modifier.package | #c678dd | — |
| storage.modifier.import | #c678dd | — |
| constant | #d19a66 | — |
| constant.variable | #d19a66 | — |
| constant.character.escape | #56b6c2 | — |
| constant.numberic | #d19a66 | — |
| constant.other.color | #56b6c2 | — |
| constant.other.symbol | #56b6c2 | — |
| constant.other.reference.link | #56b6c2 | — |
| variable | #e06c75 | — |
| variable.interpolation | #be5046 | — |
| variable.parameter | #abb2bf | — |
| variable.other.constant | #d19a66 | — |
| string | #98c379 | — |
| string source | #abb2bf | — |
| string.embedded | #abb2bf | — |
| string.regexp | #56b6c2 | — |
| string.regexp keyword.operator | #56b6c2 | — |
| string.regexp keyword.other | #56b6c2 | — |
| string.regexp punctuation.definition.string | #98c379 | — |
| string.other.link | #61afef | — |
| punctuation.definition.string source | #98c379 | — |
| punctuation.section.embedded source | #be5046 | — |
| punctuation.definition.comment | #5c6370 | — |
| punctuation.definition.typeparameters | #abb2bf | — |
| punctuation.definition.parameters | #abb2bf | — |
| punctuation.definition.separator | #abb2bf | — |
| punctuation.separator | #abb2bf | — |
| punctuation.terminator | #abb2bf | — |
| punctuation.definition.heading | #e06c75 | — |
| punctuation.definition.identity | #61afef | — |
| punctuation.definition.bold | #abb2bf | bold |
| punctuation.definition.italic | #abb2bf | italic |
| punctuation.definition.link | #abb2bf | — |
| punctuation.definition.metadata | #abb2bf | — |
| punctuation.definition.template-expression | #be5046 | — |
| punctuation.section.embedded | #be5046 | — |
| punctuation.section.method | #abb2bf | — |
| punctuation.section.class | #abb2bf | — |
| punctuation.section.inner-class | #abb2bf | — |
| support.class | #e5c07b | — |
| support.type | #56b6c2 | — |
| support.function | #56b6c2 | — |
| support.function.any-method | #61afef | — |
| support.variable | #e06c75 | — |
| support.constant | #d19a66 | — |
| entity.name.function | #61afef | — |
| entity.name.class | #e5c07b | — |
| entity.name.type.class | #e5c07b | — |
| entity.name.tag | #e06c75 | — |
| entity.name.section.group-title | #61afef | — |
| entity.other.attribute-name | #d19a66 | — |
| entity.other.attribute-name.id | #61afef | — |
| meta.class | #e5c07b | — |
| meta.class.body | #abb2bf | — |
| meta.method-call | #abb2bf | — |
| meta.method | #abb2bf | — |
| meta.function-call | #abb2bf | — |
| meta.function | #abb2bf | — |
| meta.definition.variable | #e06c75 | — |
| meta.require | #61afef | — |
| meta.selector | #c678dd | — |
| meta.brace | #abb2bf | — |
| meta.separator | #abb2bf | — |
| meta.tag | #abb2bf | — |
| meta.field | #abb2bf | — |
| invalid.deprecated | #523d14 | — |
| invalid.illegal | #e05252 | — |
| markup.bold | #d19a66 | bold |
| markup.changed | #c678dd | — |
| markup.deleted | #e06c75 | — |
| markup.italic | #c678dd | italic |
| markup.heading | #e06c75 | — |
| markup.underline.link | #56b6c2 | — |
| markup.inserted | #98c379 | — |
| markup.quoted | #d19a66 | — |
| markup.strikethrough | #e06c75 | — |
| markup.inline.raw | #98c379 | — |
| markup.fenced_code.block | #98c379 | — |
| markup.meta.separator.markdown | #5c6370 | italic |
| meta.link.reference.def.markdown constant.other.reference.link | #61afef | — |
| source.c keyword.operator | #c678dd | — |
| source.cpp keyword.operator | #c678dd | — |
| source.cs keyword.operator | #c678dd | — |
| source.css meta.property-name | #828997 | — |
| source.css meta.property-value | #828997 | — |
| source.css support.type.property-name | #abb2bf | — |
| source.css support.constant.property-value | #abb2bf | — |
| source.elixir source.embedded.source | #abb2bf | — |
| source.elixir constant.language | #61afef | — |
| source.elixir constant.numeric | #61afef | — |
| source.elixir constant.definition | #61afef | — |
| source.elixir variable.definition | #c678dd | — |
| source.elixir variable.anonymous | #c678dd | — |
| source.elixir parameter.variable.function | #d19a66 | italic |
| source.elixir string.quoted | #98c379 | — |
| source.elixir keyword.special-method | #e06c75 | — |
| source.elixir embedded.section | #e06c75 | — |
| source.elixir embedded.source.empty | #e06c75 | — |
| source.elixir variable.other.readwrite.module punctuation | #e06c75 | — |
| source.elixir regexp.section | #be5046 | — |
| source.elixir regexp.string | #be5046 | — |
| source.elixir punctuation.separator | #d19a66 | — |
| source.elixir keyword.operator | #d19a66 | — |
| source.elixir variable.constant | #e5c07b | — |
| source.elixir punctuation.array | #828997 | — |
| source.elixir punctuation.scope | #828997 | — |
| source.elixir punctuation.section | #828997 | — |
| source.gfm link entity | #61afef | — |
| source.go storage.type.string | #c678dd | — |
| source.ini keyword.other.definition.ini | #e06c75 | — |
| source.java storage.modifier.import | #e5c07b | — |
| source.java storage.type | #e5c07b | — |
| source.java-properties meta.key-pair | #e06c75 | — |
| source.java-properties meta.key-pair punctuation | #abb2bf | — |
| source.json support.type.property-name | #e06c75 | — |
| source.json constant.language.json | #56b6c2 | — |
| source.php class.bracket | #abb2bf | — |
| source.python keyword.operator.logical.python | #c678dd | — |
| source.python variable.parameter | #d19a66 | — |
| source.ruby constant.other.symbol punctuation | #56b6c2 | — |
| text.xml punctuation.separator.namespace | #d19a66 | — |
| markup.quote | #5c6370 | italic |
| punctuation.definition.list.begin.markdown | #e06c75 | — |
| meta.function-call.generic.python | #61afef | — |
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}!`;
}