ArkTS Highlight
Publisher: penllThemes in package: 3
ArkTS / ets 语法高亮插件(内置 Dark/Light/Light+ 主题)
ArkTS / ets 语法高亮插件(内置 Dark/Light/Light+ 主题)
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 | #6A9955 | — |
| string | #CE9178 | — |
| constant.numeric | #B4CDA8 | — |
| constant.language | #4FC1FF | italic |
| constant.character.escape | #D7BA7D | — |
| variable.other.constant | #FFC66D | — |
| variable.other.enummember | #4FC1FF | — |
| variable.parameter | #94DBFD | — |
| variable.other.member | #9CDCFE | — |
| variable.language | #569CD6 | — |
| variable | #9CDCFE | — |
| keyword.control | #C586C0 | — |
| keyword.operator | #FFFFFF | — |
| keyword | #569CD6 | — |
| storage.modifier | #569CD6 | — |
| storage.type.struct | #4F9383 | — |
| storage.type.annotation | #569CD6 | — |
| storage.type | #4EC9B0 | — |
| support.class.component | #57AD9A | — |
| support.class, support.type, entity.name.type, entity.name.class | #4EC9B0 | — |
| entity.name.function, support.function | #DCDCAA | — |
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 | #008000 | — |
| string | #A31515 | — |
| constant.numeric | #098658 | — |
| constant.language | #0000FF | — |
| constant.character.escape | #EE0000 | — |
| variable.other.constant | #0070C1 | — |
| variable.other.enummember | #0070C1 | — |
| variable.parameter | #001080 | — |
| variable.other.member | #001080 | — |
| variable.language | #0000FF | — |
| variable | #001080 | — |
| keyword.control | #AF00DB | — |
| keyword.operator | #000000 | — |
| keyword | #0000FF | — |
| storage.modifier | #0000FF | — |
| storage.type.struct | #267F99 | — |
| storage.type.annotation | #0000FF | — |
| storage.type.enum | #0000FF | — |
| storage.type | #267F99 | — |
| support.class.component | #267F99 | — |
| support.class, support.type, entity.name.type, entity.name.class | #267F99 | — |
| entity.name.function, support.function | #795E26 | — |
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 |
|---|---|---|
| entity.name.function | #795E26 | — |
| keyword.control | #AF00DB | — |
| variable.other.constant | #0070C1 | — |
| entity.name.function | #795E26 | — |
| keyword.control | #AF00DB | — |
| variable.other.constant | #0070C1 | — |
| comment | #008000 | — |
| string | #A31515 | — |
| constant.numeric | #098658 | — |
| constant.language | #0000FF | — |
| constant.character.escape | #EE0000 | — |
| variable.other.constant | #0070C1 | — |
| variable.other.enummember | #0070C1 | — |
| variable.parameter | #001080 | — |
| variable.other.member | #001080 | — |
| variable.language | #0000FF | — |
| variable | #001080 | — |
| keyword.control | #AF00DB | — |
| keyword.operator | #000000 | — |
| keyword | #0000FF | — |
| storage.modifier | #0000FF | — |
| storage.type.struct | #267F99 | — |
| storage.type.annotation | #0000FF | — |
| storage.type.enum | #0000FF | — |
| storage.type | #267F99 | — |
| support.class.component | #267F99 | — |
| support.class, support.type, entity.name.type, entity.name.class | #267F99 | — |
| entity.name.function, support.function | #795E26 | — |
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}!`;
}
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}!`;
}