Osmyka UI Element System & Component Guide
The Osmyka UI Element System is a modular, zero-dependency design system built specifically for fast, responsive web interfaces with native dark/light theme switching.
šØ Design Tokens & Theme Palettesā
All colors, elevations, radii, and typography scales are defined in tokens.css:
:root {
--bg: #050912;
--panel: rgba(14, 22, 40, 0.72);
--text: #e8eefb;
--text-strong: #ffffff;
--muted: #a9b8cf;
--dim: #7d8da3;
--cyan: #38e1ff;
--violet: #8b7bff;
--green: #34d399;
--line: rgba(125, 180, 255, 0.14);
}
[data-theme="light"] {
--bg: #f8fafc;
--panel: rgba(255, 255, 255, 0.86);
--text: #0f172a;
--text-strong: #020617;
--muted: #334155;
--dim: #64748b;
--cyan: #0284c7;
--violet: #6366f1;
--green: #059669;
--line: rgba(15, 23, 42, 0.09);
}
š§© Key UI Componentsā
1. Button System (buttons.css)ā
<a class="btn btn-primary" href="#contact">
Primary Action
</a>
<a class="btn btn-ghost" href="#learn-more">
Ghost Action
</a>