Jin Code Themes - Zen Collection
Publisher: JijinThemes in package: 5
Thoughtfully crafted minimal light and dark theme for peaceful, distraction-free coding
Thoughtfully crafted minimal light and dark theme for peaceful, distraction-free coding
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 |
|---|---|---|
| meta.object-literal.key, meta.object.member, meta.objectliteral meta.object.member, meta.var.expr meta.object-literal.key, variable.object.property, support.variable.property, variable.other.property, variable.other.object.property | #FF9944 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template | #BAE67E | — |
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json | #FF9944 | — |
| comment | #5c6773 | italic |
| entity.name.function | #FFD580 | bold |
| keyword | #FF9944 | |
| variable.language.this, variable.language.super | #5CCFE6 | italic |
| constant.numeric | #73d0ff | |
| support.class.console, support.function.console | #F27983 |
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}!`;
}