Genshin Vibes
Publisher: SubrataThemes in package: 24
A curated collection of dark and light VSCode themes inspired by the aesthetics of Teyvat from Genshin Impact
A curated collection of dark and light VSCode themes inspired by the aesthetics of Teyvat from Genshin Impact
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 | #59757d | italic |
| constant, constant.numeric, constant.language | #4a9bb8 | — |
| entity.name | #a7d5e2 | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #e6c719 | — |
| entity.other.attribute-name, entity.other.inherited-class | #a7d5e2 | italic |
| entity.name.class, entity.name.struct | #4a9bb8 | — |
| entity.name.function | #a7d5e2 | italic |
| invalid | #ff91a4 | underline |
| invalid.deprecated | #8ab4c2 | strikethrough |
| keyword, keyword.operator | #a7d5e2e6 | — |
| markup.heading | #e6c719 | bold |
| markup.bold.markdown, markup.bold | #a7d5e2 | bold |
| markup.italic.markdown, markup.italic | #a7d5e2 | italic |
| markup.link | #ff91a4 | — |
| markup.inserted.diff | #a8d5e2 | — |
| markup.deleted.diff | #ff91a4 | — |
| meta.diff.range | #a7d5e2 | — |
| meta.tag, meta.brace | #374d5cff | — |
| meta.import, meta.export | #e6c719 | — |
| meta.directive.vue | #a7d5e280 | italic |
| meta.property-name.css | #e6c719 | — |
| meta.property-value.css | #ffd700 | — |
| meta.tag.other.html | #4a9bb8 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor | #8ab4c2 | — |
| punctuation.accessor | #90c8ff | — |
| punctuation.definition.string | #ff91a4 | — |
| punctuation.definition.tag, punctuation.separator.key-value.html, punctuation.definition.generic.begin.html, punctuation.definition.section.embedded | #a7d5e280 | — |
| string | #ff91a4cc | — |
| storage.type, storage.modifier | #e6c719 | — |
| support | #e6c719 | — |
| support.constant | #ffd700 | — |
| support.type.property-name | #f0f4f8b3 | — |
| support.type.property-name.json | #f0f4f8cc | — |
| support.function | #a7d5e2 | italic |
| variable | #f0f4f8 | — |
| variable.other, variable.other.property, variable.other.object.property, variable.language, variable.function, variable.argument, meta.object-literal.key | #f0f4f8 | — |
| variable.parameter | #d4b8ff | italic |
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}!`;
}