red-proto 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ # Farb-Tokens
2
+
3
+ *Ersetze die Beispielwerte durch die Werte aus deinem Design System.*
4
+
5
+ ## Primärfarben
6
+
7
+ | Token-Name | Hex-Wert | Verwendung |
8
+ |---------------------|-----------|-----------------------------------------|
9
+ | `color-primary-50` | `#EFF6FF` | Sehr heller Hintergrund, Hover-Tint |
10
+ | `color-primary-100` | `#DBEAFE` | Heller Hintergrund, aktive Badges |
11
+ | `color-primary-300` | `#93C5FD` | Disabled-Zustand, Borders |
12
+ | `color-primary-500` | `#3B82F6` | Standard Primärfarbe |
13
+ | `color-primary-600` | `#2563EB` | Hover-Zustand, aktive Links |
14
+ | `color-primary-700` | `#1D4ED8` | Pressed/Active-Zustand |
15
+ | `color-primary-900` | `#1E3A8A` | Sehr dunkle Variante, Icons auf hell |
16
+
17
+ ## Sekundärfarben
18
+
19
+ | Token-Name | Hex-Wert | Verwendung |
20
+ |-----------------------|-----------|---------------------------------------|
21
+ | `color-secondary-100` | `#F3F4F6` | Sekundärer Hintergrund |
22
+ | `color-secondary-500` | `#6B7280` | Sekundäre Aktionen, deaktivierter Text |
23
+ | `color-secondary-700` | `#374151` | Sekundäre Buttons im Hover |
24
+
25
+ ## Semantic-Farben
26
+
27
+ | Token-Name | Hex-Wert | Verwendung |
28
+ |---------------------|-----------|----------------------------------------|
29
+ | `color-success-100` | `#D1FAE5` | Erfolgs-Hintergrund (Banners, Badges) |
30
+ | `color-success-500` | `#10B981` | Erfolgs-Iconfarbe, positive Aktionen |
31
+ | `color-success-700` | `#047857` | Erfolgs-Text auf hellem Hintergrund |
32
+ | `color-warning-100` | `#FEF3C7` | Warn-Hintergrund |
33
+ | `color-warning-500` | `#F59E0B` | Warn-Icon, Hinweise |
34
+ | `color-warning-700` | `#B45309` | Warn-Text auf hellem Hintergrund |
35
+ | `color-error-100` | `#FEE2E2` | Fehler-Hintergrund (Fehlermeldungen) |
36
+ | `color-error-500` | `#EF4444` | Fehler-Icon, Pflichtfelder |
37
+ | `color-error-700` | `#B91C1C` | Fehler-Text auf hellem Hintergrund |
38
+ | `color-info-100` | `#DBEAFE` | Info-Hintergrund |
39
+ | `color-info-500` | `#3B82F6` | Info-Icon |
40
+
41
+ ## Neutralfarben / Graustufen
42
+
43
+ | Token-Name | Hex-Wert | Verwendung |
44
+ |-------------------|-----------|-----------------------------------------|
45
+ | `color-neutral-0` | `#FFFFFF` | Weiß / Haupt-Hintergrund |
46
+ | `color-neutral-50`| `#F9FAFB` | Seiten-Hintergrund |
47
+ | `color-neutral-100`| `#F3F4F6`| Karten-Hintergrund, Input-Hintergrund |
48
+ | `color-neutral-200`| `#E5E7EB`| Trennlinien, Borders |
49
+ | `color-neutral-400`| `#9CA3AF`| Placeholder-Text |
50
+ | `color-neutral-600`| `#4B5563`| Sekundärer Body-Text |
51
+ | `color-neutral-800`| `#1F2937`| Primärer Body-Text |
52
+ | `color-neutral-900`| `#111827`| Überschriften |
53
+
54
+ ## Surface-Tokens (semantische Aliases)
55
+
56
+ | Token-Name | Referenziert | Verwendung |
57
+ |-------------------------|----------------------|-------------------------------|
58
+ | `color-bg-page` | `color-neutral-50` | Seiten-Hintergrund |
59
+ | `color-bg-surface` | `color-neutral-0` | Karten, Modals, Panels |
60
+ | `color-bg-muted` | `color-neutral-100` | Inputs, deaktivierte Bereiche |
61
+ | `color-text-primary` | `color-neutral-900` | Haupttext |
62
+ | `color-text-secondary` | `color-neutral-600` | Hilfstext, Labels |
63
+ | `color-text-disabled` | `color-neutral-400` | Deaktivierter Text |
64
+ | `color-text-on-primary` | `color-neutral-0` | Text auf Primärfarbe |
65
+ | `color-border-default` | `color-neutral-200` | Standard-Border |
66
+ | `color-border-focus` | `color-primary-500` | Focus-Ring |
@@ -0,0 +1,53 @@
1
+ # Motion-Tokens (Transitions & Animationen)
2
+
3
+ *Optional – ersetze oder ergänze nach Bedarf.*
4
+
5
+ ## Durations
6
+
7
+ | Token-Name | Wert | Verwendung |
8
+ |---------------------|---------|---------------------------------------------------------|
9
+ | `duration-instant` | `0ms` | Kein Übergang (z.B. bei prefers-reduced-motion) |
10
+ | `duration-fast` | `100ms` | Sehr schnelle UI-Reaktionen (Hover-Highlights) |
11
+ | `duration-normal` | `200ms` | Standard UI-Übergänge (Buttons, Links, Inputs) |
12
+ | `duration-moderate` | `300ms` | Komponenten ein-/ausblenden, Tabs wechseln |
13
+ | `duration-slow` | `500ms` | Panels, Sidebars, größere Layout-Änderungen |
14
+ | `duration-slower` | `700ms` | Komplexe Animationen, Onboarding-Flows |
15
+
16
+ ## Easing-Funktionen
17
+
18
+ | Token-Name | CSS-Wert | Verwendung |
19
+ |----------------------|---------------------------------|------------------------------------------|
20
+ | `ease-linear` | `linear` | Fortschrittsbalken, Spinner |
21
+ | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` | Elemente die verschwinden (fade out) |
22
+ | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` | Elemente die erscheinen (fade in, slide) |
23
+ | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` | Standard UI-Übergänge |
24
+ | `ease-bounce` | `cubic-bezier(0.34, 1.56, 0.64, 1)` | Spielerische, springende Animationen |
25
+ | `ease-spring` | `cubic-bezier(0.175, 0.885, 0.32, 1.275)` | Modals, Tooltips erscheinen |
26
+
27
+ ## Zusammengesetzte Transitions
28
+
29
+ | Token-Name | Wert | Verwendung |
30
+ |---------------------------|----------------------------------------------|-------------------------------|
31
+ | `transition-color` | `color 200ms ease-in-out` | Textfarbe, Ikonfarbe |
32
+ | `transition-bg` | `background-color 200ms ease-in-out` | Hintergrundfarbe |
33
+ | `transition-border` | `border-color 200ms ease-in-out` | Border-Farbe (Inputs, Fokus) |
34
+ | `transition-shadow` | `box-shadow 200ms ease-in-out` | Schatten-Übergänge |
35
+ | `transition-opacity` | `opacity 200ms ease-in-out` | Ein-/Ausblenden |
36
+ | `transition-transform` | `transform 300ms ease-out` | Slides, Scales |
37
+ | `transition-all-fast` | `all 100ms ease-in-out` | Schnelle Multi-Property |
38
+ | `transition-all` | `all 200ms ease-in-out` | Standard Multi-Property |
39
+
40
+ ## Accessibility-Hinweis
41
+
42
+ Respektiere `prefers-reduced-motion`:
43
+
44
+ ```css
45
+ @media (prefers-reduced-motion: reduce) {
46
+ * {
47
+ animation-duration: 0.01ms !important;
48
+ transition-duration: 0.01ms !important;
49
+ }
50
+ }
51
+ ```
52
+
53
+ Alle Übergänge müssen auch ohne Animation funktionieren – sie sind Enhancement, kein Kern der UX.
@@ -0,0 +1,33 @@
1
+ # Shadow-Tokens (Elevation-System)
2
+
3
+ *Ersetze die Beispielwerte durch die Werte aus deinem Design System.*
4
+
5
+ ## Elevation-Skala
6
+
7
+ | Token-Name | CSS-Wert | Verwendung |
8
+ |-----------------|--------------------------------------------------------------------------|-----------------------------------------------|
9
+ | `shadow-none` | `none` | Kein Schatten (flache Elemente) |
10
+ | `shadow-xs` | `0 1px 2px 0 rgb(0 0 0 / 0.05)` | Subtile Abhebung (Inputs im Fokus) |
11
+ | `shadow-sm` | `0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)` | Buttons, leicht abgehobene Elemente |
12
+ | `shadow-md` | `0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)` | Cards, Karten, Standard-Panels |
13
+ | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)`| Dropdowns, Popovers, Floating-Elemente |
14
+ | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10)`| Modals, Dialoge |
15
+ | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` | Sehr prominente Overlay-Elemente |
16
+
17
+ ## Semantische Shadow-Tokens
18
+
19
+ | Token-Name | Referenziert | Verwendung |
20
+ |----------------------|---------------|--------------------------------------|
21
+ | `shadow-card` | `shadow-md` | Standard Card-Elevation |
22
+ | `shadow-dropdown` | `shadow-lg` | Dropdown-Menüs, Selects |
23
+ | `shadow-modal` | `shadow-xl` | Modals, Dialoge |
24
+ | `shadow-button` | `shadow-sm` | Buttons mit Elevation-Effekt |
25
+ | `shadow-input-focus` | `shadow-xs` | Input-Fokus-Ring (zusätzlich zu Outline) |
26
+ | `shadow-sticky` | `shadow-md` | Sticky Header beim Scrollen |
27
+
28
+ ## Inner Shadows
29
+
30
+ | Token-Name | CSS-Wert | Verwendung |
31
+ |-------------------|-----------------------------------------|---------------------------------|
32
+ | `shadow-inner` | `inset 0 2px 4px 0 rgb(0 0 0 / 0.05)` | Inputs, vertiefte Bereiche |
33
+ | `shadow-inner-sm` | `inset 0 1px 2px 0 rgb(0 0 0 / 0.05)` | Subtile Vertiefung |
@@ -0,0 +1,57 @@
1
+ # Spacing-Tokens
2
+
3
+ *Ersetze die Beispielwerte durch die Werte aus deinem Design System. Basis-Unit: 4px.*
4
+
5
+ ## Spacing-Scale
6
+
7
+ | Token-Name | Wert | px-Äquivalent | Verwendung |
8
+ |-------------|----------|---------------|------------------------------------------------|
9
+ | `spacing-0` | `0` | 0px | Reset, kein Abstand |
10
+ | `spacing-px` | `1px` | 1px | Trennlinien, Borders |
11
+ | `spacing-0.5`| `0.125rem`| 2px | Minimale innere Abstände, Icon-Gaps |
12
+ | `spacing-1` | `0.25rem`| 4px | Sehr enge Abstände (Badge-Padding, Icon-Gap) |
13
+ | `spacing-1.5`| `0.375rem`| 6px | Kleine innere Abstände |
14
+ | `spacing-2` | `0.5rem` | 8px | Kompaktes Padding (Tags, Chips) |
15
+ | `spacing-3` | `0.75rem`| 12px | Standard Button-Padding (vertikal) |
16
+ | `spacing-4` | `1rem` | 16px | Standard-Abstand, Component-Padding |
17
+ | `spacing-5` | `1.25rem`| 20px | Etwas mehr Luft |
18
+ | `spacing-6` | `1.5rem` | 24px | Card-Padding, Section-Abstände |
19
+ | `spacing-8` | `2rem` | 32px | Größere Abstände zwischen Sections |
20
+ | `spacing-10`| `2.5rem` | 40px | Starke Trennung, Abstand vor Überschriften |
21
+ | `spacing-12`| `3rem` | 48px | Seitenbereich-Abstände |
22
+ | `spacing-16`| `4rem` | 64px | Sehr große Abstände, Hero-Sections |
23
+ | `spacing-20`| `5rem` | 80px | Layout-Level-Abstände |
24
+ | `spacing-24`| `6rem` | 96px | Maximale Abstände, große Layouts |
25
+
26
+ ## Semantische Spacing-Tokens
27
+
28
+ Alias-Namen für häufige Verwendungskontexte:
29
+
30
+ | Token-Name | Referenziert | Verwendung |
31
+ |--------------------------|---------------|----------------------------------------|
32
+ | `spacing-component-xs` | `spacing-2` | Kompaktes Komponenten-Padding |
33
+ | `spacing-component-sm` | `spacing-3` | Kleines Komponenten-Padding |
34
+ | `spacing-component-md` | `spacing-4` | Standard Komponenten-Padding |
35
+ | `spacing-component-lg` | `spacing-6` | Großes Komponenten-Padding |
36
+ | `spacing-gap-xs` | `spacing-2` | Enger Gap zwischen Elementen |
37
+ | `spacing-gap-sm` | `spacing-3` | Kleiner Gap (Icon + Text) |
38
+ | `spacing-gap-md` | `spacing-4` | Standard-Gap zwischen Elementen |
39
+ | `spacing-gap-lg` | `spacing-6` | Größerer Gap zwischen Gruppen |
40
+ | `spacing-section-sm` | `spacing-8` | Kleiner Abstand zwischen Sections |
41
+ | `spacing-section-md` | `spacing-12` | Standard Section-Abstand |
42
+ | `spacing-section-lg` | `spacing-16` | Großer Section-Abstand |
43
+ | `spacing-page-x` | `spacing-6` | Horizontaler Seiten-Rand (Mobile) |
44
+ | `spacing-page-x-desktop` | `spacing-8` | Horizontaler Seiten-Rand (Desktop) |
45
+
46
+ ## Border-Radius
47
+
48
+ | Token-Name | Wert | Verwendung |
49
+ |-------------------|-------------|-----------------------------------------|
50
+ | `radius-none` | `0` | Kein Radius, scharfe Ecken |
51
+ | `radius-sm` | `0.125rem` | 2px – sehr kleine Elemente (Badges) |
52
+ | `radius-default` | `0.25rem` | 4px – Standard (Inputs, Cards) |
53
+ | `radius-md` | `0.375rem` | 6px – Buttons, Dropdowns |
54
+ | `radius-lg` | `0.5rem` | 8px – Karten, Modals |
55
+ | `radius-xl` | `0.75rem` | 12px – Große Panels |
56
+ | `radius-2xl` | `1rem` | 16px – Sehr abgerundete Elemente |
57
+ | `radius-full` | `9999px` | Runde Elemente (Avatare, Pills, Tags) |
@@ -0,0 +1,70 @@
1
+ # Typografie-Tokens
2
+
3
+ *Ersetze die Beispielwerte durch die Werte aus deinem Design System.*
4
+
5
+ ## Schriftfamilien
6
+
7
+ | Token-Name | Wert | Verwendung |
8
+ |----------------------|-----------------------------------------|-----------------------------------|
9
+ | `font-family-base` | `'Inter', system-ui, sans-serif` | Fließtext, Labels, UI-Elemente |
10
+ | `font-family-heading`| `'Inter', system-ui, sans-serif` | Überschriften (falls abweichend) |
11
+ | `font-family-mono` | `'JetBrains Mono', 'Courier New', mono` | Code, technische Werte |
12
+
13
+ ## Schriftgrößen
14
+
15
+ | Token-Name | Wert | px-Äquivalent | Verwendung |
16
+ |----------------|---------|---------------|--------------------------------------|
17
+ | `text-xs` | `0.75rem` | 12px | Badges, Captions, Meta-Infos |
18
+ | `text-sm` | `0.875rem`| 14px | Labels, Helper-Text, Tabelleninhalt |
19
+ | `text-base` | `1rem` | 16px | Standard Body-Text |
20
+ | `text-lg` | `1.125rem`| 18px | Größerer Body-Text, Intro-Text |
21
+ | `text-xl` | `1.25rem` | 20px | Kleine Überschriften (h4, h5) |
22
+ | `text-2xl` | `1.5rem` | 24px | Abschnittsüberschriften (h3) |
23
+ | `text-3xl` | `1.875rem`| 30px | Seitenüberschriften (h2) |
24
+ | `text-4xl` | `2.25rem` | 36px | Hero-Überschriften (h1) |
25
+ | `text-5xl` | `3rem` | 48px | Display-Text, große Kennzahlen |
26
+
27
+ ## Schriftgewichte
28
+
29
+ | Token-Name | Wert | Verwendung |
30
+ |--------------------|-------|----------------------------------------|
31
+ | `font-weight-normal` | 400 | Standard Body-Text |
32
+ | `font-weight-medium` | 500 | Labels, leichte Betonung |
33
+ | `font-weight-semibold`| 600| Buttons, Navigationsitems, Subheadings |
34
+ | `font-weight-bold` | 700 | Überschriften, starke Betonung |
35
+
36
+ ## Line-Heights
37
+
38
+ | Token-Name | Wert | Verwendung |
39
+ |----------------------|-------|------------------------------------|
40
+ | `leading-tight` | 1.25 | Überschriften, kurze Labels |
41
+ | `leading-snug` | 1.375 | Subheadings, Buttons |
42
+ | `leading-normal` | 1.5 | Standard Body-Text |
43
+ | `leading-relaxed` | 1.625 | Langer Fließtext, bessere Lesbarkeit|
44
+
45
+ ## Letter-Spacing
46
+
47
+ | Token-Name | Wert | Verwendung |
48
+ |-----------------------|------------|-----------------------------------|
49
+ | `tracking-tight` | `-0.025em` | Große Überschriften |
50
+ | `tracking-normal` | `0` | Standard |
51
+ | `tracking-wide` | `0.025em` | Buttons, Badges, Uppercase-Labels |
52
+ | `tracking-wider` | `0.05em` | Sehr kurze Uppercase-Labels |
53
+
54
+ ## Text-Styles (zusammengesetzte Tokens)
55
+
56
+ Fertige Kombinationen für häufige Elemente:
57
+
58
+ | Style-Name | Größe | Gewicht | Line-Height | Verwendung |
59
+ |------------------|------------|---------|---------------|-------------------------|
60
+ | `style-h1` | `text-4xl` | bold | `leading-tight` | Seitentitel |
61
+ | `style-h2` | `text-3xl` | bold | `leading-tight` | Abschnittstittel |
62
+ | `style-h3` | `text-2xl` | semibold| `leading-snug` | Card-Titel, Panels |
63
+ | `style-h4` | `text-xl` | semibold| `leading-snug` | Unterabschnitte |
64
+ | `style-body-lg` | `text-lg` | normal | `leading-relaxed`| Intro-Texte |
65
+ | `style-body` | `text-base`| normal | `leading-normal` | Standard-Fließtext |
66
+ | `style-body-sm` | `text-sm` | normal | `leading-normal` | Hilfstext, Captions |
67
+ | `style-label` | `text-sm` | medium | `leading-tight` | Formular-Labels |
68
+ | `style-button` | `text-sm` | semibold| `leading-tight` | Button-Text |
69
+ | `style-caption` | `text-xs` | normal | `leading-normal` | Bildunterschriften |
70
+ | `style-code` | `text-sm` | normal | `leading-normal` | Code-Blöcke |
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "red-proto",
3
+ "version": "0.4.0",
4
+ "description": "AI-powered product development framework for Claude Code – from idea to tested prototype",
5
+ "bin": {
6
+ "red-proto": "./bin/install.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "commands/",
11
+ "agents/",
12
+ "design-system/"
13
+ ],
14
+ "scripts": {
15
+ "test": "node bin/install.js"
16
+ },
17
+ "keywords": [
18
+ "claude-code",
19
+ "ai",
20
+ "product-development",
21
+ "prototyping",
22
+ "framework",
23
+ "claude"
24
+ ],
25
+ "author": "Enrico Reinsdorf <eltuctuc@gmail.com>",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/eltuctuc/red-create-prototyp-project.git"
30
+ },
31
+ "homepage": "https://github.com/eltuctuc/red-create-prototyp-project#readme",
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ },
35
+ "type": "module"
36
+ }