-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate design tokens from @policyengine/design-system #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Added @policyengine/design-system package (v0.1.0) - Migrated all color tokens to use design system palette - Updated brand colors to use teal-based design system colors - Added comprehensive typography tokens (fonts, sizes) - Added spacing scale from design system - Updated semantic colors (success, error, warning, info) - Expanded font imports to include Roboto and Public Sans - Method badges now use design system colors - Maintains backward compatibility with existing component styles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
4 similar comments
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
22 similar comments
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
29 similar comments
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
|
Sorry @PolicyEngine[bot], only members of the PolicyEngine/core-developers team can invoke Claude Code. |
Summary
Integrates the design system tokens from @policyengine/design-system (v0.1.0) into the API documentation site. This aligns the docs styling with PolicyEngine's design system used in policyengine-app-v2.
Changes
Design Token Integration
@policyengine/design-systempackage (published 19 hours ago)Color Mapping
#2c6e49→#319795(teal-500) - slightly more vibrant teal#16a34a→#22C55E- brighter green#dc2626→#EF4444- slightly adjusted red#d97706→#FEC601- more vibrant yellow#2563eb→#1890FF- adjusted blueTypography
Testing
✅ Build successful - all 21 pages generated correctly
✅ Backward compatibility maintained - existing components work with new tokens
✅ Method badges updated to use design system semantic colors
Visual Impact
The changes result in a slightly more vibrant color palette that better aligns with PolicyEngine's brand identity. The main brand color shifts from a darker forest green to a teal, which is more modern and matches the app-v2 design system.
Recommendations for Design System Improvements
Based on this integration, here are suggestions for the design system repo:
Documentation surfaces: The design system could add specific tokens for documentation/content surfaces (current site uses a light background that's not explicitly in the palette)
Code block theming: Consider adding explicit code block color tokens beyond just backgrounds
Method/Status badges: Could add pre-defined badge color combinations for common HTTP methods
Border radius: The design system has border radius tokens but the docs don't currently use them - could be good to document best practices
Shadow tokens: No shadow/elevation tokens in the current design system - might be useful for cards/elevated surfaces
Closes #12
🤖 Generated with Claude Code