diff --git a/docusaurus.config.js b/docusaurus.config.js index 5409797..863f2d8 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,7 +1,7 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require("prism-react-renderer/themes/vsLight"); +const lightCodeTheme = require("./src/prism-themes/solarizedLight"); const darkCodeTheme = require("prism-react-renderer/themes/dracula"); const math = require("remark-math"); @@ -114,6 +114,7 @@ const config = { darkTheme: darkCodeTheme, additionalLanguages: [ "ada", + "bash", "csharp", "dot", "haskell", diff --git a/src/prism-themes/solarizedLight.js b/src/prism-themes/solarizedLight.js new file mode 100644 index 0000000..2a982ce --- /dev/null +++ b/src/prism-themes/solarizedLight.js @@ -0,0 +1,95 @@ +// @flow +// Converted automatically using ./tools/themeFromVsCode + +// import type { PrismTheme } from '../types' + +var theme/* : PrismTheme */ = { + "plain": { + "color": "#657b83", + "backgroundColor": "#fdf6e3" + }, + "styles": [ + { + "types": [ + "comment" + ], + "style": { + "color": "rgb(147, 161, 161)", + "fontStyle": "italic" + } + }, + { + "types": [ + "string" + ], + "style": { + "color": "rgb(42, 161, 152)" + } + }, + { + "types": [ + "number" + ], + "style": { + "color": "rgb(211, 54, 130)" + } + }, + { + "types": [ + "variable", + "function", + "tag" + ], + "style": { + "color": "rgb(38, 139, 210)" + } + }, + { + "types": [ + "class-name", + "keyword", + "char", + "constant", + "changed" + ], + "style": { + "color": "rgb(203, 75, 22)" + } + }, + { + "types": [ + "punctuation", + "inserted" + ], + "style": { + "color": "rgb(133, 153, 0)" + } + }, + { + "types": [ + "builtin" + ], + "style": { + "color": "rgb(181, 137, 0)" + } + }, + { + "types": [ + "attr-name" + ], + "style": { + "color": "rgb(147, 161, 161)" + } + }, + { + "types": [ + "deleted" + ], + "style": { + "color": "rgb(220, 50, 47)" + } + } + ] +}; + +module.exports = theme;