---
version: alpha
name: "Dimensional Layering (RTL)"
description: "White cards stacked like sheets in a pile, each at its own height. Hierarchy reads through depth — the closer it is, the more it matters."
colors:
  primary: "#4338CA"
  on-primary: "#FFFFFF"
  secondary: "#F2711C"
  on-secondary: "#1C0D02"
  neutral: "#E6EAF1"
  surface: "#FFFFFF"
  surface-variant: "#F2F4F8"
  on-surface: "#121826"
  on-surface-variant: "#4A5466"
  outline: "#12182614"
  success: "#157347"
  warning: "#955800"
  error: "#B42318"
typography:
  display-lg:
    fontFamily: "Miriam Libre"
    fontSize: 49px
    fontWeight: 700
    lineHeight: 1.2
  headline-lg:
    fontFamily: "Miriam Libre"
    fontSize: 39px
    fontWeight: 700
    lineHeight: 1.2
  headline-md:
    fontFamily: "Miriam Libre"
    fontSize: 31px
    fontWeight: 700
    lineHeight: 1.2
  title-md:
    fontFamily: "Miriam Libre"
    fontSize: 25px
    fontWeight: 700
    lineHeight: 1.25
  body-lg:
    fontFamily: "Arimo"
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.65
  body-md:
    fontFamily: "Arimo"
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.65
  label-md:
    fontFamily: "Arimo"
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.4
rounded:
  sm: 8px
  md: 12px
  lg: 16px
  button: 12px
  input: 12px
  full: 999px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
motion:
  standard:
    duration: 240ms
    timingFunction: "cubic-bezier(0.2, 0.8, 0.2, 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}"
---

# Dimensional Layering — Hebrew / RTL design system

## Overview

White cards stacked like sheets in a pile, each at its own height. Hierarchy reads through depth — the closer it is, the more it matters.

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: dashboards and overview screens, productivity apps, product presentations.

## Colors

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

- **Primary (#4338CA):** the main action color — primary buttons, links, active navigation, focus rings. Text on it is #FFFFFF.
- **Secondary / accent (#F2711C):** highlights, badges, the one featured card per screen. Text on it is #1C0D02.
- **Neutral / background (#E6EAF1):** the page itself.
- **Surface (#FFFFFF) and surface-variant (#F2F4F8):** cards, inputs, sidebars; the variant for secondary buttons, tabs and table hover.
- **On-surface (#121826) and on-surface-variant (#4A5466):** body text and secondary text. Both pass WCAG AA (4.5:1) on every surface.
- **Outline (#12182614):** borders and dividers.
- **Status:** success #157347, warning #955800, error #B42318.

## Typography

- **Display / headings:** Miriam Libre, weight 700, letter-spacing -0.005em.
- **Body:** Arimo, weight 400, line-height 1.65.
- Scale (ratio 1.25): 49px / 39px / 31px / 25px / 20px / 16px / 14px.
- Load fonts from Google Fonts — all of them include Hebrew glyphs: `https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@600;700&family=Arimo:wght@400;500;700&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.
- Assign each region one elevation level — page, panel, card, overlay — and let important cards overlap the panel beneath them.

## Elevation & Depth

- Card shadow: `-1px 2px 4px rgba(18,24,38,0.08), -10px 10px 0 -1px #D3DAE6, -10px 14px 26px rgba(18,24,38,0.12)`
- Raised / hover shadow: `-2px 3px 6px rgba(18,24,38,0.10), -9px 9px 0 -1px #D3DAE6, -18px 18px 0 -2px #BFC8D8, -22px 30px 44px rgba(18,24,38,0.18)`
- Button shadow: `-2px 3px 0 #2E2696, -4px 8px 14px rgba(67,56,202,0.28)`; on hover `-3px 5px 0 #2E2696, -6px 12px 20px rgba(67,56,202,0.34)`
- Four clear elevation levels. Cards carry a solid offset plane behind them (a hard spread shadow) plus a soft ambient shadow, all shifted down-left so the stack recedes away from the top-right light.

## Shapes

- Corner radius: small 8px, medium 12px, large 16px (cards). Buttons 12px, inputs 12px. Pills and badges are fully rounded.
- Border: 1px solid in the outline color.

## Motion & Micro-interaction

- Duration 240ms, easing `cubic-bezier(0.2, 0.8, 0.2, 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 use four fixed elevation levels, no more.
- Do show a plane behind cards, like another sheet in the stack.
- Do keep the strong color for the top layer only.
- Do let every shadow fall down-left.
- Don't stack more than three layers in one spot.
- Don't give neighbouring cards the same depth when their importance differs.
- Don't use a dark page — the light planes look flat.

## 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=Miriam+Libre:wght@600;700&family=Arimo:wght@400;500;700&display=swap");

:root {
  --rs-bg: #E6EAF1;
  --rs-bg-image: none;
  --rs-surface: #FFFFFF;
  --rs-surface-2: #F2F4F8;
  --rs-text: #121826;
  --rs-text-muted: #4A5466;
  --rs-primary: #4338CA;
  --rs-on-primary: #FFFFFF;
  --rs-accent: #F2711C;
  --rs-on-accent: #1C0D02;
  --rs-border: rgba(18,24,38,0.08);
  --rs-success: #157347;
  --rs-warning: #955800;
  --rs-danger: #B42318;
  --rs-focus: #4338CA;
  --rs-font-display: "Miriam Libre", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-body: "Arimo", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-mono: "IBM Plex Mono", "Arimo", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rs-heading-weight: 700;
  --rs-body-weight: 400;
  --rs-heading-tracking: -0.005em;
  --rs-heading-line: 1.2;
  --rs-line: 1.65;
  --rs-text-display: 49px;
  --rs-text-h1: 39px;
  --rs-text-h2: 31px;
  --rs-text-h3: 25px;
  --rs-text-lg: 20px;
  --rs-text-base: 16px;
  --rs-text-sm: 14px;
  --rs-text-xs: 12px;
  --rs-radius-sm: 8px;
  --rs-radius-md: 12px;
  --rs-radius-lg: 16px;
  --rs-radius-pill: 999px;
  --rs-btn-radius: 12px;
  --rs-input-radius: 12px;
  --rs-border-width: 1px;
  --rs-border-style: solid;
  --rs-shadow-card: -1px 2px 4px rgba(18,24,38,0.08), -10px 10px 0 -1px #D3DAE6, -10px 14px 26px rgba(18,24,38,0.12);
  --rs-shadow-raised: -2px 3px 6px rgba(18,24,38,0.10), -9px 9px 0 -1px #D3DAE6, -18px 18px 0 -2px #BFC8D8, -22px 30px 44px rgba(18,24,38,0.18);
  --rs-shadow-button: -2px 3px 0 #2E2696, -4px 8px 14px rgba(67,56,202,0.28);
  --rs-shadow-button-hover: -3px 5px 0 #2E2696, -6px 12px 20px rgba(67,56,202,0.34);
  --rs-shadow-input: inset -1px 2px 3px rgba(18,24,38,0.08);
  --rs-blur: 0px;
  --rs-duration: 240ms;
  --rs-easing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rs-hover-transform: translateY(-2px);
  --rs-icon-stroke: 1.75;
  --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;
}
```

## Credits

Adapted to Hebrew / RTL from UI UX Pro Max (https://github.com/nextlevelbuilder/ui-ux-pro-max-skill), MIT license.
