Skip to content

Commit 8f86f6e

Browse files
authored
Add Colour and palettes card to gallery (#663)
1 parent 7f3e7ad commit 8f86f6e

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

docs/_static/css/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@
22
div.cell_output table.dataframe {
33
font-size: 0.8em;
44
}
5+
6+
/* Gallery cards: normalise thumbnail height so cards line up regardless
7+
of the underlying image aspect ratio. Image is contained (not cropped)
8+
on a white background, centred in the slot. */
9+
.sd-card-img-top {
10+
height: 240px;
11+
width: 100%;
12+
object-fit: contain;
13+
background: #ffffff;
14+
padding: 8px;
15+
box-sizing: border-box;
16+
}
50.2 KB
Loading
395 KB
Loading

docs/gallery.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ The fluent `.pl` API, layering, and styling on the in-memory `blobs`
2424
dataset. Ideal first read.
2525
:::
2626

27+
:::{grid-item-card} Colour and palettes
28+
:link: notebooks/tutorials/color_and_palette
29+
:link-type: doc
30+
:img-top: _static/gallery/color_and_palette.png
31+
32+
How `color=` resolves, the v0.3.0 `groups` behaviour, and building
33+
perceptually well-spaced or colourblind-safe palettes with
34+
`make_palette` and `make_palette_from_data`.
35+
:::
36+
2737
::::
2838

2939
## Examples

0 commit comments

Comments
 (0)