Skip to content

Commit

Permalink
Merge pull request #339 from novusnota-forks/main
Browse files Browse the repository at this point in the history
feat: Code blocks theme update
  • Loading branch information
reveloper authored Sep 5, 2023
2 parents 6d774f6 + e83c5d6 commit f368b89
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docusaurus.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions prism-theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
// Based on palenight, default code highlighting theme of Docusaurus
// See: https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/prism-react-renderer/src/themes/palenight.ts

const theme = {
plain: {
color: "#bfc7d5",
backgroundColor: "#292d3e",
},
styles: [
{
types: ["comment"],
style: {
color: "rgb(105, 112, 152)",
fontStyle: "italic",
},
},
{
types: ["string", "inserted", "char"],
style: {
color: "rgb(195, 232, 141)",
},
},
{
types: ["number"],
style: {
color: "rgb(247, 140, 108)",
},
},
{
types: ["builtin", "function"],
style: {
color: "rgb(130, 170, 255)",
},
},
{
types: ["variable"],
style: {
color: "rgb(191, 199, 213)",
},
},
{
types: ["class-name", "attr-name"],
style: {
color: "rgb(255, 203, 107)",
},
},
{
types: ["tag", "deleted"],
style: {
color: "rgb(255, 85, 114)",
},
},
{
types: ["operator"],
style: {
color: "rgb(137, 221, 255)",
},
},
{
types: ["boolean"],
style: {
color: "rgb(235, 88, 116)",
},
},
{
types: ["constant"],
style: {
color: "rgb(245, 110, 88)",
},
},
{
types: ["keyword"],
style: {
color: "rgb(199, 146, 234)",
},
},
{
types: ["doctype"],
style: {
color: "rgb(199, 146, 234)",
fontStyle: "italic",
},
},
{
types: ["namespace", "punctuation", "selector"],
style: {
color: "rgb(178, 204, 214)",
},
},
{
types: ["url"],
style: {
color: "rgb(221, 221, 221)",
},
},
],
}

// CommonJS format, DON'T convert to ESM
module.exports = theme;

0 comments on commit f368b89

Please sign in to comment.