-
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.
- Loading branch information
Showing
1 changed file
with
115 additions
and
0 deletions.
There are no files selected for viewing
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,115 @@ | ||
/* | ||
Adapted from the Prism One Dark Theme | ||
https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-dark.css | ||
Created by Marc Rousavy (@mrousavy) on 26.9.2023 | ||
*/ | ||
import type { PrismTheme } from "../types" | ||
|
||
const theme: PrismTheme = { | ||
plain: { | ||
backgroundColor: "hsl(220, 13%, 18%)", | ||
color: "hsl(220, 14%, 71%)", | ||
textShadow: "0 1px rgba(0, 0, 0, 0.3)", | ||
}, | ||
styles: [ | ||
{ | ||
types: [ | ||
Check failure on line 16 in packages/prism-react-renderer/src/themes/oneDark.ts GitHub Actions / Lint and Type-check
|
||
"comment", | ||
"prolog", | ||
"doctype", | ||
"cdata", | ||
"punctuation", | ||
], | ||
style: { | ||
color: "hsl(220, 10%, 40%)", | ||
}, | ||
}, | ||
{ | ||
types: ["namespace"], | ||
style: { | ||
opacity: 0.7, | ||
}, | ||
}, | ||
{ | ||
types: ["tag", "operator", "number"], | ||
style: { | ||
color: "hsl(220, 14%, 71%)", | ||
}, | ||
}, | ||
{ | ||
types: ["property", "function"], | ||
style: { | ||
color: "hsl(29, 54%, 61%)", | ||
}, | ||
}, | ||
{ | ||
types: ["tag-id", "selector", "atrule-id"], | ||
style: { | ||
color: "hsl(95, 38%, 62%)", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-name"], | ||
style: { | ||
color: "hsl(187, 47%, 55%)", | ||
}, | ||
}, | ||
{ | ||
types: [ | ||
"boolean", | ||
"string", | ||
"entity", | ||
"url", | ||
"attr-value", | ||
"keyword", | ||
"control", | ||
"directive", | ||
"unit", | ||
"statement", | ||
"regex", | ||
"atrule", | ||
], | ||
style: { | ||
color: "hsl(220, 14%, 71%)", | ||
}, | ||
}, | ||
{ | ||
types: ["placeholder", "variable"], | ||
style: { | ||
color: "hsl(207, 82%, 66%)", | ||
}, | ||
}, | ||
{ | ||
types: ["deleted"], | ||
style: { | ||
textDecorationLine: "line-through", | ||
}, | ||
}, | ||
{ | ||
types: ["inserted"], | ||
style: { | ||
textDecorationLine: "underline", | ||
}, | ||
}, | ||
{ | ||
types: ["italic"], | ||
style: { | ||
fontStyle: "italic", | ||
}, | ||
}, | ||
{ | ||
types: ["important", "bold"], | ||
style: { | ||
fontWeight: "bold", | ||
}, | ||
}, | ||
{ | ||
types: ["important"], | ||
style: { | ||
color: "hsl(220, 14%, 71%)", | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default theme; | ||