Hatsune Miku VS Code Theme
Publisher: vauxeThemes in package: 2
A VS Code color theme traced from Hatsune Miku's character design. Dark and light variants, built with perceptual color science.
A VS Code color theme traced from Hatsune Miku's character design. Dark and light variants, built with perceptual color science.
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 | #578F92 | italic |
| comment.block.documentation, comment.line.documentation, comment.block.javadoc, storage.type.class.jsdoc | #498083 | italic |
| keyword.control | #007284 | — |
| storage.type | #007284 | — |
| storage.modifier | #007284 | — |
| keyword.declaration, keyword.declaration.function, keyword.declaration.class, keyword.declaration.type | #007284 | — |
| keyword.other, keyword.other.unit | #007284 | — |
| keyword.operator, keyword.operator.ternary | #B80067 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.spread, keyword.operator.rest | #007284 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor | #00878E | — |
| entity.name.function, meta.function-call, meta.function-call.generic | #896700 | — |
| support.function, support.function.console, support.function.builtin | #764A00 | — |
| entity.name.function.member, meta.method.declaration, meta.function.method | #896700 | — |
| meta.function-call.arguments, meta.function.arguments | #5849CB | — |
| entity.name.type.class, entity.name.class | #346900 | — |
| entity.name.type.struct | #346900 | — |
| support.class | #2B6C00 | — |
| support.type | #71009C | — |
| entity.name.type.interface, entity.name.interface | #007D57 | — |
| entity.name.type.enum, entity.name.enum | #346900 | — |
| entity.name.type, support.type.primitive, support.type.builtin | #8B12BA | — |
| entity.name.type.parameter | #7B5393 | — |
| entity.name.type.alias, entity.name.type.type-alias | #8B12BA | — |
| entity.name.type.namespace, entity.name.namespace, entity.name.type.module | #8B12BA | — |
| support.module, support.module.node | #8B12BA | — |
| variable, meta.definition.variable.name | #5849CB | — |
| variable.other.property, variable.other.object.property, variable.other.member, meta.object-literal.key | #AA4200 | — |
| variable.parameter, variable.parameter.function | #AA4200 | — |
| variable.other.constant, constant.language | #0058A3 | — |
| support.constant, constant.other | #0058A3 | — |
| variable.language, variable.language.this, variable.language.self | #007284 | italic |
| support.variable, support.variable.property | #432EAB | — |
| string, string.quoted.double, string.quoted.single, string.quoted.triple, string.quoted.other | #00791B | — |
| string.template, string.interpolated | #00791B | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #00791B | — |
| punctuation.definition.template-expression, meta.template.expression | #B80067 | — |
| constant.numeric | #0058A3 | — |
| constant.language.boolean, constant.language.true, constant.language.false | #0058A3 | — |
| constant.language.null, constant.language.undefined | #0058A3 | — |
| string.regexp, constant.regexp | #00791B | — |
| constant.character.escape | #AA4200 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #A90095 | — |
| entity.other.attribute-name | #AA4200 | — |
| entity.name.tag, punctuation.definition.tag | #896700 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx | #AA4200 | — |
| punctuation.section.embedded.jsx | #B80067 | — |
| markup.heading, entity.name.section | #764A00 | bold |
| markup.bold | #764A00 | bold |
| markup.italic | #005D9F | italic |
| emphasis | — | italic |
| strong | — | bold |
| markup.underline.link, string.other.link | #71009C | — |
| markup.inline.raw, markup.raw.block, fenced_code.block.language | #005AB3 | — |
| markup.quote | #005D9F | italic |
| markup.list, punctuation.definition.list.begin.markdown | #007D57 | — |
| support.type.property-name.json | #AA4200 | — |
| string.quoted.double.json | #00791B | — |
| punctuation.support.type.property-name.json, punctuation.definition.string.json | #00878E | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #AA4200 | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml, variable.other.alias.yaml, punctuation.definition.alias.yaml | #A90095 | — |
| constant.other.timestamp.yaml | #0058A3 | — |
| keyword.other.directive.yaml, punctuation.definition.directive.yaml | #007284 | — |
| keyword.other.DML.sql, keyword.other.dml.sql | #007284 | — |
| keyword.other.DDL.sql, keyword.other.ddl.sql, keyword.other.create.sql | #007284 | — |
| keyword.other.sql, keyword.other.order.sql, keyword.other.alias.sql | #007284 | — |
| support.function.sql, support.function.aggregate.sql | #896700 | — |
| entity.name.function.sql, constant.other.table-name.sql | #346900 | — |
| storage.type.sql, support.type.sql | #8B12BA | — |
| entity.name.tag.css, entity.other.attribute-name.class.css | #896700 | — |
| support.type.property-name.css, meta.property-name.css | #AA4200 | — |
| support.constant.property-value.css, meta.property-value.css | #00791B | — |
| keyword.other.unit.css | #0058A3 | — |
| constant.rgb-value, constant.other.color, support.constant.color | #00791B | — |
| variable.scss, variable.sass | #5849CB | — |
| entity.other.attribute-name.id.css | #764A00 | — |
| punctuation.section.embedded.php, keyword.other.phpdoc.php | #007284 | — |
| variable.other.php, punctuation.definition.variable.php | #5849CB | — |
| support.function.php, support.function.construct.php | #896700 | — |
| entity.other.inherited-class, support.class.php | #346900 | — |
| constant.other.symbol.ruby, punctuation.definition.symbol.ruby | #0058A3 | — |
| variable.other.readwrite.instance.ruby | #AA4200 | — |
| variable.other.readwrite.class.ruby | #346900 | — |
| variable.other.readwrite.global.ruby | #0058A3 | — |
| variable.parameter.function.language.special.self.python | #007284 | italic |
| support.function.magic.python | #896700 | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #A90095 | — |
| constant.character.format.placeholder.other.python | #B80067 | — |
| entity.name.package.go | #8B12BA | — |
| entity.name.import.go | #00791B | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #007284 | — |
| keyword.other.unsafe.rust | #C70025 | — |
| entity.name.type.trait.rust | #007D57 | — |
| entity.name.function.macro.rust, meta.macro.rust | #A90095 | — |
| keyword.query.linq.cs | #007284 | — |
| keyword.other.await.cs, keyword.other.async.cs | #007284 | — |
| entity.name.type.namespace.cs | #8B12BA | — |
| meta.attribute.rust, meta.attribute.cs, entity.name.type.attribute.cs, storage.type.annotation.java, punctuation.definition.annotation.java | #A90095 | — |
| storage.modifier.package.java | #007284 | — |
| storage.modifier.import.java | #007284 | — |
| entity.name.function.target.makefile | #764A00 | — |
| entity.name.function.prerequisite.makefile | #896700 | — |
| variable.other.makefile, variable.language.makefile | #5849CB | — |
| support.function.makefile, meta.function-call.makefile | #896700 | — |
| keyword.other.special-method.dockerfile | #007284 | — |
| variable.other.normal.shell, variable.other.special.shell | #5849CB | — |
| string.interpolated.shell, string.interpolated.dollar.shell | #00791B | — |
| support.function.builtin.shell | #764A00 | — |
| meta.preprocessor, meta.preprocessor.macro, entity.name.function.preprocessor | #007284 | — |
| meta.function.parameters, meta.parameters, meta.class.body, meta.class.inheritance, meta.interface.body, meta.namespace.body, meta.object-literal, meta.array.literal, meta.objectliteral, meta.import, meta.export, meta.imports | #5849CB | — |
| meta.return.type, meta.function.return-type | #8B12BA | — |
| entity.name.label, entity.name.statement.label | #007284 | — |
| entity.name.constant, entity.name.variable.constant | #0058A3 | — |
| entity.name.section.group-title.ini | #346900 | — |
| markup.strikethrough | — | strikethrough |
| markup.table | #00878E | — |
| punctuation.definition.heading.markdown | #704E00 | — |
| markup.underline | — | underline |
| markup.link.label, string.other.link.title.markdown | #00791B | — |
| markup.underline.link.markdown, meta.link.inline.markdown | #71009C | underline |
| markup.inserted | #00791B | — |
| markup.deleted | #A4004F | — |
| markup.changed | #896700 | — |
| entity.deprecated, entity.name.deprecated, entity.name.function.deprecated, entity.name.type.deprecated, invalid.deprecated | #71009C | strikethrough |
| invalid, invalid.illegal | #C70025 | — |
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}!`;
}