---
version: alpha
name: "Glassmorphism (RTL)"
description: "Frosted translucent panels that blur what is behind them, floating on a deep navy background with violet and teal light blooms. Atmospheric, layered and premium."
colors:
  primary: "#9B8CFF"
  on-primary: "#0B1026"
  secondary: "#2DD4BF"
  on-secondary: "#0B1026"
  neutral: "#0B1026"
  surface: "#FFFFFF14"
  surface-variant: "#FFFFFF1A"
  on-surface: "#F5F7FF"
  on-surface-variant: "#B9C0DD"
  outline: "#FFFFFF2E"
  success: "#4ADE80"
  warning: "#FBBF24"
  error: "#FB7185"
typography:
  display-lg:
    fontFamily: "Heebo"
    fontSize: 55px
    fontWeight: 600
    lineHeight: 1.15
  headline-lg:
    fontFamily: "Heebo"
    fontSize: 43px
    fontWeight: 600
    lineHeight: 1.15
  headline-md:
    fontFamily: "Heebo"
    fontSize: 34px
    fontWeight: 600
    lineHeight: 1.2
  title-md:
    fontFamily: "Heebo"
    fontSize: 26px
    fontWeight: 600
    lineHeight: 1.25
  body-lg:
    fontFamily: "Heebo"
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.65
  body-md:
    fontFamily: "Heebo"
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.65
  label-md:
    fontFamily: "Heebo"
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.4
rounded:
  sm: 10px
  md: 14px
  lg: 24px
  button: 14px
  input: 14px
  full: 999px
spacing:
  xs: 5px
  sm: 10px
  md: 20px
  lg: 30px
  xl: 60px
motion:
  standard:
    duration: 220ms
    timingFunction: "cubic-bezier(0.22, 1, 0.36, 1)"
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.button}"
    height: 44px
    padding: 30px
  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: 30px
  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}"
---

# Glassmorphism — Hebrew / RTL design system

## Overview

Frosted translucent panels that blur what is behind them, floating on a deep navy background with violet and teal light blooms. Atmospheric, layered and premium.

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: fintech and AI products, launch pages, music and media apps.

## Colors

A dark theme: the page background is the darkest layer; surfaces get lighter as they come forward.

- **Primary (#9B8CFF):** the main action color — primary buttons, links, active navigation, focus rings. Text on it is #0B1026.
- **Secondary / accent (#2DD4BF):** highlights, badges, the one featured card per screen. Text on it is #0B1026.
- **Neutral / background (#0B1026):** the page itself (with a decorative background: `radial-gradient(900px 600px at 85% -10%, rgba(155,140,255,0.45), transparent 60%), radial-gradient(700px 500px at 0% 40%, rgba(45,212,191,0.30), transparent 60%), radial-gradient(800px 600px at 60% 110%, rgba(236,72,153,0.22), transparent 60%)`).
- **Surface (#FFFFFF14) and surface-variant (#FFFFFF1A):** cards, inputs, sidebars; the variant for secondary buttons, tabs and table hover.
- **On-surface (#F5F7FF) and on-surface-variant (#B9C0DD):** body text and secondary text. Both pass WCAG AA (4.5:1) on every surface.
- **Outline (#FFFFFF2E):** borders and dividers.
- **Status:** success #4ADE80, warning #FBBF24, error #FB7185.

## Typography

- **Display / headings:** Heebo, weight 600, letter-spacing -0.01em.
- **Body:** Heebo, weight 400, line-height 1.65.
- Scale (ratio 1.28): 55px / 43px / 34px / 26px / 20px / 16px / 14px.
- Load fonts from Google Fonts — all of them include Hebrew glyphs: `https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;600;800&display=swap`

## Layout

- Density: **airy**. Spacing scale: 5px, 10px, 15px, 20px, 30px, 40px, 60px, 90px.
- 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.
- Always place glass panels over the colorful background blooms; glass over a flat color looks like plain gray.

## Elevation & Depth

- Card shadow: `0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12)`
- Raised / hover shadow: `0 18px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18)`
- Button shadow: `0 6px 20px rgba(155,140,255,0.35)`; on hover `0 10px 30px rgba(155,140,255,0.55)`
- Translucent surfaces use `backdrop-filter: blur(18px)`.
- Depth comes from translucency and blur, plus a 1px inner top highlight that reads as a glass edge.

## Shapes

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

## Motion & Micro-interaction

- Duration 220ms, easing `cubic-bezier(0.22, 1, 0.36, 1)`.
- Hover behaviour: **glow** (a soft glow appears, no movement).
- 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 8–14% white surfaces with a 16–20px backdrop blur.
- Do add a 1px light inner top edge to every panel — it is the glass edge.
- Do place large blurred color blooms in the background so there is something to frost.
- Do keep text near-white and check contrast against the brightest part of the background.
- Don't put small text on glass above a busy area.
- Don't stack more than two glass layers on top of each other.
- Don't use glass on a flat white background.

## 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=Heebo:wght@300;400;600;800&display=swap");

:root {
  --rs-bg: #0B1026;
  --rs-bg-image: radial-gradient(900px 600px at 85% -10%, rgba(155,140,255,0.45), transparent 60%), radial-gradient(700px 500px at 0% 40%, rgba(45,212,191,0.30), transparent 60%), radial-gradient(800px 600px at 60% 110%, rgba(236,72,153,0.22), transparent 60%);
  --rs-surface: rgba(255,255,255,0.08);
  --rs-surface-2: rgba(255,255,255,0.10);
  --rs-text: #F5F7FF;
  --rs-text-muted: #B9C0DD;
  --rs-primary: #9B8CFF;
  --rs-on-primary: #0B1026;
  --rs-accent: #2DD4BF;
  --rs-on-accent: #0B1026;
  --rs-border: rgba(255,255,255,0.18);
  --rs-success: #4ADE80;
  --rs-warning: #FBBF24;
  --rs-danger: #FB7185;
  --rs-focus: #9B8CFF;
  --rs-font-display: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-body: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-mono: "IBM Plex Mono", "Heebo", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rs-heading-weight: 600;
  --rs-body-weight: 400;
  --rs-heading-tracking: -0.01em;
  --rs-heading-line: 1.15;
  --rs-line: 1.65;
  --rs-text-display: 55px;
  --rs-text-h1: 43px;
  --rs-text-h2: 34px;
  --rs-text-h3: 26px;
  --rs-text-lg: 20px;
  --rs-text-base: 16px;
  --rs-text-sm: 14px;
  --rs-text-xs: 12px;
  --rs-radius-sm: 10px;
  --rs-radius-md: 14px;
  --rs-radius-lg: 24px;
  --rs-radius-pill: 999px;
  --rs-btn-radius: 14px;
  --rs-input-radius: 14px;
  --rs-border-width: 1px;
  --rs-border-style: solid;
  --rs-shadow-card: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  --rs-shadow-raised: 0 18px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
  --rs-shadow-button: 0 6px 20px rgba(155,140,255,0.35);
  --rs-shadow-button-hover: 0 10px 30px rgba(155,140,255,0.55);
  --rs-shadow-input: none;
  --rs-blur: 18px;
  --rs-duration: 220ms;
  --rs-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --rs-hover-transform: none;
  --rs-icon-stroke: 1.5;
  --rs-space-1: 5px;
  --rs-space-2: 10px;
  --rs-space-3: 15px;
  --rs-space-4: 20px;
  --rs-space-5: 30px;
  --rs-space-6: 40px;
  --rs-space-7: 60px;
  --rs-space-8: 90px;
}
```
