mirror of
https://github.com/mfocko/blog.git
synced 2024-12-22 09:41:22 +01:00
chore: add solarized light theme and bash
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
0e7d145747
commit
2ddd0a3a05
2 changed files with 97 additions and 1 deletions
|
@ -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",
|
||||
|
|
95
src/prism-themes/solarizedLight.js
Normal file
95
src/prism-themes/solarizedLight.js
Normal file
|
@ -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;
|
Loading…
Reference in a new issue