Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion agents/dashboard/dashboard-architecture-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ grep '@policyengine/ui-kit' package.json
# Actually imported in components
grep -rn "from '@policyengine/ui-kit'" app/ components/ --include='*.tsx' --include='*.ts'

# No CDN link for design-system
# No CDN link for design-system (deprecated package)
grep -rn 'unpkg.com/@policyengine/design-system' app/ --include='*.tsx'
grep -rn 'unpkg.com/@policyengine/ui-kit' app/ --include='*.tsx'
```

### 4. Package Manager
Expand Down
2 changes: 1 addition & 1 deletion agents/dashboard/dashboard-planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ tests:

design_compliance:
- name: "uses_design_tokens"
description: "No hardcoded colors - all from @policyengine/design-system"
description: "No hardcoded colors - all from @policyengine/ui-kit"
- name: "inter_font"
description: "Inter font loaded and applied"
- name: "sentence_case"
Expand Down
2 changes: 1 addition & 1 deletion skills/content/content-generation-skill/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ logo_path: Path to PolicyEngine logo

### Colors

Source of truth: `policyengine-design-skill` and `@policyengine/design-system` CSS tokens.
Source of truth: `policyengine-design-skill` and `@policyengine/ui-kit` CSS tokens.
Social image generation runs in headless Chrome with design tokens loaded, so use CSS vars where possible. Fallback hex values for non-browser contexts:

| Token | CSS var | Hex |
Expand Down
2 changes: 1 addition & 1 deletion skills/documentation/policyengine-design-skill/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ https://raw.githubusercontent.com/PolicyEngine/policyengine-app-v2/main/app/publ
|-------------|-------------|------------|
| **Standalone tool** | `@import "@policyengine/ui-kit/theme.css"` | Google Fonts: Inter |
| **app-v2** | `import { colors } from '@/designTokens'` | Built-in (Mantine + Inter) |
| **Python chart** | Hardcode or load `tokens.json` from `@policyengine/design-system` | Inter for Plotly |
| **Python chart** | Hardcode or load `tokens.json` from `@policyengine/ui-kit` | Inter for Plotly |
| **Blog HTML** | Hardcode from token values | Google Fonts: Inter |

## Accessibility
Expand Down
4 changes: 2 additions & 2 deletions skills/tools-and-apis/policyengine-app-skill/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Architecture and patterns for developing the main PolicyEngine web application a
```
policyengine-app-v2/
├── packages/
│ └── design-system/ # @policyengine/design-system (npm)
│ └── design-system/ # @policyengine/ui-kit/legacy (npm, design-system deprecated)
├── app/ # Main Vite application
│ ├── src/
│ │ ├── pages/ # Page components (*.page.tsx)
Expand Down Expand Up @@ -47,7 +47,7 @@ policyengine-app-v2/
| Routing | React Router v7 (`createBrowserRouter`) |
| Charts | **Recharts** (standard), Plotly (maps only) |
| Server state | React Query |
| Design tokens | `@policyengine/design-system` |
| Design tokens | `@policyengine/ui-kit/legacy` (formerly design-system) |
| Language | TypeScript |
| Formatting | Prettier + ESLint |
| Testing | Vitest |
Expand Down