-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from gonstoll/master
Gruvbox material theme
- Loading branch information
Showing
3 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
packages/prism-react-renderer/src/themes/gruvboxMaterialDark.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// Gruvbox Material (dark) | ||
// Author: Sainnhe Park (https://github.com/sainnhe) | ||
// https://github.com/sainnhe/gruvbox-material | ||
import type { PrismTheme } from "../types" | ||
const theme: PrismTheme = { | ||
plain: { | ||
color: "#ebdbb2", | ||
backgroundColor: "#292828", | ||
}, | ||
styles: [ | ||
{ | ||
types: [ | ||
"imports", | ||
"class-name", | ||
"maybe-class-name", | ||
"constant", | ||
"doctype", | ||
"builtin", | ||
"function", | ||
], | ||
style: { | ||
color: "#d8a657", | ||
}, | ||
}, | ||
{ | ||
types: ["property-access"], | ||
style: { | ||
color: "#7daea3", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
style: { | ||
color: "#e78a4e", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-name", "char", "url", "regex"], | ||
style: { | ||
color: "#a9b665", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-value", "string"], | ||
style: { | ||
color: "#89b482", | ||
}, | ||
}, | ||
{ | ||
types: ["comment", "prolog", "cdata", "operator", "inserted"], | ||
style: { | ||
color: "#a89984", | ||
}, | ||
}, | ||
{ | ||
types: [ | ||
"delimiter", | ||
"boolean", | ||
"keyword", | ||
"selector", | ||
"important", | ||
"atrule", | ||
"property", | ||
"variable", | ||
"deleted", | ||
], | ||
style: { | ||
color: "#ea6962", | ||
}, | ||
}, | ||
{ | ||
types: ["entity", "number", "symbol"], | ||
style: { | ||
color: "#d3869b", | ||
}, | ||
}, | ||
], | ||
} | ||
export default theme |
78 changes: 78 additions & 0 deletions
78
packages/prism-react-renderer/src/themes/gruvboxMaterialLight.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Gruvbox Material (light) | ||
// Author: Sainnhe Park (https://github.com/sainnhe) | ||
// https://github.com/sainnhe/gruvbox-material | ||
import type { PrismTheme } from "../types" | ||
const theme: PrismTheme = { | ||
plain: { | ||
color: "#654735", | ||
backgroundColor: "#f9f5d7", | ||
}, | ||
styles: [ | ||
{ | ||
types: [ | ||
"delimiter", | ||
"boolean", | ||
"keyword", | ||
"selector", | ||
"important", | ||
"atrule", | ||
"property", | ||
"variable", | ||
"deleted", | ||
], | ||
style: { | ||
color: "#af2528", | ||
}, | ||
}, | ||
{ | ||
types: [ | ||
"imports", | ||
"class-name", | ||
"maybe-class-name", | ||
"constant", | ||
"doctype", | ||
"builtin", | ||
], | ||
style: { | ||
color: "#b4730e", | ||
}, | ||
}, | ||
{ | ||
types: ["string", "attr-value"], | ||
style: { | ||
color: "#477a5b", | ||
}, | ||
}, | ||
{ | ||
types: ["property-access"], | ||
style: { | ||
color: "#266b79", | ||
}, | ||
}, | ||
{ | ||
types: ["function", "attr-name", "char", "url"], | ||
style: { | ||
color: "#72761e", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
style: { | ||
color: "#b94c07", | ||
}, | ||
}, | ||
{ | ||
types: ["comment", "prolog", "cdata", "operator", "inserted"], | ||
style: { | ||
color: "#a89984", | ||
}, | ||
}, | ||
{ | ||
types: ["entity", "number", "symbol"], | ||
style: { | ||
color: "#924f79", | ||
}, | ||
}, | ||
], | ||
} | ||
export default theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters