Han Theme
Publisher: Nathan WuThemes in package: 1
A dark theme extension for VS Code dedicated to someone very special
A dark theme extension for VS Code dedicated to someone very special
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 |
|---|---|---|
| #a2aabc | — | |
| comment, punctuation.definition.comment | #F4C3C299 | italic |
| variable, string constant.other.placeholder, source | #a2aabc | — |
| constant.other.color, punctuation.definition.entity, constant.character.entity, punctuation.definition.template-expression | #c3a6ff | — |
| invalid, invalid.illegal | #f0767e | — |
| keyword, storage.type, storage.modifier, constant.numeric, constant.language, support.constant, constant.character, constant.escape | #c3a6ff | — |
| punctuation, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.brace, meta.block, meta.jsx, meta.embedded.expression, meta.template.expression, meta.tag.block.any.html, string.unquoted.tag-string.nunjucks, text.html.nunjucks | #a2aabc | — |
| punctuation.separator.key-value.html, meta.tag, keyword.control, keyword.operator, constant.other.color, punctuation.definition.constant, meta.function.block.start.handlebars, meta.function.inline.other, meta.property-value, support.constant.mathematical-symbols, support.constant.vendored.property-value, punctuation.definition.keyword, punctuation.accessor, punctuation.separator.property, string.unquoted.filter-pipe.nunjucks | #ffae57 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, support.variable.dom, meta.import, meta.export, meta.export.default, support.class.builtin, support.class.component | #5ccfe6 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call | #ffd580 | — |
| meta.block variable.other | #a2aabc | — |
| support.other.variable, string.other.link | #f0767e | — |
| variable.parameter, text.html, punctuation.section.property-list, meta.property-value.scss punctuation, meta.property-list, keyword.operator.type.annotation | #a2aabc | — |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string, entity.name.section.markdown, meta.attribute-selector, entity.name.import.go | #70ba00 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, meta.object-literal.key | #ffd580 | — |
| support.type, support.class.console, keyword.other.debugger, entity.other.inherited-class, meta.property-name, punctuation.definition.raw.markdown, variable.graphql, variable.other.readwrite | #5ccfe6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, support.type.property-name, support.variable.object.node, support.variable.object.process | #5ccfe6 | — |
| entity.name.module.js, variable.import.parameter.js | #f0767e | — |
| variable.language | #5ccfe6 | italic |
| entity.name.method.js | #5ccfe6 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #5ccfe6 | — |
| entity.other.attribute-name | #ffae57 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #ffae57 | — |
| entity.other.attribute-name.class, punctuation.definition.entity.css | #ffae57 | — |
| source.sass keyword.control | #5ccfe6 | — |
| markup.inserted | #70ba00 | — |
| markup.deleted | #f0767e | — |
| markup.changed | #c3a6ff | — |
| string.regexp | #70ba00 | — |
| constant.character.escape | #70ba00 | — |
| *url*, *link*, *uri* | — | underline |
| meta.decorator, tag.decorator.js entity.name.tag, tag.decorator.js punctuation.definition.tag | #5ccfe6 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #f0767e | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #5ccfe6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| 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 | #5ccfe6 | — |
| 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 | #ffae57 | — |
| markup.italic | #f0767e | italic |
| markup.bold | #f0767e | bold |
| markup.underline | #c3a6ff | underline |
| markup.strike | #F4C3C2 | italic |
| markup.quote | #5ccfe6 | italic |
| markup.raw.block | #ffae57 | — |
| markup.table | #5ccfe6 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #a2aabc | — |
| text.html.markdown markup.raw.inline, text.html.markdown markup.inline.raw.string.markdown | #5ccfe6 | — |
| text.html.markdown meta.dummy.line-break | #a2aabc | — |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown, punctuation.definition.heading.markdown | #70ba00 | — |
| markup.quote, punctuation.definition.blockquote.markdown | #5ccfe6 | italic |
| string.other.link.title.markdown | #F4C3C2 | underline |
| markup.raw.block.fenced.markdown | #eaecf0 | — |
| punctuation.definition.fenced.markdown, variable.language.fenced.markdown | #a2aabc | — |
| variable.language.fenced.markdown | #a2aabc | |
| meta.separator | #a2aabc | |
| token.info-token | #5ccfe6 | — |
| token.warn-token | #F4C3C2 | — |
| token.error-token | #f0767e | — |
| token.debug-token | #c3a6ff | — |
| storage.type.error.go | #5ccfe6 | — |
| punctuation.other.period.go | #ffae57 | — |
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}!`;
}