pages/style.html (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
{{ define "head" }} <link rel="stylesheet" href="{{.StylePath}}"> <style> .palette { display: flex; flex-direction: row; } .palette { display: flex; flex-direction: row; flex-wrap: wrap; margin: 2rem; justify-content: center; max-width: 60rem; div { border-radius: 50%; width: 6rem; height: 6rem; margin: 0.5rem; } span { width: 3rem; padding: 0.1rem; padding-bottom: 2rem; display: block; font-family: monospace; } } .contrasts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 60rem; div { margin: 0.25rem; span { padding: 1rem; display: block; text-align: center; } } } </style> {{ end }} {{ define "body" }} {{ template "header" . }} <h1>Style</h1> <hr> <h2>Palette</h2> <p>Based on the <a href="https://github.com/hundredrabbits/Themes/blob/master/themes/marble.svg">"marble" theme</a> from the Hundred Rabbits <a href="https://github.com/hundredrabbits/Themes/tree/master">Themes</a> project, which has a number of great minimal themes (8 colors + background).</p> <p>The <code>inv</code> colors were changed to be less monochrome and add some contrast.</p> <div class="palette"> <div style="background-color: var(--f_high);"> <span style="background-color: var(--f_high); color: var(--background);">f_high</span> </div> <div style="background-color: var(--f_med);"> <span style="background-color: var(--f_med); color: var(--background);">f_med</span> </div> <div style="background-color: var(--f_low);"> <span style="background-color: var(--f_low); color: var(--f_high);">f_low</span> </div> <div style="background-color: var(--f_inv);"> <span style="background-color: var(--f_inv); color: var(--f_high);">f_inv</span> </div> <div style="background-color: var(--b_high);"> <span style="background-color: var(--b_high); color: var(--background);">b_high</span> </div> <div style="background-color: var(--b_med);"> <span style="background-color: var(--b_med); color: var(--f_high);">b_med</span> </div> <div style="background-color: var(--b_low);"> <span style="background-color: var(--b_low); color: var(--f_high);">b_low</span> </div> <div style="background-color: var(--b_inv);"> <span style="background-color: var(--b_inv); color: var(--background);">b_inv</span> </div> </div> <hr> <h2>Contrast</h2> <div class="contrasts"> <div style="background-color: var(--b_high);"> <span style="color: var(--f_high)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_high);"> <span style="color: var(--f_med)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_high);"> <span style="color: var(--f_low)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_med);"> <span style="color: var(--f_high)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_med);"> <span style="color: var(--f_med)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_med);"> <span style="color: var(--f_low)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_low);"> <span style="color: var(--f_high)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_low);"> <span style="color: var(--f_med)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_low);"> <span style="color: var(--f_low)">Lorem ipsum dolor sit amet</span> </div> <div style="background-color: var(--b_inv); grid-column: 2;"> <span style="color: var(--f_inv)">Lorem ipsum dolor sit amet</span> </div> </div> <hr> <h2>Text</h2> <p style="color: var(--f_high)"> <strong>High</strong> - Consectetur qui minus sint voluptatem sit maxime et. Sit officia nisi rerum necessitatibus ea sapiente. Laudantium est ad dolorem consequatur repellendus ut quaerat saepe. Quo aperiam esse molestias. Maiores eos blanditiis repudiandae reprehenderit. </p> <p style="color: var(--f_med)"> <strong>Medium</strong> - Consectetur qui minus sint voluptatem sit maxime et. Sit officia nisi rerum necessitatibus ea sapiente. Laudantium est ad dolorem consequatur repellendus ut quaerat saepe. Quo aperiam esse molestias. Maiores eos blanditiis repudiandae reprehenderit. </p> <p style="color: var(--f_low)"> <strong>Low</strong> - Consectetur qui minus sint voluptatem sit maxime et. Sit officia nisi rerum necessitatibus ea sapiente. Laudantium est ad dolorem consequatur repellendus ut quaerat saepe. Quo aperiam esse molestias. Maiores eos blanditiis repudiandae reprehenderit. </p> <p> Text with an <a href="https://deserthorns.net">inline link</a> in it. </p> <p> Text with <code>inline code</code> in it. </p> <pre> // Code block public foo() { return "bar"; } </pre> {{ end }} {{ define "scripts" }} {{ end }} |