@ngx-cupertino/tokens
v0.6.0-alpha.1
Published
Design tokens for Apple iOS/macOS design system
Maintainers
Readme
@ngx-cupertino/tokens
Design tokens for Apple's iOS 26 / macOS Tahoe 26 design system — CSS custom properties for colors, typography, spacing, motion, and more.
Install
npm i @ngx-cupertino/tokensUsage
// styles.scss
@use "@ngx-cupertino/tokens";Exports
@use "@ngx-cupertino/tokens"; // all tokens
@use "@ngx-cupertino/tokens/colors"; // color palette
@use "@ngx-cupertino/tokens/typography"; // fonts, sizes, weights
@use "@ngx-cupertino/tokens/spacing"; // spacing scale
@use "@ngx-cupertino/tokens/elevation"; // shadows, glass effects
@use "@ngx-cupertino/tokens/radius"; // border radius scale
@use "@ngx-cupertino/tokens/motion"; // durations, easings
@use "@ngx-cupertino/tokens/tints"; // system tint colorsSemantic Token Typing
The public semantic token-name union lives in @ngx-cupertino/core as CupSemanticTokenName.
It covers semantic foreground, support, background, and separator families only. Palette, accent, material, and platform tokens stay outside that union so the type remains focused on role-based UI decisions.
Color Space Policy
- token values are sRGB-first by default
- Display P3 requires explicit approval and extra QA
- do not introduce wide-gamut token values silently during routine token updates
Maintenance Order
The canonical maintenance contract lives in libs/tokens/ARCHITECTURE.md. Future contributors should follow this order:
- check Apple source and parity tables
- update palette source values
- align tint families
- validate semantic stability
- review platform and material layers
- update API and documentation
Docs
https://github.com/gacc94/ngx-cupertino
