|
| 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: [ |
| 17 | + "comment", |
| 18 | + "prolog", |
| 19 | + "doctype", |
| 20 | + "cdata", |
| 21 | + "punctuation", |
| 22 | + ], |
| 23 | + style: { |
| 24 | + color: "hsl(220, 10%, 40%)", |
| 25 | + }, |
| 26 | + }, |
| 27 | + { |
| 28 | + types: ["namespace"], |
| 29 | + style: { |
| 30 | + opacity: 0.7, |
| 31 | + }, |
| 32 | + }, |
| 33 | + { |
| 34 | + types: ["tag", "operator", "number"], |
| 35 | + style: { |
| 36 | + color: "hsl(220, 14%, 71%)", |
| 37 | + }, |
| 38 | + }, |
| 39 | + { |
| 40 | + types: ["property", "function"], |
| 41 | + style: { |
| 42 | + color: "hsl(29, 54%, 61%)", |
| 43 | + }, |
| 44 | + }, |
| 45 | + { |
| 46 | + types: ["tag-id", "selector", "atrule-id"], |
| 47 | + style: { |
| 48 | + color: "hsl(95, 38%, 62%)", |
| 49 | + }, |
| 50 | + }, |
| 51 | + { |
| 52 | + types: ["attr-name"], |
| 53 | + style: { |
| 54 | + color: "hsl(187, 47%, 55%)", |
| 55 | + }, |
| 56 | + }, |
| 57 | + { |
| 58 | + types: [ |
| 59 | + "boolean", |
| 60 | + "string", |
| 61 | + "entity", |
| 62 | + "url", |
| 63 | + "attr-value", |
| 64 | + "keyword", |
| 65 | + "control", |
| 66 | + "directive", |
| 67 | + "unit", |
| 68 | + "statement", |
| 69 | + "regex", |
| 70 | + "atrule", |
| 71 | + ], |
| 72 | + style: { |
| 73 | + color: "hsl(220, 14%, 71%)", |
| 74 | + }, |
| 75 | + }, |
| 76 | + { |
| 77 | + types: ["placeholder", "variable"], |
| 78 | + style: { |
| 79 | + color: "hsl(207, 82%, 66%)", |
| 80 | + }, |
| 81 | + }, |
| 82 | + { |
| 83 | + types: ["deleted"], |
| 84 | + style: { |
| 85 | + textDecorationLine: "line-through", |
| 86 | + }, |
| 87 | + }, |
| 88 | + { |
| 89 | + types: ["inserted"], |
| 90 | + style: { |
| 91 | + textDecorationLine: "underline", |
| 92 | + }, |
| 93 | + }, |
| 94 | + { |
| 95 | + types: ["italic"], |
| 96 | + style: { |
| 97 | + fontStyle: "italic", |
| 98 | + }, |
| 99 | + }, |
| 100 | + { |
| 101 | + types: ["important", "bold"], |
| 102 | + style: { |
| 103 | + fontWeight: "bold", |
| 104 | + }, |
| 105 | + }, |
| 106 | + { |
| 107 | + types: ["important"], |
| 108 | + style: { |
| 109 | + color: "hsl(220, 14%, 71%)", |
| 110 | + }, |
| 111 | + }, |
| 112 | + ], |
| 113 | +}; |
| 114 | + |
| 115 | +export default theme; |
0 commit comments