diff options
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 |