|
| 1 | +/* Assign base colors for the PyData theme */ |
| 2 | +:root { |
| 3 | + /* Primary */ |
| 4 | + --pst-teal-50: #f4fbfc; |
| 5 | + --pst-teal-100: #e9f6f8; |
| 6 | + --pst-teal-200: #d0ecf1; |
| 7 | + --pst-teal-300: #abdde6; |
| 8 | + --pst-teal-400: #3fb1c5; |
| 9 | + --pst-teal-500: #0a7d91; |
| 10 | + --pst-teal-600: #085d6c; |
| 11 | + --pst-teal-700: #064752; |
| 12 | + --pst-teal-800: #042c33; |
| 13 | + --pst-teal-900: #021b1f; |
| 14 | + |
| 15 | + /* Secondary */ |
| 16 | + --pst-violet-50: #f4eefb; |
| 17 | + --pst-violet-100: #e0c7ff; |
| 18 | + --pst-violet-200: #d5b4fd; |
| 19 | + --pst-violet-300: #b780ff; |
| 20 | + --pst-violet-400: #9c5ffd; |
| 21 | + --pst-violet-500: #8045e5; |
| 22 | + --pst-violet-600: #6432bd; |
| 23 | + --pst-violet-700: #4b258f; |
| 24 | + --pst-violet-800: #341a61; |
| 25 | + --pst-violet-900: #1e0e39; |
| 26 | + |
| 27 | + /* Accent */ |
| 28 | + --pst-pink-50: #fcf8fd; |
| 29 | + --pst-pink-100: #fcf0fa; |
| 30 | + --pst-pink-200: #f8dff5; |
| 31 | + --pst-pink-300: #f3c7ee; |
| 32 | + --pst-pink-400: #e47fd7; |
| 33 | + --pst-pink-500: #c132af; |
| 34 | + --pst-pink-600: #912583; |
| 35 | + --pst-pink-700: #6e1c64; |
| 36 | + --pst-pink-800: #46123f; |
| 37 | + --pst-pink-900: #2b0b27; |
| 38 | + |
| 39 | + /* Default shades */ |
| 40 | + --pst-gray-50: #f9f9fa; |
| 41 | + --pst-gray-100: #f3f4f5; |
| 42 | + --pst-gray-200: #e5e7ea; |
| 43 | + --pst-gray-300: #d1d5da; |
| 44 | + --pst-gray-400: #9ca4af; |
| 45 | + --pst-gray-500: #677384; |
| 46 | + --pst-gray-600: #48566b; |
| 47 | + --pst-gray-700: #29313d; |
| 48 | + --pst-gray-800: #222832; |
| 49 | + --pst-gray-900: #14181e; |
| 50 | + |
| 51 | + --pst-white: #ffffff; |
| 52 | + --pst-black: var(--pst-gray-900); |
| 53 | + |
| 54 | + --pst-text-base-light: #ced6dd; |
| 55 | +} |
| 56 | + |
| 57 | +/******************************************************************************* |
| 58 | +* write the color rules for each theme (default=light / slate=dark) |
| 59 | +*/ |
| 60 | + |
| 61 | +[data-md-color-scheme="default"] { |
| 62 | + --pst-color-primary: var(--pst-teal-500); |
| 63 | + --pst-color-primary-bg: var(--pst-teal-200); |
| 64 | + --pst-color-secondary: var(--pst-violet-500); |
| 65 | + --pst-color-secondary-bg: var(--pst-violet-100); |
| 66 | + --pst-color-accent: var(--pst-pink-500); |
| 67 | + --pst-color-accent-bg: var(--pst-pink-200); |
| 68 | + --pst-color-info: #276be9; |
| 69 | + --pst-color-info-bg: #dce7fc; |
| 70 | + --pst-color-warning: #f66a0a; |
| 71 | + --pst-color-warning-bg: #f8e3d0; |
| 72 | + --pst-color-success: #00843f; |
| 73 | + --pst-color-success-bg: #d6ece1; |
| 74 | + --pst-color-attention: var(--pst-color-warning); |
| 75 | + --pst-color-attention-bg: var(--pst-color-warning-bg); |
| 76 | + --pst-color-danger: #d72d47; |
| 77 | + --pst-color-danger-bg: #f9e1e4; |
| 78 | + --pst-color-text-base: var(--pst-gray-800); |
| 79 | + --pst-color-text-muted: var(--pst-gray-600); |
| 80 | + --pst-color-shadow: rgba(0, 0, 0, 0.1); |
| 81 | + --pst-color-border: var(--pst-gray-300); |
| 82 | + --pst-color-border-muted: rgba(23, 23, 26, 0.2); |
| 83 | + --pst-color-blockquote-notch: var(--pst-gray-500); |
| 84 | + --pst-color-inline-code: var(--pst-pink-600); |
| 85 | + --pst-color-inline-code-links: var(--pst-teal-600); |
| 86 | + --pst-color-target: #f3cf95; |
| 87 | + --pst-color-table: var(--pst-gray-900); |
| 88 | + --pst-color-table-row-hover-bg: var(--pst-violet-200); |
| 89 | + --pst-color-table-inner-border: var(--pst-gray-200); |
| 90 | + --pst-color-background: var(--pst-white); |
| 91 | + --pst-color-on-background: var(--pst-white); |
| 92 | + --pst-color-surface: var(--pst-gray-100); |
| 93 | + --pst-color-on-surface: var(--pst-gray-800); |
| 94 | + |
| 95 | + --pst-color-heading: var(--pst-color-text-base); |
| 96 | + --pst-color-link: var(--pst-color-primary); |
| 97 | + --pst-color-link-hover: var(--pst-color-secondary); |
| 98 | + --pst-color-table-outer-border: var(--pst-color-surface); |
| 99 | + --pst-color-table-heading-bg: var(--pst-color-surface); |
| 100 | + --pst-color-table-row-zebra-high-bg: var(--pst-color-on-background); |
| 101 | + --pst-color-table-row-zebra-low-bg: var(--pst-color-surface); |
| 102 | +} |
| 103 | +[data-md-color-scheme="default"] img[src$="#only-dark"], |
| 104 | +[data-md-color-scheme="default"] img[src$="#gh-dark-mode-only"] { |
| 105 | + display: none; |
| 106 | +} |
| 107 | + |
| 108 | +[data-md-color-scheme="slate"] { |
| 109 | + --pst-color-primary: var(--pst-teal-400); |
| 110 | + --pst-color-primary-bg: var(--pst-teal-800); |
| 111 | + --pst-color-secondary: var(--pst-violet-400); |
| 112 | + --pst-color-secondary-bg: var(--pst-violet-800); |
| 113 | + --pst-color-accent: var(--pst-pink-400); |
| 114 | + --pst-color-accent-bg: var(--pst-pink-800); |
| 115 | + --pst-color-info: #79a3f2; |
| 116 | + --pst-color-info-bg: #06245d; |
| 117 | + --pst-color-warning: #ff9245; |
| 118 | + --pst-color-warning-bg: #652a02; |
| 119 | + --pst-color-success: #5fb488; |
| 120 | + --pst-color-success-bg: #002f17; |
| 121 | + --pst-color-attention: var(--pst-color-warning); |
| 122 | + --pst-color-attention-bg: var(--pst-color-warning-bg); |
| 123 | + --pst-color-danger: #e78894; |
| 124 | + --pst-color-danger-bg: #4e111b; |
| 125 | + --pst-color-text-base: var(--pst-text-base-light); |
| 126 | + --pst-color-text-muted: var(--pst-gray-400); |
| 127 | + --pst-color-shadow: rgba(0, 0, 0, 0.2); |
| 128 | + --pst-color-border: var(--pst-gray-600); |
| 129 | + --pst-color-border-muted: var(--pst-gray-700); |
| 130 | + --pst-color-blockquote-notch: var(--pst-gray-400); |
| 131 | + --pst-color-inline-code: var(--pst-pink-300); |
| 132 | + --pst-color-inline-code-links: var(--pst-teal-400); |
| 133 | + --pst-color-target: #675c04; |
| 134 | + --pst-color-table: var(--pst-white); |
| 135 | + --pst-color-table-row-hover-bg: var(--pst-violet-700); |
| 136 | + --pst-color-table-inner-border: #364150; |
| 137 | + --pst-color-background: var(--pst-gray-900); |
| 138 | + --pst-color-on-background: var(--pst-gray-800); |
| 139 | + --pst-color-surface: var(--pst-gray-700); |
| 140 | + --pst-color-on-surface: var(--pst-gray-100); |
| 141 | + |
| 142 | + --pst-color-heading: var(--pst-color-text-base); |
| 143 | + --pst-color-link: var(--pst-color-primary); |
| 144 | + --pst-color-link-hover: var(--pst-color-secondary); |
| 145 | + --pst-color-table-outer-border: var(--pst-color-surface); |
| 146 | + --pst-color-table-heading-bg: var(--pst-color-surface); |
| 147 | + --pst-color-table-row-zebra-high-bg: var(--pst-color-on-background); |
| 148 | + --pst-color-table-row-zebra-low-bg: var(--pst-color-surface); |
| 149 | +} |
| 150 | +[data-md-color-scheme="slate"] img[src$="#only-light"], |
| 151 | +[data-md-color-scheme="slate"] img[src$="#gh-light-mode-only"] { |
| 152 | + display: none; |
| 153 | +} |
0 commit comments