Skip to content

Commit 407e0cd

Browse files
authored
Merge pull request #229 from gonstoll/master
Gruvbox material theme
2 parents f27b612 + b811a68 commit 407e0cd

File tree

3 files changed

+159
-0
lines changed

3 files changed

+159
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Gruvbox Material (dark)
2+
// Author: Sainnhe Park (https://github.com/sainnhe)
3+
// https://github.com/sainnhe/gruvbox-material
4+
import type { PrismTheme } from "../types"
5+
const theme: PrismTheme = {
6+
plain: {
7+
color: "#ebdbb2",
8+
backgroundColor: "#292828",
9+
},
10+
styles: [
11+
{
12+
types: [
13+
"imports",
14+
"class-name",
15+
"maybe-class-name",
16+
"constant",
17+
"doctype",
18+
"builtin",
19+
"function",
20+
],
21+
style: {
22+
color: "#d8a657",
23+
},
24+
},
25+
{
26+
types: ["property-access"],
27+
style: {
28+
color: "#7daea3",
29+
},
30+
},
31+
{
32+
types: ["tag"],
33+
style: {
34+
color: "#e78a4e",
35+
},
36+
},
37+
{
38+
types: ["attr-name", "char", "url", "regex"],
39+
style: {
40+
color: "#a9b665",
41+
},
42+
},
43+
{
44+
types: ["attr-value", "string"],
45+
style: {
46+
color: "#89b482",
47+
},
48+
},
49+
{
50+
types: ["comment", "prolog", "cdata", "operator", "inserted"],
51+
style: {
52+
color: "#a89984",
53+
},
54+
},
55+
{
56+
types: [
57+
"delimiter",
58+
"boolean",
59+
"keyword",
60+
"selector",
61+
"important",
62+
"atrule",
63+
"property",
64+
"variable",
65+
"deleted",
66+
],
67+
style: {
68+
color: "#ea6962",
69+
},
70+
},
71+
{
72+
types: ["entity", "number", "symbol"],
73+
style: {
74+
color: "#d3869b",
75+
},
76+
},
77+
],
78+
}
79+
export default theme
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Gruvbox Material (light)
2+
// Author: Sainnhe Park (https://github.com/sainnhe)
3+
// https://github.com/sainnhe/gruvbox-material
4+
import type { PrismTheme } from "../types"
5+
const theme: PrismTheme = {
6+
plain: {
7+
color: "#654735",
8+
backgroundColor: "#f9f5d7",
9+
},
10+
styles: [
11+
{
12+
types: [
13+
"delimiter",
14+
"boolean",
15+
"keyword",
16+
"selector",
17+
"important",
18+
"atrule",
19+
"property",
20+
"variable",
21+
"deleted",
22+
],
23+
style: {
24+
color: "#af2528",
25+
},
26+
},
27+
{
28+
types: [
29+
"imports",
30+
"class-name",
31+
"maybe-class-name",
32+
"constant",
33+
"doctype",
34+
"builtin",
35+
],
36+
style: {
37+
color: "#b4730e",
38+
},
39+
},
40+
{
41+
types: ["string", "attr-value"],
42+
style: {
43+
color: "#477a5b",
44+
},
45+
},
46+
{
47+
types: ["property-access"],
48+
style: {
49+
color: "#266b79",
50+
},
51+
},
52+
{
53+
types: ["function", "attr-name", "char", "url"],
54+
style: {
55+
color: "#72761e",
56+
},
57+
},
58+
{
59+
types: ["tag"],
60+
style: {
61+
color: "#b94c07",
62+
},
63+
},
64+
{
65+
types: ["comment", "prolog", "cdata", "operator", "inserted"],
66+
style: {
67+
color: "#a89984",
68+
},
69+
},
70+
{
71+
types: ["entity", "number", "symbol"],
72+
style: {
73+
color: "#924f79",
74+
},
75+
},
76+
],
77+
}
78+
export default theme

packages/prism-react-renderer/src/themes/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ export { default as jettwaveDark } from "./jettwaveDark"
1616
export { default as jettwaveLight } from "./jettwaveLight"
1717
export { default as oneDark } from "./oneDark"
1818
export { default as oneLight } from "./oneLight"
19+
export { default as gruvboxMaterialDark } from "./gruvboxMaterialDark"
20+
export { default as gruvboxMaterialLight } from "./gruvboxMaterialLight"

0 commit comments

Comments
 (0)