|
| 1 | +/* |
| 2 | + Adapted from the Prism One Dark Theme |
| 3 | + https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-dark.css |
| 4 | + Created by Marc Rousavy (@mrousavy) on 26.9.2023 |
| 5 | +*/ |
| 6 | +import type { PrismTheme } from "../types" |
| 7 | + |
| 8 | +const theme: PrismTheme = { |
| 9 | + plain: { |
| 10 | + backgroundColor: "hsl(220, 13%, 18%)", |
| 11 | + color: "hsl(220, 14%, 71%)", |
| 12 | + textShadow: "0 1px rgba(0, 0, 0, 0.3)", |
| 13 | + }, |
| 14 | + styles: [ |
| 15 | + { |
| 16 | + types: ["comment", "prolog", "cdata"], |
| 17 | + style: { |
| 18 | + color: "hsl(220, 10%, 40%)", |
| 19 | + }, |
| 20 | + }, |
| 21 | + { |
| 22 | + types: ["doctype", "punctuation", "entity"], |
| 23 | + style: { |
| 24 | + color: "hsl(220, 14%, 71%)", |
| 25 | + }, |
| 26 | + }, |
| 27 | + { |
| 28 | + types: [ |
| 29 | + "attr-name", |
| 30 | + "class-name", |
| 31 | + "maybe-class-name", |
| 32 | + "boolean", |
| 33 | + "constant", |
| 34 | + "number", |
| 35 | + "atrule", |
| 36 | + ], |
| 37 | + style: { color: "hsl(29, 54%, 61%)" }, |
| 38 | + }, |
| 39 | + { |
| 40 | + types: ["keyword"], |
| 41 | + style: { color: "hsl(286, 60%, 67%)" }, |
| 42 | + }, |
| 43 | + { |
| 44 | + types: ["property", "tag", "symbol", "deleted", "important"], |
| 45 | + style: { |
| 46 | + color: "hsl(355, 65%, 65%)", |
| 47 | + }, |
| 48 | + }, |
| 49 | + |
| 50 | + { |
| 51 | + types: [ |
| 52 | + "selector", |
| 53 | + "string", |
| 54 | + "char", |
| 55 | + "builtin", |
| 56 | + "inserted", |
| 57 | + "regex", |
| 58 | + "attr-value", |
| 59 | + ], |
| 60 | + style: { |
| 61 | + color: "hsl(95, 38%, 62%)", |
| 62 | + }, |
| 63 | + }, |
| 64 | + { |
| 65 | + types: ["variable", "operator", "function"], |
| 66 | + style: { |
| 67 | + color: "hsl(207, 82%, 66%)", |
| 68 | + }, |
| 69 | + }, |
| 70 | + { |
| 71 | + types: ["url"], |
| 72 | + style: { |
| 73 | + color: "hsl(187, 47%, 55%)", |
| 74 | + }, |
| 75 | + }, |
| 76 | + { |
| 77 | + types: ["deleted"], |
| 78 | + style: { |
| 79 | + textDecorationLine: "line-through", |
| 80 | + }, |
| 81 | + }, |
| 82 | + { |
| 83 | + types: ["inserted"], |
| 84 | + style: { |
| 85 | + textDecorationLine: "underline", |
| 86 | + }, |
| 87 | + }, |
| 88 | + { |
| 89 | + types: ["italic"], |
| 90 | + style: { |
| 91 | + fontStyle: "italic", |
| 92 | + }, |
| 93 | + }, |
| 94 | + { |
| 95 | + types: ["important", "bold"], |
| 96 | + style: { |
| 97 | + fontWeight: "bold", |
| 98 | + }, |
| 99 | + }, |
| 100 | + { |
| 101 | + types: ["important"], |
| 102 | + style: { |
| 103 | + color: "hsl(220, 14%, 71%)", |
| 104 | + }, |
| 105 | + }, |
| 106 | + ], |
| 107 | +} |
| 108 | + |
| 109 | +export default theme |
0 commit comments