---
version: alpha
name: "Pixel Art (RTL)"
description: "An 8-bit video game: stepped pixel frames, a few strong colors and corners with no rounding at all. Nostalgic, playful and direct."
colors:
  primary: "#FFCC00"
  on-primary: "#1B1B3A"
  secondary: "#3EE07A"
  on-secondary: "#0E1E14"
  neutral: "#1B1B3A"
  surface: "#262650"
  surface-variant: "#323268"
  on-surface: "#FFFFFF"
  on-surface-variant: "#C9C9E8"
  outline: "#0B0B1A"
  success: "#3EE07A"
  warning: "#FF9E2C"
  error: "#FF6B6B"
typography:
  display-lg:
    fontFamily: "Rubik Pixels"
    fontSize: 49px
    fontWeight: 400
    lineHeight: 1.2
  headline-lg:
    fontFamily: "Rubik Pixels"
    fontSize: 39px
    fontWeight: 400
    lineHeight: 1.2
  headline-md:
    fontFamily: "Rubik Pixels"
    fontSize: 31px
    fontWeight: 400
    lineHeight: 1.2
  title-md:
    fontFamily: "Rubik Pixels"
    fontSize: 25px
    fontWeight: 400
    lineHeight: 1.25
  body-lg:
    fontFamily: "Rubik"
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.6
  body-md:
    fontFamily: "Rubik"
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.6
  label-md:
    fontFamily: "Rubik"
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.4
rounded:
  sm: 0px
  md: 0px
  lg: 0px
  button: 0px
  input: 0px
  full: 999px
spacing:
  xs: 3px
  sm: 6px
  md: 13px
  lg: 19px
  xl: 38px
motion:
  standard:
    duration: 120ms
    timingFunction: "steps(2, end)"
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.button}"
    height: 44px
    padding: 19px
  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: 19px
  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}"
---

# Pixel Art — Hebrew / RTL design system

## Overview

An 8-bit video game: stepped pixel frames, a few strong colors and corners with no rounding at all. Nostalgic, playful and direct.

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: games and gaming apps, hackathons, products for kids and teens.

## Colors

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

- **Primary (#FFCC00):** the main action color — primary buttons, links, active navigation, focus rings. Text on it is #1B1B3A.
- **Secondary / accent (#3EE07A):** highlights, badges, the one featured card per screen. Text on it is #0E1E14.
- **Neutral / background (#1B1B3A):** the page itself (with a decorative background: `linear-gradient(rgba(255,255,255,0.03) 2px, transparent 2px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255,255,255,0.03) 2px, transparent 2px) 0 0 / 16px 16px`).
- **Surface (#262650) and surface-variant (#323268):** cards, inputs, sidebars; the variant for secondary buttons, tabs and table hover.
- **On-surface (#FFFFFF) and on-surface-variant (#C9C9E8):** body text and secondary text. Both pass WCAG AA (4.5:1) on every surface.
- **Outline (#0B0B1A):** borders and dividers.
- **Status:** success #3EE07A, warning #FF9E2C, error #FF6B6B.

## Typography

- **Display / headings:** Rubik Pixels, weight 400.
- **Body:** Rubik, weight 400, line-height 1.6.
- **Mono:** Cousine (Latin only — Hebrew inside mono text falls back to Rubik).
- 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=Rubik+Pixels&family=Rubik:wght@400;500;700&family=Cousine:wght@400;700&display=swap`

## Layout

- Density: **compact**. Spacing scale: 3px, 6px, 10px, 13px, 19px, 26px, 38px, 58px.
- 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.
- Snap everything to an 8px grid; use the pixel font only for big headings and scores, Rubik for all Hebrew reading text.

## Elevation & Depth

- Card shadow: `0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, -8px 8px 0 0 #0B0B1A`
- Raised / hover shadow: `0 -4px 0 0 #FFCC00, 0 4px 0 0 #FFCC00, 4px 0 0 0 #FFCC00, -4px 0 0 0 #FFCC00, -8px 8px 0 0 #0B0B1A`
- Button shadow: `0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, inset 4px -4px 0 0 #C79A00`; on hover `0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, inset -4px 4px 0 0 #C79A00`
- Borders are drawn with box-shadows on all four sides so corners stay notched like pixels; the drop shadow is a hard 8px step down-left.

## Shapes

- Corner radius: small 0px, medium 0px, large 0px (cards). Buttons 0px, inputs 0px. 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 120ms, easing `steps(2, end)`.
- 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 use pixel frames with notched corners and no rounding at all.
- Do keep a limited palette: yellow, green and white on night blue.
- Do use Rubik Pixels for headings and big numbers only.
- Do use stepped transitions, never smooth easing.
- Don't set body text in the pixel font — Hebrew becomes hard to read.
- Don't use gradients, blur or soft shadows.
- Don't use more than four colors on a screen.

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

:root {
  --rs-bg: #1B1B3A;
  --rs-bg-image: linear-gradient(rgba(255,255,255,0.03) 2px, transparent 2px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255,255,255,0.03) 2px, transparent 2px) 0 0 / 16px 16px;
  --rs-surface: #262650;
  --rs-surface-2: #323268;
  --rs-text: #FFFFFF;
  --rs-text-muted: #C9C9E8;
  --rs-primary: #FFCC00;
  --rs-on-primary: #1B1B3A;
  --rs-accent: #3EE07A;
  --rs-on-accent: #0E1E14;
  --rs-border: #0B0B1A;
  --rs-success: #3EE07A;
  --rs-warning: #FF9E2C;
  --rs-danger: #FF6B6B;
  --rs-focus: #FFFFFF;
  --rs-font-display: "Rubik Pixels", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-body: "Rubik", system-ui, "Segoe UI", Arial, sans-serif;
  --rs-font-mono: "Cousine", "Rubik", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rs-heading-weight: 400;
  --rs-body-weight: 400;
  --rs-heading-tracking: 0;
  --rs-heading-line: 1.2;
  --rs-line: 1.6;
  --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: 0px;
  --rs-radius-md: 0px;
  --rs-radius-lg: 0px;
  --rs-radius-pill: 999px;
  --rs-btn-radius: 0px;
  --rs-input-radius: 0px;
  --rs-border-width: 0px;
  --rs-border-style: solid;
  --rs-shadow-card: 0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, -8px 8px 0 0 #0B0B1A;
  --rs-shadow-raised: 0 -4px 0 0 #FFCC00, 0 4px 0 0 #FFCC00, 4px 0 0 0 #FFCC00, -4px 0 0 0 #FFCC00, -8px 8px 0 0 #0B0B1A;
  --rs-shadow-button: 0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, inset 4px -4px 0 0 #C79A00;
  --rs-shadow-button-hover: 0 -4px 0 0 #0B0B1A, 0 4px 0 0 #0B0B1A, 4px 0 0 0 #0B0B1A, -4px 0 0 0 #0B0B1A, inset -4px 4px 0 0 #C79A00;
  --rs-shadow-input: 0 -3px 0 0 #0B0B1A, 0 3px 0 0 #0B0B1A, 3px 0 0 0 #0B0B1A, -3px 0 0 0 #0B0B1A;
  --rs-blur: 0px;
  --rs-duration: 120ms;
  --rs-easing: steps(2, end);
  --rs-hover-transform: none;
  --rs-icon-stroke: 2.5;
  --rs-space-1: 3px;
  --rs-space-2: 6px;
  --rs-space-3: 10px;
  --rs-space-4: 13px;
  --rs-space-5: 19px;
  --rs-space-6: 26px;
  --rs-space-7: 38px;
  --rs-space-8: 58px;
}

/* style-specific details (selectors are from theme.css) */
.rs-btn:active{transform:translateY(4px)}
.rs-input,.rs-select,.rs-textarea,.rs-input-group{border:0}
```

## Credits

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