You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
similar in spirit to feature-format matrix comparison
but there are so many feature-element combinations
that it's not feasible to demonstrate them individually
the aim is to have full-enough coverage of all feature-element options over
a small number of visual tests
Copy file name to clipboardExpand all lines: tests/docs/brand-yaml/kitchen-sink/brand-typography.qmd
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,19 @@ format:
14
14
15
15
## heading-2 is gothic a1 italic 700
16
16
17
-
Paragraph is blue eb garamond normal 400 with line-height 0.9; currently we get a sass compilation error if we set base.size to an absolute length unit.
17
+
Paragraph is 12pt blue eb garamond normal 400 with line-height 0.9.
18
18
19
-
Here's a monospace inline in space mono normal 700 20px: `fib(90) // in red on white`\
20
-
and here's a monospace block in space mono normal 400 8pt with line-height 2:
19
+
Here's a monospace inline in 20px space mono normal 700, red on white: `fib(90)`\
20
+
and here's a monospace block in 8pt space mono normal 400, white on dark green, with line-height 2:
21
21
22
+
:::{.sourceCode}
23
+
```
24
+
const fib = num => num < 2 ? num : fib(num-1) + fib(num - 2);
25
+
console.log(fib(12));
26
+
```
27
+
:::
28
+
29
+
Syntax highlighting makes colors more complicated:
22
30
```javascript
23
31
constfib=num=> num <2? num :fib(num-1) +fib(num -2);
We're setting `color` and `background-color` on `brand.typography.monospace-inline` and `.monospace-block` to named colors in the `brand.color.palette`.
15
+
16
+
Raw inlines `3 * fib(5)` are displayed in green on yellow.
17
+
18
+
Raw blocks are displayed in pink grey on dark green.
19
+
20
+
:::{.sourceCode}
21
+
```
22
+
const fib = num => num < 2 ? num : fib(num-1) + fib(num - 2);
23
+
console.log(fib(12))
24
+
```
25
+
:::
26
+
27
+
Syntax highlighting complicates things.
28
+
29
+
```javascript
30
+
constfib=num=> num <2? num :fib(num-1) +fib(num -2);
0 commit comments