Orbit
CSS layout system for radial UIs: gauges, dials, and watch faces.
Replaces —
Who it's for
Orbit is the right fit for teams building instrument-style UIs: CPU meters, network throughput rings, engine RPM gauges. The radial lane system gives precise control over ring width, gap, and position without SVG path calculations. Because every dimension is a fraction of the container, the gauge scales from a small card widget to a full-screen panel with no code changes.
The dashboard needs interactive charts with axes, legends, zoom, and data binding out of the box. A dedicated charting library covers that use case faster.
Radial menus built with Orbit use o-arc elements with range="auto" that space themselves proportionally to label text. The arc items are clickable via the interactive attribute. Orbit Kit includes ready-made radial menu components. The entire menu scales with its container, making it straightforward to embed in a sidebar or modal.
The radial menu needs advanced animation, physics, or complex state transitions. Orbit handles layout but not animation logic beyond the CSS depth transitions.
Watch face components are one of Orbit's documented example categories. Tick marks use .vector elements distributed around a ring; hands attach to .satellite elements animated with CSS. The system supports nested .gravity-spot instances for the sub-dials on chronograph-style interfaces.
The clock needs to be rendered as an SVG or canvas element for performance or compatibility reasons. Orbit is DOM-based and relies on custom HTML elements.
Multiple o-arc elements inside a lane divide it by value automatically. Three arcs totaling 100 split the ring into proportional segments, producing a donut chart. Nesting rings creates concentric donut charts. The CSS custom property API makes colors, gaps, and end-cap shapes configurable per segment.
The donut chart needs labels that automatically avoid overlap, animated transitions between datasets, or built-in tooltip hover states. Those features require application-layer composition.
The problem
Radial interfaces require trigonometry that falls outside the normal CSS box model. Gauges, dials, clocks, progress rings, and radial menus all need to place elements around a center, distribute them evenly, and scale without breaking. The standard CSS layout tools (flexbox, grid, absolute positioning) assume content flows in lines; circular placement requires computing angles, arc lengths, and coordinate transforms that most developers either delegate to SVG or to a third-party charting library. SVG is expressive but verbose for complex layouts. A simple progress ring requires arc path math, coordinate transforms, and careful viewBox scaling. Charting libraries simplify that but wrap the geometry behind an API that resists customization and add significant bundle weight for the subset of features most projects use. Most teams building instrument panels or radial menus end up either avoiding the pattern or paying for a commercial component library with more features than they need.
How it works
Orbit divides the space from center to edge into 12 lanes, numbered orbit-1 (innermost) to orbit-12 (outermost edge). Satellites placed on a lane are spread around it automatically; changing the count requires no angle calculations. The orbit-0 lane sits at the center, and lanes 13 through 24 extend past the edge for elements like tick marks that should stick out. Every dimension scales with the container, so the same markup works as a 48px badge or a full-screen dial.
o-arc and o-progress are custom elements that slot directly into any lane. Arcs split the lane equally by default, or stack by value for donut charts. Text placed inside an arc follows the curve. o-progress fills a lane to a value and supports rounded, arrow, and other cap shapes. Both elements accept ARIA attributes, and the interactive attribute makes the entire band clickable with a configurable hit-width for touch targets.
Orbit watches the DOM for changes via MutationObserver and batches updates into the next animation frame. The package is safe to import during server rendering and registers its custom elements on first import. It works identically in React, Vue, Svelte, and plain HTML with no framework-specific adapter. TypeScript types ship with the package, and JSX typings and VS Code HTML attribute completion are available separately.
Because every element dimension is a fraction of the .bigbang container, an Orbit layout scales as one piece when the container changes size. Set one width on the container and the rings, arcs, labels, and progress bands all follow. No resize handlers or breakpoint queries are needed. For fixed-size systems, setting the --o-force property on .gravity-spot pins the layout to a pixel value instead.
Adding depth to a .gravity-spot turns each ring into a layer on a z-axis. Rings receive data-depth to set their position back in space; the layer-front class marks the foreground layer. Depth layers maintain their apparent size through automatic perspective compensation and animate when depth values change. The transition duration and easing are configurable via CSS custom properties, and the animation respects prefers-reduced-motion.
Adding dev-orbit to the .bigbang during development draws lane outlines, highlights misplaced elements, and explains structural mistakes in the browser console. For environments where JavaScript is unavailable, a CSS-only fallback places up to 24 rings and 60 children per element type using :has() and :nth-child(... of ...) selectors. The fallback does not render o-arc or o-progress elements, which always require the runtime.
Features
- 12-lane radial layout system
- Arc and progress web components
- Framework-agnostic DOM integration
- Responsive scaling without media queries
- 3D depth layering
- Dev mode and CSS-only fallback
How to install
Install via npm, then import the stylesheet and script in your entry file.
npm install @zumer/orbitRecommended for this setup
Strengths
- MIT license with no commercial restrictions: Orbit is published under the MIT license, meaning it can be used in commercial products, forked, and modified without licensing fees. There are no per-developer seats, no commercial-use tiers, and no requirement to share modifications. This is the full open source MIT license, not a source-available variant with additional commercial restrictions.
- All geometry handled by the library: The library handles all circular geometry internally. Developers set the size of the outer container and Orbit computes lane positions, distributes satellites evenly, keeps content upright at any rotation, and draws arc paths. You write plain HTML with a few classes, and Orbit does the trigonometry.
- Cascading CSS custom property API: The entire system is configured through CSS custom properties: --o-force, --o-size-ratio, --o-range, and --o-from. Values cascade from the .gravity-spot container to rings to individual elements, so a property set at the system level applies everywhere. Override at the ring or element level for exceptions. The API is consistent across plain CSS, inline styles, and all frameworks.
- Actively maintained with zero open issues: The most recent push to the repository was 2026-10-27. The repository carries zero open issues. Version 2.0 introduced a fully responsive layout model that removed the need for Orbit.resize() calls. The changelog and migration guide from 1.x are documented in the README.
Trade-offs
- Requires modern browser features: Orbit depends on CSS sin(), cos(), and container query units, which exclude browsers that do not support CSS trigonometry functions. Without JavaScript, the CSS fallback covers basic layouts but cannot render o-arc or o-progress elements. The fallback also requires :has() and :nth-child(... of ...) selectors. Projects that must support older environments need a different approach.
- Layout primitive, not a charting library: Orbit is a radial layout primitive, not a data visualization library. It does not include data binding, axis formatting, tooltips, legends, or themes out of the box. Building a complete gauge dashboard requires composing Orbit's layout primitives with application-level logic for data, events, and accessibility. Developers expecting a drop-in widget library will need to build more themselves.
- Small contributor community: The repository has 771 stars and 20 forks. The project is primarily maintained by a single developer at Zumerlab. Community resources such as third-party tutorials, Stack Overflow answers, and ecosystem integrations are limited compared to mature charting frameworks. Bugs and feature requests depend on a single maintainer's availability.
Tech stack
FAQ
Yes. Orbit registers as custom HTML elements and watches the DOM through MutationObserver. It works identically in any framework that renders HTML: React, Vue, Svelte, Angular, or plain HTML. TypeScript types ship with the package, and JSX typings are available by importing from @zumer/orbit/react in a .d.ts file.
Yes. Orbit is MIT licensed. You can use it in commercial products, modify it, and distribute it without paying a licensing fee or sharing your modifications. There are no commercial-use tiers, per-developer seats, or additional terms beyond the standard MIT license.
Orbit requires CSS sin(), cos(), and container query units. Without JavaScript, a CSS fallback places basic layouts using :has() and :nth-child(... of ...) selectors, but o-arc and o-progress elements always require the JavaScript runtime. The README does not state a minimum browser version, but browsers without CSS trigonometry function support will not render Orbit's dynamic layouts.
Orbit is a layout primitive, not a data visualization library. It places HTML elements on circles and handles the CSS geometry. It does not include data binding, axis formatting, legends, or tooltips. A charting library gives you finished chart widgets; Orbit gives you the layout layer to build circular interfaces from HTML, with full CSS control over every visual detail.
The main change is the sizing model. Version 1.x used a fixed 500px coordinate system, requiring Orbit.resize() calls to make layouts responsive. Version 2.0 makes orbit-12 reach the edge of the .bigbang container, so layouts scale automatically with container width. To keep the 1.x behavior, set .gravity-spot { --o-force: 500px }. The README includes a full migration guide.