Nanahoshi Theme Suite
Publisher: NanahoshiThemes in package: 45
This theme suite contains 40+ themes based on various game characters for Visual Studio Code.
This theme suite contains 40+ themes based on various game characters for Visual Studio 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 |
|---|---|---|
| source, text | #F8F8F2 | — |
| comment, punctuation.definition.comment, string.quoted.docstring | #6272A4 | — |
| storage.type.class.jsdoc, keyword.other.documentation, punctuation.definition.block.tag.jsdoc, entity.name.tag.yaml | #B8A060 | bold italic |
| variable.other.jsdoc, meta.other.type.phpdoc, variable.parameter.jsdoc | #93AEC8 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.other, keyword.declaration, storage.type, storage.modifier | #9FAC86FF | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template | #93AEC8 | — |
| constant.character.escape, constant.character.unicode | #93AEC8 | — |
| invalid.illegal.escape | #4299A0 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #586860 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, variable.other.constant, support.constant | #586860 | — |
| entity.name.class, entity.name.type.class, entity.name.type, entity.other.inherited-class, support.class, meta.class entity.name | #4299A0 | — |
| entity.name.type.instance, support.type, storage.type.generic, entity.name.type.parameter, meta.type.annotation entity.name.type | #4299A0 | — |
| entity.name.interface, entity.name.type.interface, entity.name.type.enum | #A6CDA6FF | — |
| entity.name.function, entity.name.function.constructor, entity.name.function.destructor | #4299A0 | — |
| meta.function-call, meta.function-call entity.name.function, variable.function, support.function | #F9F3C1 | — |
| variable.parameter, meta.function.parameter variable, meta.parameter | #9BD0CC | — |
| variable, variable.other, variable.other.readwrite, variable.other.object | #F8F8F2 | — |
| variable.other.object.property, variable.other.member, variable.other.property, support.variable.property, meta.object-literal.key | #F8F8F2 | bold |
| variable.other.global, variable.other.static, support.variable, meta.property-access support.variable | #80B8F9 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #4299A0 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.type | #6FB4B0 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters.begin, punctuation.definition.parameters.end | #6FB4B0 | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #6FB4B0 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, meta.tag entity.other.attribute-name | #E8E4B7FF | — |
| string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value.html string | #93AEC8 | — |
| constant.character.entity, punctuation.definition.entity.html | #586860 | — |
| meta.decorator, entity.name.function.decorator, storage.type.annotation, punctuation.decorator | #F9F3C1 | — |
| support.type.property-name, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name | #B8A060 | — |
| support.constant.property-value, support.constant.color, support.constant.font-name, meta.property-value | #93AEC8 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.id, entity.other.attribute-name.class.css | #4299A0 | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.import | #9FAC86FF | — |
| string.regexp, string.regexp.character-class, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, keyword.control.anchor.regexp | #93AEC8 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, keyword.operator.or.regexp | #6FB4B0 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string, meta.mapping.key string | #F9F3C1 | — |
| entity.name.tag.yaml, meta.mapping.key.yaml string | #F9F3C1 | — |
| punctuation.definition.function.kotlin, keyword.operator.arrow.kotlin | #9FAC86FF | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown | #9FAC86FF | bold |
| markup.bold, punctuation.definition.bold | #4299A0 | bold |
| markup.italic, punctuation.definition.italic | #9BD0CC | italic |
| markup.inline.raw, markup.raw.inline, markup.raw.block | #93AEC8 | — |
| markup.underline.link, string.other.link, meta.link | #6FB4B0 | — |
| markup.quote, markup.quote.markdown | #6272A4 | — |
| meta.import variable.other.readwrite.alias, meta.import variable.other.readwrite, meta.export variable.other.readwrite.alias, meta.export variable.other.readwrite, meta.statement.import variable, meta.import-from variable | #4299A0 | — |
| invalid, invalid.illegal | #D85A8C | — |
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}!`;
}