Grok Dark Theme
Publisher: Joseph KingThemes in package: 1
A dark theme inspired by Grok 3 from xAI, featuring black, white, grey, and AI-themed accents.
A dark theme inspired by Grok 3 from xAI, featuring black, white, grey, and AI-themed accents.
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 | #A0A0A0 | — |
| keyword | #4EC9B0 | — |
| string | #569CD6 | — |
| number | #D69D85 | — |
| variable | #D4D4D4 | — |
| function | #569CD6 | — |
| constant | #C586C0 | — |
| entity.name.type | #DCDCAA | — |
| operator | #D4D4D4 | — |
| punctuation | #D4D4D4 | — |
| entity.name.tag | #D69D85 | — |
| entity.other.attribute-name | #4EC9B0 | — |
| meta.tag.attribute-value | #569CD6 | — |
| meta.object-literal.key | #D4D4D4 | — |
| string.json | #B5CEA8 | — |
| number.json | #B5CEA8 | — |
| constant.language.json | #B5CEA8 | — |
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}!`;
}