concept
Component library capstone — CSS reference
Capstone design checklist: create one component contract with semantic tokens, logical spacing, native focus and an RTL variation. Test the same markup under a theme switch and direction change rather than duplicating styles. This fixture demonstrates token updates and logical padding; the full project and assessment are separate pending deliverables.
Formal Syntax & Structure
css syntaxcss
--surface: Canvas; --ink: CanvasText; padding-inline: 1rem;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>component-library-capstone</title><style>body{margin:8px;font:16px/1.5 sans-serif}*{box-sizing:border-box}#a{--surface:Canvas;--ink:CanvasText;background:var(--surface);color:var(--ink);padding-inline-start:24px}#a.alt{--surface:rgb(20,30,40);--ink:white}</style><body><section id="a" dir="rtl" lang="fa"><button>ذخیره</button></section></body></html>