summaryrefslogtreecommitdiffstats
path: root/doc/_templates/styles.html
blob: 137fa248e773718d7ce07c79f4415a9a0eb934e6 (plain)
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
{% extends "layout.html" %}

{% block htmltitle %}<title>Styles{{ titlesuffix }}</title>{% endblock %}

{% block body %}
<style>
.style-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
h2 {
    margin-top: 2em;
}
.style-gallery h3 {
    margin-bottom: 0.1em;
}
.style-gallery pre {
    background-color: inherit;
}
</style>
{{ body }}

<h1>Styles</h1>

<p>Pygments comes with the following builtin styles.
For more information about styles refer to <a href="{{ pathto('docs/styles') }}">the documentation</a>.
</p>

<div class=style-gallery>
{% for style in styles_aa %}
    <div>
    <h3 id="{{style.name}}">{{style.name}}</h3>
    {{style.html|safe}}
    </div>
{% endfor %}
</div>

<h2>Styles with a lower contrast</h2>
<p>
The following styles do not meet the <a href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html">WCAG 2.1 AA contrast minimum</a>,
so they might be difficult to read for people with suboptimal vision.
If you want your highlighted code to be well readable for other people, you
should use one of the earlier styles instead.
</p>
<div class=style-gallery>
    {% for style in styles_sub_aa %}
    <div>
    <h3 id="{{style.name}}">{{style.name}}</h3>
    {{style.html|safe}}
    </div>
    {% endfor %}
</div>

{% endblock %}