@zurich/design-tokens
v0.8.1
Published
Package that provides the CSS utils for working with the foundations of the ZDS
Readme
@zurich/design-tokens
About
@zurich/design-tokens is the foundation package for the Zurich Design System (ZDS).
It provides design tokens, CSS variables, icons, pictograms, flags, and fonts.
Features
- Design tokens: Colors, spacing, typography, shadows, etc. as CSS variables
- Icons: 500+ icons in line and solid variants
- Pictograms: Brand pictograms for visual communication
- Flags: Country and region flags
- Fonts: ZurichSans and Ogg fonts bundled
- Standalone mode: All assets embedded - no CDN required (v0.8.0+)
Installation
npm install @zurich/design-tokensPackage Structure
@zurich/design-tokens/
├── dist/
│ ├── index.css # All styles combined
│ ├── Icons.css # Icon definitions
│ ├── Pictograms.css # Pictogram definitions
│ ├── Flags.css # Flag definitions
│ └── fonts/
│ ├── ZurichSans/ # ZurichSans font files
│ └── Ogg/ # Ogg font files
└── scss/ # SCSS source filesStandalone Mode (v0.8.0+)
All assets are embedded directly in the CSS files as data URIs:
- No external CDN dependency
- Works offline and in air-gapped environments
- No CORS issues
Trade-offs:
- Larger initial CSS payload
- Better caching with your application bundle
ZDS Ecosystem
This package is part of the Zurich Design System (ZDS):
@zurich/design-tokens@zurich/css-components@zurich/web-components@zurich/angular-components@zurich/dev-utils
License
Made with 💙 by Pablo Pérez Chueca and Traian Constantin Dida for Zurich Insurance Company.
