ZED One Theme
Publisher: ARRRRNYThemes in package: 2
ZED's style, VS Code's compromise.
ZED's style, VS Code's compromise.
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 |
|---|---|---|
| keyword.control.import, storage.modifier, storage.type, keyword.control | #B477CF | — |
| string, text.literal, string.quoted.double | #A1C181 | — |
| variable, variable.language, variable.parameter | #a9afbcff | — |
| constant.numeric, constant.language, constant.character | #BF956A | — |
| entity.name.function | #74ADE8 | — |
| meta.function-call, meta.method-call | #D07277 | — |
| entity.name.class, entity.name.type, support.class | #6EB4BF | — |
| punctuation.bracket, punctuation.definition.block, punctuation.definition.bracket, punctuation.definition.parameters | #6EB4BF | — |
| comment | #5D636F | italic |
| punctuation.definition.tag, entity.name.tag | #74ADE8 | — |
| meta.decorator, entity.name.function.decorator | #74ADE8 | — |
| storage.type.function, keyword.operator | #6EB4BF | — |
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}!`;
}