---
version: alpha
name: "Commerce Admin (RTL)"
description: "Light gray canvas, white cards with soft shadows and near-black buttons with a subtle bevel. Green marks incoming money — practical, confident and ready to sell."
colors:
  primary: "#242426"
  on-primary: "#FFFFFF"
  secondary: "#0D7A4E"
  on-secondary: "#FFFFFF"
  neutral: "#F1F1F2"
  surface: "#FFFFFF"
  surface-variant: "#F6F6F7"
  on-surface: "#1C1C1E"
  on-surface-variant: "#5E5E66"
  outline: "#E1E1E4"
  success: "#0D7A4E"
  warning: "#9C5F00"
  error: "#C0261E"
typography:
  display-lg:
    fontFamily: "Alef"
    fontSize: 37px
    fontWeight: 700
    lineHeight: 1.25
  headline-lg:
    fontFamily: "Alef"
    fontSize: 31px
    fontWeight: 700
    lineHeight: 1.25
  headline-md:
    fontFamily: "Alef"
    fontSize: 26px
    fontWeight: 700
    lineHeight: 1.2
  title-md:
    fontFamily: "Alef"
    fontSize: 22px
    fontWeight: 700
    lineHeight: 1.25
  body-lg:
    fontFamily: "Alef"
    fontSize: 18px
    fontWeight: 400
    lineHeight: 1.6
  body-md:
    fontFamily: "Alef"
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.6
  label-md:
    fontFamily: "Alef"
    fontSize: 13px
    fontWeight: 600
    lineHeight: 1.4
rounded:
  sm: 8px
  md: 10px
  lg: 12px
  button: 10px
  input: 10px
  full: 999px
spacing:
  xs: 4px
  sm: 8px
  md: 16px
  lg: 24px
  xl: 48px
motion:
  standard:
    duration: 120ms
    timingFunction: "cubic-bezier(0.25, 0.1, 0.25, 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}"
---

# Commerce Admin — Hebrew / RTL design system

## Overview

Light gray canvas, white cards with soft shadows and near-black buttons with a subtle bevel. Green marks incoming money — practical, confident and ready to sell.

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: online store admin, orders and inventory systems, sales dashboards.

## Colors

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

- **Primary (#242426):** the main action color — primary buttons, links, active navigation, focus rings. Text on it is #FFFFFF.
- **Secondary / accent (#0D7A4E):** highlights, badges, the one featured card per screen. Text on it is #FFFFFF.
- **Neutral / background (#F1F1F2):** the page itself.
- **Surface (#FFFFFF) and surface-variant (#F6F6F7):** cards, inputs, sidebars; the variant for secondary buttons, tabs and table hover.
- **On-surface (#1C1C1E) and on-surface-variant (#5E5E66):** body text and secondary text. Both pass WCAG AA (4.5:1) on every surface.
- **Outline (#E1E1E4):** borders and dividers.
- **Status:** success #0D7A4E, warning #9C5F00, error #C0261E.

## Typography

- **Display / headings:** Alef, weight 700, letter-spacing 0em.
- **Body:** Alef, weight 400, line-height 1.6.
- **Mono:** Cousine (Latin only — Hebrew inside mono text falls back to Alef).
- Scale (ratio 1.2): 37px / 31px / 26px / 22px / 18px / 15px / 13px.
- Load fonts from Google Fonts — all of them include Hebrew glyphs: `https://fonts.googleapis.com/css2?family=Alef:wght@400;700&family=Cousine:wght@400;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.
- Put one white card per task on a gray canvas, with key money figures in green at the top of each card.

## Elevation & Depth

- Card shadow: `-1px 1px 0 rgba(26,26,26,0.07), 0 0 0 1px rgba(26,26,26,0.04), -1px 3px 6px rgba(26,26,26,0.05)`
- Raised / hover shadow: `-2px 6px 14px rgba(26,26,26,0.10), -4px 18px 36px rgba(26,26,26,0.10)`
- Button shadow: `inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.55), -1px 1px 2px rgba(0,0,0,0.18)`; on hover `inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.55), -1px 3px 6px rgba(0,0,0,0.22)`
- Buttons read as physical keys: a light inner top highlight plus a dark inner bottom edge; cards float on a gray canvas with a soft down-left shadow.

## Shapes

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

## Motion & Micro-interaction

- Duration 120ms, easing `cubic-bezier(0.25, 0.1, 0.25, 1)`.
- Hover behaviour: **none** (color change only).
- 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 make the primary button near-black with a light top highlight and a dark bottom edge, like a real key.
- Do place white cards on a light gray canvas with a soft shadow falling down-left.
- Do use green only for positive money and paid status.
- Do keep radii at 8–12px, consistent across components.
- Don't use colorful primary buttons — color is reserved for data.
- Don't use heavy shadows or high-floating cards.
- Don't use red for a small sales dip; red is for real errors only.

## 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=Alef:wght@400;700&family=Cousine:wght@400;700&display=swap");

:root {
  --rs-bg: #F1F1F2;
  --rs-bg-image: none;
  --rs-surface: #FFFFFF;
  --rs-surface-2: #F6F6F7;
  --rs-text: #1C1C1E;
  --rs-text-muted: #5E5E66;
  --rs-primary: #242426;
  --rs-on-primary: #FFFFFF;
  --rs-accent: #0D7A4E;
  --rs-on-accent: #FFFFFF;
  --rs-border: #E1E1E4;
  --rs-success: #0D7A4E;
  --rs-warning: #9C5F00;
  --rs-danger: #C0261E;
  --rs-focus: #242426;
  --rs-font-display: "Alef", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-body: "Alef", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-mono: "Cousine", "Alef", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rs-heading-weight: 700;
  --rs-body-weight: 400;
  --rs-heading-tracking: 0em;
  --rs-heading-line: 1.25;
  --rs-line: 1.6;
  --rs-text-display: 37px;
  --rs-text-h1: 31px;
  --rs-text-h2: 26px;
  --rs-text-h3: 22px;
  --rs-text-lg: 18px;
  --rs-text-base: 15px;
  --rs-text-sm: 13px;
  --rs-text-xs: 11px;
  --rs-radius-sm: 8px;
  --rs-radius-md: 10px;
  --rs-radius-lg: 12px;
  --rs-radius-pill: 999px;
  --rs-btn-radius: 10px;
  --rs-input-radius: 10px;
  --rs-border-width: 1px;
  --rs-border-style: solid;
  --rs-shadow-card: -1px 1px 0 rgba(26,26,26,0.07), 0 0 0 1px rgba(26,26,26,0.04), -1px 3px 6px rgba(26,26,26,0.05);
  --rs-shadow-raised: -2px 6px 14px rgba(26,26,26,0.10), -4px 18px 36px rgba(26,26,26,0.10);
  --rs-shadow-button: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.55), -1px 1px 2px rgba(0,0,0,0.18);
  --rs-shadow-button-hover: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 0 rgba(0,0,0,0.55), -1px 3px 6px rgba(0,0,0,0.22);
  --rs-shadow-input: inset 0 1px 1px rgba(26,26,26,0.06);
  --rs-blur: 0px;
  --rs-duration: 120ms;
  --rs-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
  --rs-hover-transform: none;
  --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;
}

/* style-specific details (selectors are from theme.css) */
.rs-app .rs-btn:not(.rs-btn--ghost):not(.rs-btn--secondary) { background-image: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 60%); }
.rs-app .rs-btn:not(.rs-btn--ghost):active { box-shadow: inset 0 2px 3px rgba(0,0,0,0.35); transform: translateY(1px); }
.rs-app .rs-btn--secondary { box-shadow: inset 0 -1px 0 rgba(26,26,26,0.12), -1px 1px 1px rgba(26,26,26,0.06); background-color: var(--rs-surface); }
.rs-app .rs-trend-up { color: var(--rs-success); font-weight: 700; }
```
