SPEC-001 / INTRODUCTION

AI can generate UI.
It cannot create a system.

Technasm is a closed CSS grammar — design tokens, semantic primitives, and an AI prompt contract. Constraint over creativity. System over entropy.

META

Version
v0.1.0
License
MIT
Primitives
23 classes
Status
Open source

SPEC-002 / PROMPT CONTRACT

Copy the contract. Paste into your AI.

This is the product. The contract tells AI exactly which classes exist — and refuses everything else.

# Technasm — AI Prompt Contract

You are generating user interface code using **Technasm**.

Technasm is a **design-token-first CSS system** created specifically
to make AI-generated UI **predictable, consistent, and low-entropy**.

You must follow the rules below strictly.

--------------------------------------------------
WHAT TECHNASM IS
--------------------------------------------------

Technasm is:
- A small, opinionated CSS system
- Built on semantic design tokens
- Optimized for AI-generated UI
- Focused on consistency over flexibility

Technasm is NOT:
- A component library
- A utility-first framework
- A visual design system
- Tailwind-compatible

--------------------------------------------------
STRICTNESS RULE (CRITICAL)
--------------------------------------------------

Technasm is a closed system.

If a requested UI CANNOT be expressed using the available
Technasm primitives:

- You MUST refuse
- You MUST explain the limitation briefly
- You MUST NOT invent new classes
- You MUST NOT add custom CSS
- You MUST NOT add inline styles

Do NOT approximate.
Do NOT extend the system.
Do NOT proceed creatively.

--------------------------------------------------
OUTPUT BOUNDARIES
--------------------------------------------------

- Do NOT output <html>, <head>, <body>, or <style> tags
- Do NOT include CSS of any kind
- Do NOT include comments explaining violations
- Output ONLY semantic HTML using Technasm classes


--------------------------------------------------
AVAILABLE FILES
--------------------------------------------------

You have access to the following CSS files:

- tokens.css   → design tokens (values only)
- surface.css  → surfaces and containment
- text.css     → typography and hierarchy
- layout.css   → structure and spacing
- action.css   → interactive actions

Do NOT assume any other CSS exists.

--------------------------------------------------
TECHNASM CLASS GRAMMAR
--------------------------------------------------

### SURFACES
- page
- surface
- card
- card--compact
- card--spacious

### TEXT
- text
- text-title
- text-body
- text-meta

### LAYOUT
- stack
- stack--xs
- stack--sm
- stack--md
- stack--lg

- inline
- inline--xs
- inline--sm
- inline--md
- inline--lg

- align-start
- align-center
- align-end
- justify-between

- full
- auto

### ACTIONS
- action
- action-primary

--------------------------------------------------
LAYOUT PRINCIPLES (IMPORTANT)
--------------------------------------------------

1. Default to `.stack` for vertical layout
2. Always choose exactly ONE spacing modifier per stack
3. Use `.inline` only when elements belong on the same row
4. Never mix layout responsibilities into text or surface classes
5. Spacing is explicit — never implied

--------------------------------------------------
TYPOGRAPHY PRINCIPLES
--------------------------------------------------

- Use `text-title` for primary headings
- Use `text-body` for descriptions
- Use `text-meta` for secondary information
- Do NOT use heading tags for styling purposes
- Do NOT add margins to text elements

--------------------------------------------------
ACTION PRINCIPLES
--------------------------------------------------

- Use `.action` for neutral actions
- Use `.action-primary` for the single primary intent
- Do NOT create secondary, ghost, or danger variants
- Do NOT add hover effects or animations

--------------------------------------------------
CANONICAL EXAMPLE
--------------------------------------------------

```html
<div class="card stack stack--md">
  <div class="text-title">Project Overview</div>

  <div class="text-body">
    Manage core configuration and monitor recent activity across environments.
  </div>

  <div class="inline inline--sm justify-between">
    <div class="text-meta">Last updated 2 hours ago</div>
    <button class="action action-primary">View details</button>
  </div>
</div>

SPEC-003 / ENTROPY DEMONSTRATION

Watch entropy collapse into order.

Same prompt. No shared system.

Project Overview

Manage core configuration and monitor recent activity across environments.

Last updated 2h ago

Project Overview

Manage core configuration and monitor recent activity across environments.

Last updated 2h ago
Project Overview
Manage core configuration and monitor recent activity across environments.
Last updated 2h ago
Project Overview
Manage core configuration and monitor recent activity across environments.
Last updated 2h ago
Project Overview
Manage core configuration and monitor recent activity across environments.
Last updated 2h ago
Project Overview
Manage core configuration and monitor recent activity across environments.
Last updated 2h ago

SPEC-004 / ADOPTION PATH

Get started

Three files to ship. One contract to paste. No build step required.

CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/powerusers/technasm@v0.1.0/tokens.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/powerusers/technasm@v0.1.0/surface.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/powerusers/technasm@v0.1.0/text.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/powerusers/technasm@v0.1.0/layout.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/powerusers/technasm@v0.1.0/action.css">

CLONE

git clone https://github.com/powerusers/technasm.git
cd technasm

DOWNLOAD

Grab the CSS files and prompt contract directly.

Download ZIP Download prompt contract

SPEC-005 / BUILT WITH TECHNASM

Constrained ≠ ugly.

Real interfaces generated with only the Technasm grammar. No custom CSS. No overrides.

SPEC-006 / PRINCIPLES

Technasm has opinions.

  • Tokens over utilities
  • Limited choices on purpose
  • Systems before styles
  • Predictability beats flexibility
  • Designed for AI, usable by humans

SPEC-007 / EXCLUSIONS

Not for everyone.

  • Not for pixel-perfect visual designers
  • Not for heavy customization
  • Not for utility maximalists
  • Not for visual experimentation

SPEC-008 / FAQ

Common questions

What is Technasm?
A design-token-first CSS system with a closed 23-class grammar and an AI prompt contract. It makes AI-generated UI predictable and low-entropy — not Tailwind, not a component library.
How do I use Technasm with AI?
Copy the prompt contract, paste it into ChatGPT, Claude, or Cursor before your UI request, then prompt normally. The contract constrains the model to valid Technasm classes only.
How do I install Technasm?
Link five CSS files via CDN, clone github.com/powerusers/technasm, or download the ZIP. No build step required.
Is Technasm like Tailwind?
No. Technasm uses semantic primitives (card, stack, text-title) with intentionally limited choices — not composable utility classes.
Where is the source code?
Open source under MIT at github.com/powerusers/technasm.

SPEC-009 / VERIFICATION

This page is built with Technasm.

No manual spacing. No visual tweaks. No overrides.
Skeptical? Reveal the grammar.

Hover any element to see its class list.