---
version: alpha
name: "Bento Grid (RTL)"
description: "A grid of tiles in different sizes with very round corners, like a bento box — each tile says one thing. Warm stone background, white tiles and one colorful tile that grabs attention."
colors:
  primary: "#18181B"
  on-primary: "#FFFFFF"
  secondary: "#FF6B4A"
  on-secondary: "#18181B"
  neutral: "#EFEDE8"
  surface: "#FFFFFF"
  surface-variant: "#F5F3EF"
  on-surface: "#18181B"
  on-surface-variant: "#52525B"
  outline: "#E4E1DA"
  success: "#15803D"
  warning: "#A16207"
  error: "#C81E1E"
typography:
  display-lg:
    fontFamily: "Rubik"
    fontSize: 59px
    fontWeight: 800
    lineHeight: 1.05
  headline-lg:
    fontFamily: "Rubik"
    fontSize: 46px
    fontWeight: 800
    lineHeight: 1.05
  headline-md:
    fontFamily: "Rubik"
    fontSize: 35px
    fontWeight: 800
    lineHeight: 1.2
  title-md:
    fontFamily: "Rubik"
    fontSize: 27px
    fontWeight: 800
    lineHeight: 1.25
  body-lg:
    fontFamily: "Rubik"
    fontSize: 21px
    fontWeight: 400
    lineHeight: 1.55
  body-md:
    fontFamily: "Rubik"
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.55
  label-md:
    fontFamily: "Rubik"
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.4
rounded:
  sm: 12px
  md: 16px
  lg: 28px
  button: 16px
  input: 16px
  full: 999px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
motion:
  standard:
    duration: 260ms
    timingFunction: "cubic-bezier(0.34, 1.56, 0.64, 1)"
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.button}"
    height: 44px
    padding: 24px
  button-secondary:
    backgroundColor: "{colors.surface-variant}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.button}"
    height: 44px
  button-accent:
    backgroundColor: "{colors.secondary}"
    textColor: "{colors.on-secondary}"
    rounded: "{rounded.button}"
    height: 44px
  card:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.lg}"
    padding: 24px
  input:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.input}"
    height: 44px
  badge:
    backgroundColor: "{colors.surface-variant}"
    textColor: "{colors.on-surface}"
    rounded: "{rounded.full}"
---

# Bento Grid — Hebrew / RTL design system

## Overview

A grid of tiles in different sizes with very round corners, like a bento box — each tile says one thing. Warm stone background, white tiles and one colorful tile that grabs attention.

This interface is **Hebrew-first and right-to-left**. Every screen is built with `<html lang="he" dir="rtl">` and logical CSS properties, so layout, icons, numbers and forms behave correctly in Hebrew. Best for: product and feature pages, personal profiles, consumer apps.

## Colors

A light theme: the page background is the calmest layer; surfaces sit on top of it.

- **Primary (#18181B):** the main action color — primary buttons, links, active navigation, focus rings. Text on it is #FFFFFF.
- **Secondary / accent (#FF6B4A):** highlights, badges, the one featured card per screen. Text on it is #18181B.
- **Neutral / background (#EFEDE8):** the page itself.
- **Surface (#FFFFFF) and surface-variant (#F5F3EF):** cards, inputs, sidebars; the variant for secondary buttons, tabs and table hover.
- **On-surface (#18181B) and on-surface-variant (#52525B):** body text and secondary text. Both pass WCAG AA (4.5:1) on every surface.
- **Outline (#E4E1DA):** borders and dividers.
- **Status:** success #15803D, warning #A16207, error #C81E1E.

## Typography

- **Display / headings:** Rubik, weight 800, letter-spacing -0.02em.
- **Body:** Rubik, weight 400, line-height 1.55.
- Scale (ratio 1.3): 59px / 46px / 35px / 27px / 21px / 16px / 14px.
- Load fonts from Google Fonts — all of them include Hebrew glyphs: `https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&display=swap`

## Layout

- Density: **comfortable**. Spacing scale: 4px, 8px, 12px, 16px, 24px, 32px, 48px, 72px.
- Content max width about 1180px; generous outer padding on desktop, 16px on mobile.
- Sidebars and navigation start on the **right** (inline-start). The primary action in a row sits at the inline-start or is visually dominant; secondary actions follow it.
- Build pages from a CSS grid of tiles that span 1–2 columns and 1–2 rows, with equal 16–20px gaps; one tile per row may be the accent color.

## Elevation & Depth

- Card shadow: `0 1px 2px rgba(24,24,27,0.04)`
- Raised / hover shadow: `0 16px 40px rgba(24,24,27,0.10)`
- Button shadow: `none`; on hover `0 8px 20px rgba(24,24,27,0.18)`
- Almost flat: tiles separate from the stone background by color alone. Only hovered tiles lift with a soft shadow.

## Shapes

- Corner radius: small 12px, medium 16px, large 28px (cards). Buttons 16px, inputs 16px. Pills and badges are fully rounded.
- Border: 0px solid in the outline color — i.e. no borders; separation comes from color and shadow.

## Motion & Micro-interaction

- Duration 260ms, easing `cubic-bezier(0.34, 1.56, 0.64, 1)`.
- Hover behaviour: **lift** (cards and buttons rise 2px).
- Respect `prefers-reduced-motion`: drop all transitions.

## Voice & Content Strategy

- All UI copy is Hebrew. Short, direct, second person plural or neutral (`התחילו`, `שמירה`), no English loanwords where a common Hebrew word exists.
- Buttons are verbs or verbal nouns: `שמירה`, `המשך לתשלום`, `הוספה לעגלה`.
- Error messages say what to do: `מספר טלפון צריך 10 ספרות, למשל 050-1234567`.

## Components

- **Buttons:** primary (filled primary), accent (filled secondary — at most one per view), secondary (surface-variant with outline), ghost (text only). Min height 44px. Directional icons inside buttons are mirrored.
- **Cards:** surface, outline border, large radius, card shadow. One card per screen may use the primary or accent fill to feature something.
- **Inputs:** surface background, outline border, medium radius, 44px. Focus: primary border plus a 3px primary ring at 30% opacity. Invalid: error border plus a message below in the error color.
- **Badges:** pill, small, bold. Status badges are a tinted background with a colored dot, never color alone.
- **Tables:** header row in muted small text, row dividers, numeric columns end-aligned with tabular LTR numbers.
- **Navigation:** sidebar on the right; active item tinted with primary at 12% and primary text.

## Do's and Don'ts

- Do mix tile sizes in one grid with equal gaps.
- Do give tiles very round corners (24–32px).
- Do one idea per tile: a big number, an icon or one sentence.
- Do use black buttons and one colored tile for emphasis.
- Don't outline tiles with borders — color difference is enough.
- Don't use more than two colored tiles per screen.
- Don't put long paragraphs inside a tile.

## RTL & Hebrew Rules

- Set `<html lang="he" dir="rtl">` at the root. Never mirror the layout manually with `flex-direction: row-reverse` or `float: right`.
- Use logical CSS only: `margin-inline-start/end`, `padding-inline`, `inset-inline-start`, `border-inline-start`, `text-align: start/end`. In Tailwind: `ms-* me-* ps-* pe-* start-* end-* text-start text-end`, never `ml/mr/pl/pr/left/right`.
- Directional icons (arrows, chevrons, "next", "back", send) are mirrored with `transform: scaleX(-1)` under `[dir="rtl"]`. Non-directional icons (search, bell, cart, check) are never mirrored.
- Numbers, prices, phone numbers, IDs, codes and dates keep LTR order: wrap them in `<bdi>` or a span with `direction: ltr; unicode-bidi: isolate`. Use tabular numbers in tables.
- Currency: shekel sign before the number with no space — `₪1,240` — or after with a space — `1,240 ₪`. Pick one and keep it consistent. Thousands separator is a comma.
- Dates are `DD/MM/YYYY` (02/12/2026). Show the Hebrew date next to it when the audience is religious or institutional (e.g. כ״ב בכסלו תשפ״ז).
- Phone, email, URL and ID inputs get `dir="ltr"` but stay right-aligned inside the RTL form. Israeli mobile format: `050-1234567`.
- Hebrew has no capital letters: never rely on `text-transform: uppercase` for hierarchy — use weight, size and color. Avoid letter-spacing on Hebrew body text.
- Hebrew needs a slightly larger line-height than Latin (1.6–1.75 for body). Use a font that really contains Hebrew glyphs; never let Hebrew fall back to a system font next to a Latin web font.
- Gershayim and geresh are real characters: ״ and ׳ (מע״מ, ח״פ, יום ד׳), not straight quotes.
- Tables: first column is on the right; numeric columns align to the end (left). Sidebars sit on the right (inline-start). Breadcrumbs read right-to-left with a mirrored chevron.
- Charts keep the time axis running right-to-left only if the product does so everywhere; otherwise keep chart axes LTR and say so — be consistent.

## Reference CSS

Drop this into the project (or use `theme.css` from the same page, which also contains ready component classes such as `.rs-btn`, `.rs-card`, `.rs-input`).

```css
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&display=swap");

:root {
  --rs-bg: #EFEDE8;
  --rs-bg-image: none;
  --rs-surface: #FFFFFF;
  --rs-surface-2: #F5F3EF;
  --rs-text: #18181B;
  --rs-text-muted: #52525B;
  --rs-primary: #18181B;
  --rs-on-primary: #FFFFFF;
  --rs-accent: #FF6B4A;
  --rs-on-accent: #18181B;
  --rs-border: #E4E1DA;
  --rs-success: #15803D;
  --rs-warning: #A16207;
  --rs-danger: #C81E1E;
  --rs-focus: #18181B;
  --rs-font-display: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-body: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-mono: "IBM Plex Mono", "Rubik", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rs-heading-weight: 800;
  --rs-body-weight: 400;
  --rs-heading-tracking: -0.02em;
  --rs-heading-line: 1.05;
  --rs-line: 1.55;
  --rs-text-display: 59px;
  --rs-text-h1: 46px;
  --rs-text-h2: 35px;
  --rs-text-h3: 27px;
  --rs-text-lg: 21px;
  --rs-text-base: 16px;
  --rs-text-sm: 14px;
  --rs-text-xs: 12px;
  --rs-radius-sm: 12px;
  --rs-radius-md: 16px;
  --rs-radius-lg: 28px;
  --rs-radius-pill: 999px;
  --rs-btn-radius: 16px;
  --rs-input-radius: 16px;
  --rs-border-width: 0px;
  --rs-border-style: solid;
  --rs-shadow-card: 0 1px 2px rgba(24,24,27,0.04);
  --rs-shadow-raised: 0 16px 40px rgba(24,24,27,0.10);
  --rs-shadow-button: none;
  --rs-shadow-button-hover: 0 8px 20px rgba(24,24,27,0.18);
  --rs-shadow-input: none;
  --rs-blur: 0px;
  --rs-duration: 260ms;
  --rs-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rs-hover-transform: translateY(-2px);
  --rs-icon-stroke: 2;
  --rs-space-1: 4px;
  --rs-space-2: 8px;
  --rs-space-3: 12px;
  --rs-space-4: 16px;
  --rs-space-5: 24px;
  --rs-space-6: 32px;
  --rs-space-7: 48px;
  --rs-space-8: 72px;
}
```
