design-system-designresourceskit

design-system-designresourceskit is a cursor rule for Cursor from duckduckgo/apple-browsers. It costs 3,138 tokens per session, scanned A, original, Apache-2.0.

A shared Swift package containing the iOS design system's colors, typography, design tokens, and foundational styles. Design tokens are named values that keep visual choices consistent across an app.

In plain words
What is it for?
Use it when choosing colors, type styles, or other foundational design values for DuckDuckGo iOS and iPadOS interfaces.
Why use it?
It prevents scattered visual styles and supports consistency, accessibility, and light and dark modes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/duckduckgo/apple-browsers/design-system-designresourceskit
Clone the repo
git clone --depth 1 https://github.com/duckduckgo/apple-browsers

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-system-designresourceskit

README.md
[![agentmods](https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/design-system-designresourceskit.svg)](https://agentmods.dev/rules/duckduckgo/apple-browsers/design-system-designresourceskit)
Your own site
<a href="https://agentmods.dev/rules/duckduckgo/apple-browsers/design-system-designresourceskit"><img src="https://agentmods.dev/badge/rules/duckduckgo/apple-browsers/design-system-designresourceskit.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,138 This file is loaded in full into every session.
When invoked 3,138 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03138 $0.03138
Opus 5 $0.01569 $0.01569
Sonnet 5 $0.00628 $0.00628
Haiku 4.5 $0.00314 $0.00314

Measured 4d ago against content hash 86423645f2ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

design-system-designresourceskit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/design-system-designresourceskit.mdc · 356 lines

How it starts

The opening of the file, as written. The whole thing — 356 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DuckDuckGo iOS Design System & DesignResourcesKit (DRK)

Overview

The DuckDuckGo iOS design system is implemented through DesignResourcesKit (DRK), a shared Swift package that contains our design tokens, type styles, colors, and design system elements.

Repository: https://github.com/duckduckgo/DesignResourcesKit

Figma Designs: 🖱️ iOS & iPadOS Components

What DRK Contains

Currently Included:

  • Type styles and typography (based on system styles)
  • Semantic color system (with light/dark mode support)
  • Design tokens and foundations

🔄 Future Expansion:

  • Reusable components (when patterns emerge)
  • Advanced interaction patterns

Not Included:

  • Icons (remain in iOS app directly for now)

⚠️ Critical Rule: Don't Break the Design System

If you take only one thing away from this documentation: Don't add new colors or type styles outside of the design system without reading the guidelines below.

Breaking the design system:

  • Undermines consistency across the app
  • Creates maintenance debt with scattered styles
  • Breaks accessibility features like dynamic type
  • Fragments the user experience

Typography System

Philosophy

Our typography system is based on system styles rather than hardcoded sizes. This ensures:

  • Automatic dynamic type support for accessibility
  • Consistent scaling across different user preferences
  • Platform-appropriate styling that feels native

UIKit Usage

DRK defines static functions on UIFont for all typography.

Example: See uikit-typography-usage.swift

Available Typography Styles

Example: See uikit-typography-styles.swift

Read the full file on GitHub · 356 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 356 lines · 3,138 tokens per session scan A 86423645f2ec

Subscribe to this mod's changes

design-system-designresourceskit is a cursor rule published in the GitHub repository duckduckgo/apple-browsers (251 stars, last pushed today), licensed Apache-2.0. It adds 3,138 tokens to every session, about $0.0157 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.