Jet theme
Publisher: TheQApeThemes in package: 2
Unofficial close to Jetbrains' color schema
Unofficial close to Jetbrains' color schema
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.block, comment.line, comment.line punctuation, comment.block punctuation | #8C8C8C | — |
| comment.block.documentation, comment.block.documentation punctuation | #8C8C8C | — |
| storage.type.class.jsdoc | #000000 | — |
| variable.other.jsdoc, entity.name.type.instance.jsdoc, comment.block.documentation entity.name.type.instance.jsdoc punctuation | #3D3D3D | — |
| constant.other.color | #ffffff | — |
| keyword, keyword.operator.new, keyword.operator.expression.of, keyword.operator.expression.in, storage.type, storage.modifier | #0033B3 | — |
| punctuation, string meta.template.expression, keyword.operator, storage.type.function.arrow | #000000 | — |
| constant.numeric | #1750EB | — |
| constant.language, support.constant, constant.character, constant.escape | #0033B3 | — |
| string | #067D17 | — |
| support.type.primitive | #0033B3 | — |
| variable.language | #0033B3 | — |
| variable.other.property, variable.other.object.property | #871094 | — |
| string.regexp, string.regexp keyword, string.regexp punctuation, string.regexp keyword.operator, string.regexp constant.character.escape | #264EFF | — |
| constant.character.escape | #0033B3 | — |
| *url*, *link*, *uri* | — | underline |
| punctuation.decorator | #914C07 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #871094 | — |
| source.yaml entity.name.tag | #871094 | — |
| text.html entity.name.tag.html, text.html punctuation.definition.tag | #0033B3 | — |
| source.js meta.function-call entity.name.function | #914C07 | — |
| source.ts meta.function-call entity.name.function | #914C07 | — |
| comment.todo | #008DDE | — |
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}!`;
}