Skip to content

Commit aa736ab

Browse files
committed
Bento doc
1 parent 9c589e8 commit aa736ab

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Bento
3+
description: Use the river component to introduce a feature using a type and media pairing.
4+
---
5+
6+
import ComponentLayout from '../../../src/layouts/component-layout'
7+
export default ComponentLayout
8+
9+
As its name suggest this component is inspired by the Japanese bento lunch boxes. Bentos are an assortment of boxes arranged in a neat grid that forms a delightful unit. The intricate and harmonious pairing of contents makes a successful bento. The idea is to provide the most compelling picture of the product/feature we are presenting by allowing a rich variety of media type to tell and mini story.
10+
11+
![The atomic design framework applied to the bento component explaing how the atomic level primitive form the molecular stage to for the box, then the organism composed of multiple molecules](https://github.com/primer/brand/assets/10632534/acc3a674-ffb4-4319-b924-0330802b66c3)
12+
13+
14+
## Usage
15+
16+
Use bentos to present complex feature sets that require the presentation of various types of content. Each bento is composed of a minimum of 3 boxes and a maximum of 7-8. Each box should feature a small amount of content to create focus at the box level.
17+
18+
![An example of individual bento box featuring an icon, text and link on the left and a visual on the right](https://github.com/primer/brand/assets/10632534/af7751cd-bebd-4760-adc5-f6c2d624d15f)
19+
20+
### Boxes
21+
22+
Boxes are the constituent of the bento. Each should focus a clear point by featuring only the relevant content.
23+
Each box should not be narrower than 4 col. We allow full row width boxes as a breakout.
24+
25+
<DoDontContainer>
26+
<Do>
27+
<img
28+
alt=""
29+
src="https://github.com/primer/brand/assets/10632534/40ecee93-7236-4c61-bc2a-f594d6879857"
30+
/>
31+
<Caption>Boxes should be presenting a single piece of information</Caption>
32+
</Do>
33+
<Dont>
34+
<img
35+
alt=""
36+
src="https://github.com/primer/brand/assets/10632534/1ee3ed94-1050-4cd5-97d0-d2b158e7e5fc"
37+
/>
38+
<Caption>Don’t fit too much information in one box</Caption>
39+
</Dont>
40+
</DoDontContainer>
41+
42+
### Grid
43+
44+
Each bento assortment should fit within the grid system. The grid determine the size of each box and the density of each collage. The grid layout allows to articulate the composition by adjusting how each box fit with one another.
45+
46+
<DoDontContainer>
47+
<Do>
48+
<img
49+
alt=""
50+
src="https://github.com/primer/brand/assets/10632534/58ce10d5-8292-4aff-bcfa-f0ba653fa115"
51+
/>
52+
<Caption>The grid should flex to accommodate the boxes content and size</Caption>
53+
</Do>
54+
<Dont>
55+
<img
56+
alt=""
57+
src="https://github.com/primer/brand/assets/10632534/89650e43-8c76-4557-a2ab-d09cf41b42f0"
58+
/>
59+
<Caption>Don’t create high density, unstructured grid with offsets</Caption>
60+
</Dont>
61+
</DoDontContainer>
62+
File renamed without changes.

0 commit comments

Comments
 (0)