
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@ios27_design_system/tokens
Advanced tools
iOS 27 design tokens — colors, typography, materials, spacing, animations, app icons (Light/Dark/IC modes)
iOS 27 / iPadOS 27 design tokens — colors, typography, materials, spacing, animations, and app icon geometry, as CSS custom properties, JS/TS constants, and a Dart file.
Values are measured off Apple's official iOS 27 Figma Community UI Kit (27.0.2) and, where the kit could not answer, off the iOS simulator runtime. This package ships numbers and specifications only — no Apple design files are redistributed.
npm install @ios27_design_system/tokens
import '@ios27_design_system/tokens/css'; // colors
import '@ios27_design_system/tokens/css/typography';
import '@ios27_design_system/tokens/css/materials';
import '@ios27_design_system/tokens/css/spacing';
import '@ios27_design_system/tokens/css/animations';
import '@ios27_design_system/tokens/css/icons';
Every custom property is namespaced --ios27-:
.card {
background: var(--ios27-color-bg-secondary);
color: var(--ios27-color-label-primary);
border-radius: var(--ios27-radius-card);
}
css emits two rules from one set of declarations:
:root[data-theme="dark"] { … }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { … }
}
Dark mode follows the system by default, and data-theme on <html> overrides it in either direction — data-theme="light" stays light even when the OS is dark.
A selector list cannot contain an at-rule. Writing
:root[data-theme="dark"], @media (…) { :root {makes browsers discard the whole block and silently drop every dark value. Keep the two rules separate.
import { colors, typography, spacing } from '@ios27_design_system/tokens';
colors.accents.blue.dark; // '#0091ff'
typography.styles.body.fontSize; // 17
Ships ESM, CJS, and type declarations. Exports colors, typography, materials, spacing, animations, icons.
import colors from '@ios27_design_system/tokens/json/colors' with { type: 'json' };
Also available: json/typography, json/materials, json/spacing, json/animations, json/icons.
The JSON carries its own provenance. Keys with _measured were read off the kit's own layer geometry; anything without it is annotated in place, usually as carried over from the iOS 26 extraction and not attested by the iOS 27 kit. Read those notes before treating a value as authoritative.
Colors carry icLight and icDark alongside light and dark. These reach you through the JSON and JS exports only — no CSS layer emits them yet, so a prefers-contrast: more stylesheet has to be wired by hand for now.
// dist/dart/ios27_tokens.dart
Exported as @ios27_design_system/tokens/dart.
css/legacy aliases the iOS 26 property names onto the current --ios27- ones, so an existing stylesheet keeps rendering while you migrate.
import '@ios27_design_system/tokens/css';
import '@ios27_design_system/tokens/css/legacy';
Colors did not change between iOS 26 and 27 — the kit ships identical values. Spacing, typography, and materials did.
MIT for this package's code and data. Apple's design resources are Apple's, licensed separately, and are not included here or in the repository.
FAQs
iOS 27 design tokens — colors, typography, materials, spacing, animations, app icons (Light/Dark/IC modes)
We found that @ios27_design_system/tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.