@uipath/apollo-core
Core design tokens and fonts for the Apollo Design System.
Overview
Apollo Core provides the foundational design elements for the UiPath Apollo Design System:
- Design Tokens: Colors, typography, spacing, shadows, borders, and more
- Fonts: Typography assets
Installation
npm install @uipath/apollo-core
pnpm add @uipath/apollo-core
yarn add @uipath/apollo-core
Note: This package is published to both npm and GitHub Package Registry. External users will automatically pull from npm. Internal UiPath users with .npmrc configured will automatically pull from GitHub Package Registry.
Usage
Design Tokens
import * as ApolloCore from '@uipath/apollo-core';
const primaryColor = ApolloCore.ColorBrandPrimary;
const spacing = ApolloCore.SpacingMd;
const fontFamily = ApolloCore.FontFamilyBase;
CSS Variables
@import '@uipath/apollo-core/tokens/css/theme-variables.css';
.my-component {
color: var(--color-primary);
padding: var(--spacing-md);
font-family: var(--font-family-base);
background: var(--color-background);
}
Scripts
pnpm build
pnpm build:tokens
pnpm build:fonts
Package Exports
import * as ApolloCore from '@uipath/apollo-core';
import * as Tokens from '@uipath/apollo-core/tokens';
import '@uipath/apollo-core/tokens/css/theme-variables.css';
import { iconNames } from '@uipath/apollo-core/icons';
import iconSvg from '@uipath/apollo-core/icons/svg/add.svg';
Icons
The icon set lives in @uipath/apollo-ui-icons. Import from
it directly:
import { Close, AddComment } from '@uipath/apollo-ui-icons';
import closeSvg from '@uipath/apollo-ui-icons/svg/close.svg';
import { type IconName, iconNames } from '@uipath/apollo-ui-icons/types';
@uipath/apollo-core/icons and @uipath/apollo-core/icons/svg/* still resolve,
re-exporting the package above, but they are deprecated and will be removed in
the next major. Migrate to the specifiers shown here.
Framework Packages
Apollo Core is framework-agnostic. For framework-specific components:
- React:
@uipath/apollo-react
- Tailwind:
@uipath/apollo-wind
- Icons:
@uipath/apollo-ui-icons
Directory Structure
apollo-core/
├── src/
│ ├── tokens/ # Design tokens (colors, spacing, etc.)
│ └── fonts/ # Font assets
├── scripts/
│ └── build-tokens.js # Token generation
└── dist/ # Built output
├── tokens/ # Generated token files (CSS, JSS, LESS, SCSS)
└── fonts/ # Font files
License
MIT