@aurea-uds/core
v0.6.0
Published
The Aurea UDS stylesheet and its vanilla behaviour. Import @aurea-uds/fonts/css before this.
Maintainers
Readme
@aurea-uds/core
The Aurea UDS stylesheet, plus the small amount of vanilla behaviour that does not need React.
pnpm add @aurea-uds/core @aurea-uds/fontsimport "@aurea-uds/fonts/css"; // before the core: it no longer embeds IBM Plex
import "@aurea-uds/core/css";
import "@aurea-uds/core/js"; // optional — tabs, disclosure, and the like, without ReactThe JavaScript is a no-op without a DOM, so it is safe to import during server rendering.
What is in here
Every rule the system needs and nothing else. Documentation chrome and product mock-ups used to live here; they were moved out, and a gate keeps them out — a class in this stylesheet has to be one a component can actually produce.
Values come from @aurea-uds/tokens. A raw pixel for spacing, radius, type size, weight or
line height fails a gate rather than a review.
Themes and density
<html data-theme="dark" data-density="comfortable">data-theme is dark or light; data-density is compact, comfortable or spacious.
Both are read from the root element, and a control of a given size measures the same in every
combination.
Licence
Apache-2.0.
