Gruber Darker
Publisher: Francisco SilvaThemes in package: 1
Visual Studio Code version of the Gruber Darker theme made by Alexey Kutepov a.k.a. rexim, based on the Gruber Dark theme for BBEdit by John Gruber.
Visual Studio Code version of the Gruber Darker theme made by Alexey Kutepov a.k.a. rexim, based on the Gruber Dark theme for BBEdit by John Gruber.
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 | #cc8c3c | — |
| keyword | #ffdd33 | — |
| variable.language, variable.parameter, variable.other | #9e95c7 | — |
| constant | #cc8c3c | — |
| string | #73c936 | — |
| entity.name.class | #73c936 | — |
| entity.name.function | #96a6c8 | — |
| variable.function | #96a6c8 | — |
| support.function | #96a6c8 | — |
| entity.name.type | #73c936 | — |
| meta.preprocessor | #cc8c3c | — |
| variable, variable.other.local | #e4e4ef | — |
| entity.name.tag | #9e95c7 | — |
| variable.other | #e4e4ef | — |
| entity.other.attribute-name, string.attribute | #9e95c7 | — |
| entity.name.tag.css, entity.name.tag.scss | #73c936 | — |
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}!`;
}