ux-ui-foundations

ux-ui-foundations is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 2,726 tokens per session, scanned A, original, MIT.

A UI and UX foundation guide for building Angular interfaces with Modus 2 and Tailwind CSS version 4. UI means the visible interface, while UX means how people use it.

In plain words
What is it for?
Use it to choose semantic colors and establish consistent interface foundations in an Angular application.
Why use it?
It maps design-system concepts such as page backgrounds, text, cards, and primary colors to the project’s Tailwind classes, reducing inconsistent styling.

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/julianoczkowski/create-trimble-app/ux-ui-foundations
Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

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 ux-ui-foundations

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/ux-ui-foundations.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/ux-ui-foundations)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/ux-ui-foundations"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/ux-ui-foundations.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,726 This file is loaded in full into every session.
When invoked 2,726 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.02726 $0.02726
Opus 5 $0.01363 $0.01363
Sonnet 5 $0.00545 $0.00545
Haiku 4.5 $0.00273 $0.00273

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

Security

Grade A, and why

ux-ui-foundations 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 6d 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.

templates/angular/.cursor/rules/ux/ux-ui-foundations.mdc · 236 lines

How it starts

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

UI/UX Foundations for AI Agents

Scope: Modus 2 Angular Components + Tailwind v4 (Real Config Alignment)

This file is grounded in your real Modus 2 Angular + Tailwind v4 setup. It uses the exact variables, color tokens, and CSS conventions from your implementation.


Foundation & Setup

1 Color System — From Angular Design System

Semantic Mapping

Use Tailwind v4 tokens defined in your src/styles.css. Do not use arbitrary colors.

Purpose Tailwind Token CSS Variable (from src/styles.css)
Background bg-background --backgroundvar(--modus-wc-color-base-page)
Foreground text-foreground --foregroundvar(--modus-wc-color-base-content)
Card bg-card --cardvar(--modus-wc-color-base-100)
Card Text text-card-foreground --card-foregroundvar(--modus-wc-color-base-content)
Primary bg-primary / text-primary-foreground --primaryvar(--modus-wc-color-info)
Secondary bg-secondary / text-secondary-foreground --secondaryvar(--modus-wc-color-base-300)
Muted bg-muted / text-muted-foreground --mutedvar(--modus-wc-color-base-200)
Success bg-success / text-success-foreground --successvar(--modus-wc-color-success)
Warning bg-warning / text-warning-foreground --warningvar(--modus-wc-color-warning)
Error bg-error / text-error-foreground --errorvar(--modus-wc-color-error)
Border border-border --bordervar(--modus-wc-color-base-200)
Ring ring --ringvar(--modus-wc-color-info)

Read the full file on GitHub · 236 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. 6d ago First seen · 236 lines · 2,726 tokens per session scan A 3c310e08926e

Subscribe to this mod's changes

ux-ui-foundations is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It adds 2,726 tokens to every session, about $0.0136 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-08-31.