summaryrefslogtreecommitdiffstats
path: root/~santisoler/assets/fira_code_v5.2/specimen.html
blob: 6dce70b9b8a8befc6e09ddb6157d26999e6e2a36 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>Fira Code Specimen</title>

  <link rel="stylesheet" href="fira_code.css">
  <style>
    body { font: 14px/1.5em "Fira Code"; }
    .code {
      font-feature-settings: "calt" 1;  /* Enable ligatures for IE 10+, Edge */
      text-rendering: optimizeLegibility; /* Force ligatures for Webkit, Blink, Gecko */
      width: 30em;
      margin: 5em auto;
      white-space: pre-wrap;
      word-break: break-all;
    }
    .light { font-weight: 300; }
    .regular { font-weight: 400; }
    .medium { font-weight: 500; }
    .semibold { font-weight: 600; }
    .bold { font-weight: 700; }
    .variable { font-family: 'Fira Code VF'; font-variation-settings: 'wght' 400; }
    i { font-style: normal; color: #c33; }
    b { font-weight: inherit; color: #c33; }
  </style>
  <script type="text/javascript">
    function onWeightChange(weight) {
      // code_variable.style['font-weight'] = weight;
      code_variable.style['font-variation-settings'] = "'wght' " + weight;
      span_wght.innerText = weight;
    }
  </script>
<body>

<div class="code light"><b># Fira Code Light</b>

take = (n, [x, <i>...</i>xs]:list) <i>--&gt;</i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>


<div class="code regular"><b># Fira Code Regular</b>

take = (n, [x, <i>...</i>xs]:list) <i>--></i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>


<div class="code medium"><b># Fira Code Medium</b>

take = (n, [x, <i>...</i>xs]:list) <i>--&gt;</i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>


<div class="code semibold"><b># Fira Code SemiBold</b>

take = (n, [x, <i>...</i>xs]:list) <i>--&gt;</i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>


<div class="code bold"><b># Fira Code Bold</b>

take = (n, [x, <i>...</i>xs]:list) <i>--&gt;</i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>

<div id="code_variable" class="code variable"><b># Fira Code Variable</b>

<input type="range" min="300" max="700" value="400" step="10" style="width: 300px;" oninput="onWeightChange(this.value)" onchange="onWeightChange(this.value)"> <span id="span_wght">400</span>

take = (n, [x, <i>...</i>xs]:list) <i>--&gt;</i>
  | n <i>&lt;=</i> 0     <i>=&gt;</i> []
  | empty list <i>=&gt;</i> []
  | otherwise  <i>=&gt;</i> [x] <i>++</i> take n-1, xs

last3 = reverse <i>&gt;&gt;</i> take 3 <i>&gt;&gt;</i> reverse</div>
Un proyecto texto-plano.xyz