diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-08-17 16:52:09 +0200 |
---|---|---|
committer | Marcin Aman <marcin.aman@gmail.com> | 2021-08-25 20:53:46 +0200 |
commit | efc9f92b0ac083c73ac494c95b530305ac04115a (patch) | |
tree | bb7527f7a208e001b708688dd18a643062c94332 /plugins | |
parent | 4fa9524e52d8ff422bb355336e3810ab28ae135c (diff) | |
download | dokka-efc9f92b0ac083c73ac494c95b530305ac04115a.tar.gz dokka-efc9f92b0ac083c73ac494c95b530305ac04115a.tar.bz2 dokka-efc9f92b0ac083c73ac494c95b530305ac04115a.zip |
Dark code highlighting
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/base/src/main/resources/dokka/styles/prism.css | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/plugins/base/src/main/resources/dokka/styles/prism.css b/plugins/base/src/main/resources/dokka/styles/prism.css index 62ade383..90c4d7a9 100644 --- a/plugins/base/src/main/resources/dokka/styles/prism.css +++ b/plugins/base/src/main/resources/dokka/styles/prism.css @@ -1,3 +1,15 @@ +:root { + --keyword-color: #07a; + --property-color: #905; + --function-color: #DD4A68; +} + +:root.theme-dark { + --keyword-color: #cc7832; + --property-color: #9876aa; + --function-color: #ffc66d; +} + code .token { white-space: pre-line; } @@ -32,7 +44,7 @@ https://prismjs.com/download.html#themes=prism&languages=clike+java+javadoclike+ .token.constant, .token.symbol, .token.deleted { - color: #905; + color: var(--property-color); } .token.selector, @@ -52,19 +64,19 @@ https://prismjs.com/download.html#themes=prism&languages=clike+java+javadoclike+ .style .token.string { color: #9a6e3a; /* This background color was intended by the author of this theme. */ - background: hsla(0, 0%, 100%, .5); + /*background: hsla(0, 0%, 100%, .5);*/ } .token.atrule, .token.attr-value, .token.keyword { - color: #07a; + color: var(--keyword-color); font-size: inherit; /* to override .keyword */ } .token.function, .token.class-name { - color: #DD4A68; + color: var(--function-color); } .token.regex, @@ -87,6 +99,6 @@ https://prismjs.com/download.html#themes=prism&languages=clike+java+javadoclike+ .annotation,.control,.field,.filename,.keyword,.menupath,.property,.string,.value { color: #27282c; - color: var(--wh-color-text-bold); + /*color: var(--wh-color-text-bold);*/ font-weight: 700; }
\ No newline at end of file |