One Piece Theme
Publisher: Leonardo TozoniThemes in package: 2
One Piece inspired themes - Set sail on the Grand Line with vibrant dark and light themes featuring treasure gold, ocean blues, and adventure colors!
One Piece inspired themes - Set sail on the Grand Line with vibrant dark and light themes featuring treasure gold, ocean blues, and adventure colors!
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, punctuation.definition.comment | #7A8B99 | italic |
| string | #0D9488 | — |
| constant.numeric | #D97706 | — |
| constant.language | #D97706 | — |
| constant.character, constant.other | #D97706 | — |
| variable | #DC2626 | — |
| keyword | #9333EA | — |
| storage | #9333EA | — |
| storage.type | #0B5394 | — |
| entity.name.class, entity.name.type.class | #0B5394 | — |
| entity.name.function | #0B5394 | — |
| variable.parameter | #DC2626 | — |
| entity.name.tag | #DC2626 | — |
| entity.other.attribute-name | #D97706 | — |
| support.function | #0B5394 | — |
| support.constant | #D97706 | — |
| support.type, support.class | #0B5394 | — |
| invalid | #EF4444 | — |
| markup.deleted | #EF4444 | — |
| markup.changed | #D97706 | — |
| markup.inserted | #10B981 | — |
| markup.heading | #DC2626 | — |
| markup.bold | #D97706 | bold |
| markup.italic | #9333EA | italic |
| markup.underline.link | #0B5394 | — |
| markup.quote | #7A8B99 | — |
| markup.inline.raw, markup.fenced_code.block | #0D9488 | — |
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}!`;
}