-
Notifications
You must be signed in to change notification settings - Fork 151
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 #192 from ryanmogk/master
added-2-new-themes-used-for-jettwave.com
- Loading branch information
Showing
4 changed files
with
220 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,6 @@ | ||
--- | ||
"prism-react-renderer": minor | ||
--- | ||
|
||
Added 2 new styles for the code viewer. light & dark mode themes using only | ||
colors found on tailwindCSS. |
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
107 changes: 107 additions & 0 deletions
107
packages/prism-react-renderer/src/themes/jettwaveDark.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,107 @@ | ||
// | ||
// dark version of code viewer styles built for https://jettwave.com | ||
// only uses colors found in default tailwindCSS => https://tailwindcss.com/docs/customizing-colors | ||
// designed by: https://github.com/ryanmogk | ||
// | ||
import type { PrismTheme } from "../types" | ||
const theme: PrismTheme = { | ||
plain: { | ||
color: "#f8fafc", | ||
backgroundColor: "#011627", | ||
}, | ||
styles: [ | ||
{ | ||
types: ["prolog"], | ||
style: { | ||
color: "#000080", | ||
}, | ||
}, | ||
{ | ||
types: ["comment"], | ||
style: { | ||
color: "#6A9955", | ||
}, | ||
}, | ||
{ | ||
types: ["builtin", "changed", "keyword", "interpolation-punctuation"], | ||
style: { | ||
color: "#569CD6", | ||
}, | ||
}, | ||
{ | ||
types: ["number", "inserted"], | ||
style: { | ||
color: "#B5CEA8", | ||
}, | ||
}, | ||
{ | ||
types: ["constant"], | ||
style: { | ||
color: "#f8fafc", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-name", "variable"], | ||
style: { | ||
color: "#9CDCFE", | ||
}, | ||
}, | ||
{ | ||
types: ["deleted", "string", "attr-value", "template-punctuation"], | ||
style: { | ||
color: "#cbd5e1", | ||
}, | ||
}, | ||
{ | ||
types: ["selector"], | ||
style: { | ||
color: "#D7BA7D", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
languages: ["markup"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#D4D4D4", | ||
}, | ||
}, | ||
{ | ||
types: ["punctuation"], | ||
languages: ["markup"], | ||
style: { | ||
color: "#808080", | ||
}, | ||
}, | ||
{ | ||
types: ["function"], | ||
style: { | ||
color: "#7dd3fc", | ||
}, | ||
}, | ||
{ | ||
types: ["class-name"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["char"], | ||
style: { | ||
color: "#D16969", | ||
}, | ||
}, | ||
], | ||
} | ||
export default theme |
105 changes: 105 additions & 0 deletions
105
packages/prism-react-renderer/src/themes/jettwaveLight.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,105 @@ | ||
// light version of code viewer styles built for https://jettwave.com | ||
// only uses colors found in default tailwindCSS => https://tailwindcss.com/docs/customizing-colors | ||
// designed by: https://github.com/ryanmogk | ||
import type { PrismTheme } from "../types" | ||
const theme: PrismTheme = { | ||
plain: { | ||
color: "#0f172a", | ||
backgroundColor: "#f1f5f9", | ||
}, | ||
styles: [ | ||
{ | ||
types: ["prolog"], | ||
style: { | ||
color: "#000080", | ||
}, | ||
}, | ||
{ | ||
types: ["comment"], | ||
style: { | ||
color: "#6A9955", | ||
}, | ||
}, | ||
{ | ||
types: ["builtin", "changed", "keyword", "interpolation-punctuation"], | ||
style: { | ||
color: "#0c4a6e", | ||
}, | ||
}, | ||
{ | ||
types: ["number", "inserted"], | ||
style: { | ||
color: "#B5CEA8", | ||
}, | ||
}, | ||
{ | ||
types: ["constant"], | ||
style: { | ||
color: "#0f172a", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-name", "variable"], | ||
style: { | ||
color: "#0c4a6e", | ||
}, | ||
}, | ||
{ | ||
types: ["deleted", "string", "attr-value", "template-punctuation"], | ||
style: { | ||
color: "#64748b", | ||
}, | ||
}, | ||
{ | ||
types: ["selector"], | ||
style: { | ||
color: "#D7BA7D", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["tag"], | ||
languages: ["markup"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#475569", | ||
}, | ||
}, | ||
{ | ||
types: ["punctuation"], | ||
languages: ["markup"], | ||
style: { | ||
color: "#808080", | ||
}, | ||
}, | ||
{ | ||
types: ["function"], | ||
style: { | ||
color: "#0e7490", | ||
}, | ||
}, | ||
{ | ||
types: ["class-name"], | ||
style: { | ||
color: "#0ea5e9", | ||
}, | ||
}, | ||
{ | ||
types: ["char"], | ||
style: { | ||
color: "#D16969", | ||
}, | ||
}, | ||
], | ||
} | ||
export default theme |