tyh-theme
Publisher: tyh-themeThemes in package: 2
Tyh theme is a visually comfortable vscode theme with built-in dark and light themes
Tyh theme is a visually comfortable vscode theme with built-in dark and light themes
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 |
|---|---|---|
| — | #333333 | — |
| meta.tag, punctuation.definition.tag | #a8a8a8 | — |
| entity.name.tag | #025fd1 | — |
| entity.other.attribute-name | #00c281 | — |
| string | #c58701 | — |
| constant.language.boolean | #00d3b7 | — |
| constant.numeric | #5885ff | — |
| variable | #333333 | — |
| entity.name, entity.name.type.class, support.type, support.class, meta.use | #0703eb | — |
| meta.definition.method entity.name.function | #62d300 | — |
| comment, punctuation.definition.comment | #1bc754 | italic |
| storage.type | #f602ea | italic |
| constant.numeric | #778dff | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #7cd131 | underline |
| entity.other.inherited-class | #7cd131 | italic underline |
| variable.parameter | #00cece | italic |
| keyword | #e70448 | — |
| storage | #e70448 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #e70448 | — |
| variable.language | #06c5c5 | — |
| meta.function entity.name.function | #61cc04 | — |
| meta.structure.dictionary.json support.type.property-name.json | #f8844e | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e79b0e | — |
| meta.structure.dictionary.json string.quoted.double.json | #038b5e | — |
| entity.other.attribute-name.class | #61a9ff | — |
| entity.other.attribute-name.id | #ff7010 | — |
| source.css entity.name.tag | #61a9ff | — |
| support.type.property-name.css | #7cd131 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #1756df | — |
| markup.quote.markdown | #e174f1 | italic |
| markup.bold.markdown | #9b0bee | bold |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #0cd894 | — |
| markup.heading, markup.heading entity.name | #018d0c | bold |
| punctuation.definition.list.begin.markdown | #3a6ff4 | — |
| markup.inline.raw | #00a8ad | — |
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}!`;
}