Japandi Theme
Publisher: JapandiThemes in package: 2
Japandi combines the minimalism of Japanese design with the elegance of Scandinavian style to create a coding environment that's serene and focused.
Japandi combines the minimalism of Japanese design with the elegance of Scandinavian style to create a coding environment that's serene and focused.
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 | #46474F | — |
| variable, string constant.other.placeholder, entity.name.tag | #FCFAF7 | — |
| constant.other.color | #FCFAF7 | — |
| invalid, invalid.illegal | #D84F68 | — |
| meta.jsx.children.tsx | #FCFAF7 | — |
| keyword, storage.type, storage.modifier | #c1b6ae | — |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #c1b6ae | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #E2CEB6 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method | #FFD39F | — |
| meta.block variable.other | #FCFAF7 | — |
| support.other.variable, string.other.link | #FCFAF7 | — |
| constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, constant.language.boolean | #cbb394 | — |
| string, constant.other.symbol, constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #FCFAF7 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #E2CEB6 | — |
| support.class | #FCFAF7 | — |
| 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, source.postcss support.type.property-name, support.type.vendored.property-name.css, source.css.scss entity.name.tag, variable.parameter.keyframe-list.css, meta.property-name.css, variable.parameter.url.scss, meta.property-value.scss, meta.property-value.css | #FCFAF7 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #D84F68 | — |
| variable.language | #A1998C | — |
| entity.name.method.js | #FCFAF7 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #FCFAF7 | — |
| entity.other.attribute-name, meta.property-list.scss, meta.attribute-selector.scss, meta.property-value.css, entity.other.keyframe-offset.css, meta.selector.css, entity.name.tag.reference.scss, entity.name.tag.nesting.css, punctuation.separator.key-value.css | #A1998C | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #E2CEB6 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, meta.attribute-selector.scss, variable.parameter.misc.css | #E2CEB6 | — |
| source.sass keyword.control, meta.attribute-selector.scss | #FCFAF7 | — |
| markup.inserted | #FCFAF7 | — |
| markup.deleted | #D84F68 | — |
| markup.changed | #A1998C | — |
| string.regexp | #A1998C | — |
| constant.character.escape | #A1998C | — |
| *url*, *link*, *uri* | #479FFA | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #FCFAF7 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #D84F68 | italic |
| support.type.property-name.json | #E2CEB6 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #FCFAF7 | — |
| text.html.markdown markup.inline.raw.markdown | #A1998C | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #FCFAF7 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.heading, markup.inserted.git_gutter | #E2CEB6 | — |
| markup.italic | #FCFAF7 | italic |
| markup.bold, markup.bold string | #FCFAF7 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #FCFAF7 | bold |
| markup.underline | #E2CEB6 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #FCFAF7 | — |
| markup.quote | #FCFAF7 | — |
| string.other.link.title.markdown | #FCFAF7 | — |
| string.other.link.description.title.markdown | #A1998C | — |
| constant.other.reference.link.markdown | #E2CEB6 | — |
| markup.raw.block | #A1998C | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #FCFAF7 | — |
| variable.language.fenced.markdown | #FCFAF7 | — |
| meta.separator | #65737E | bold |
| markup.table | #FCFAF7 | — |
| meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.section.function, meta.brackets, punctuation.definition.brackets, punctuation.definition.dictionary, punctuation.definition.array, punctuation.section, punctuation.section.block, punctuation.section.braces, punctuation.section.group, punctuation.section.parameters | #59564F | — |
| meta.function string.quoted.double.ts, meta.function string.quoted.single.ts, meta.function string.quoted.double.js, meta.function string.quoted.single.js, meta.function string.quoted.double.tsx, meta.function string.quoted.single.tsx | #cbb394 | — |
| support.function.builtin.python, support.function.magic.python, support.type.builtin.python | #E2CEB6 | bold |
| variable.parameter.function.python | #A1998C | italic |
| keyword.control.flow.python, keyword.control.import.python, keyword.control.statement.python, keyword.operator.member.python, keyword.operator.wordlike.python | #c1b6ae | — |
| keyword.operator.logical.python, keyword.operator.arithmetic.python, keyword.operator.assignment.python, keyword.operator.comparison.python, keyword.operator.bitwise.python | #cbb394 | — |
| storage.type.python, storage.type.annotation.python, storage.type.function.python, storage.type.class.python, storage.type.union.python, storage.type.intersection.python, storage.type.optional.python, storage.type.any.python, storage.type.unknown.python, storage.type.none.python | #E2CEB6 | bold |
| variable.parameter.function.language.special.self.python | #A1998C | — |
| entity.name.type.class.python, entity.name.type.class.python punctuation.definition.class.python | #E2CEB6 | — |
| entity.name.function.python, meta.function.python entity.name.function.python | #E2CEB6 | — |
| variable.other.constant.python, variable.other.enummember.python, variable.other.property.python, variable.other.object.python, variable.other.readwrite.python | #E2CEB6 | — |
| constant.character.format.placeholder.other.python, constant.character.format.placeholder.other.python punctuation.definition.format.placeholder.python | #cbb394 | — |
| string.quoted.single.python, string.quoted.double.python, string.quoted.triple.single.python, string.quoted.triple.double.python, string.regexp.python, string.quoted.single.python punctuation.definition.string.begin.python, string.quoted.single.python punctuation.definition.string.end.python, string.quoted.double.python punctuation.definition.string.begin.python, string.quoted.double.python punctuation.definition.string.end.python, string.quoted.triple.single.python punctuation.definition.string.begin.python, string.quoted.triple.single.python punctuation.definition.string.end.python, string.quoted.triple.double.python punctuation.definition.string.begin.python, string.quoted.triple.double.python punctuation.definition.string.end.python | #cbb394 | — |
| string.quoted.docstring.multi.python | #A1998C | italic |
| constant.language.python | #cbb394 | italic |
| string.quoted.single.ts, string.quoted.double.ts, string.quoted.single.js, string.quoted.double.js, string.quoted.single.tsx, string.quoted.double.tsx | #A1998C | — |
| string.template.js, string.template.ts | #E2CEB6 | — |
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}!`;
}