theme-gruvbox
Publisher: saviorisdeadThemes in package: 1
Gruvbox theme adaptation for VSCode
Gruvbox theme adaptation for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #EBDBB2 | — |
| comment | #928374 | italic |
| string | #B8BB26 | — |
| constant.numeric | #e577b1 | — |
| constant.language | #e577b1 | — |
| constant.character, constant.other | #e577b1 | — |
| variable | #83a598 | |
| keyword | #fb4934 | — |
| storage | #fb4934 | |
| storage.type | #83a598 | — |
| entity.name.class | #b8bb26 | underline |
| entity.other.inherited-class | #b8bb26 | italic underline |
| entity.name.function | #b8bb26 | |
| variable.parameter | #FD971F | — |
| entity.name.tag | #8ec07c | |
| entity.other.attribute-name | #83a598 | |
| support.function | #83a598 | |
| support.constant | #83a598 | |
| support.type, support.class | #fb4934 | — |
| invalid | — | |
| invalid.deprecated | — | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #fb4934 | — |
| markup.inserted | #6aba26 | — |
| markup.changed | #ebdbb2 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #fb4934 | |
| support.function.general.tex | #8ec07c | |
| punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex | #fb4934 | |
| meta.group.braces.tex | #bdae93 | |
| string.other.math.tex | #b8bb26 | |
| variable.parameter.function.latex | #fabd2f | |
| text.tex.latex constant.other.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex | #83a598 | |
| keyword.control.label.latex, text.tex.latex constant.other.general.math.tex | #83a598 | |
| variable.parameter.definition.label.latex | #D01F1E | |
| support.function.be.latex | #fe8019 | |
| support.function.section.latex | #b8bb26 | |
| entity.name.section.markdown | #fb4934 | — |
| punctuation.definition.heading.markdown | #83a598 | — |
| markup.raw.inline.markdown | #b8ba26 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #83a598 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #83a598 | — |
| punctuation.definition.metadata.markdown | #83a598 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #83a598 | italic |
| markup.bold.markdown, markup.italic.markdown | #83a598 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #83a598 | — |
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}!`;
}