@michaelmusyoka/eng-os-kit 1.0.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.
Files changed (33) hide show
  1. package/README.md +104 -0
  2. package/bin/eng-os.mjs +222 -0
  3. package/lib/targets.mjs +49 -0
  4. package/package.json +14 -0
  5. package/rules/engineering-contract.md +51 -0
  6. package/scripts/capture-evidence.sh +38 -0
  7. package/scripts/placeholder-audit.sh +51 -0
  8. package/scripts/validate-registry.mjs +71 -0
  9. package/skills/api-database-contract/SKILL.md +38 -0
  10. package/skills/code-review/SKILL.md +39 -0
  11. package/skills/engineering-contract/SKILL.md +40 -0
  12. package/skills/engineering-contract/references/definition-of-done.md +47 -0
  13. package/skills/implementation-prompt/SKILL.md +38 -0
  14. package/skills/incident-response/SKILL.md +34 -0
  15. package/skills/release-gate/SKILL.md +30 -0
  16. package/skills/repo-inspection/SKILL.md +41 -0
  17. package/skills/security-review/SKILL.md +43 -0
  18. package/skills/security-review/references/prompt-injection.md +18 -0
  19. package/skills/signature-dark-ui/SKILL.md +72 -0
  20. package/skills/signature-dark-ui/references/components.md +449 -0
  21. package/skills/signature-dark-ui/references/layout-and-motion.md +1246 -0
  22. package/skills/test-strategy/SKILL.md +36 -0
  23. package/skills/traceability-audit/SKILL.md +46 -0
  24. package/skills/verification-evidence/SKILL.md +30 -0
  25. package/state/decision-log.md +6 -0
  26. package/state/feature-registry.json +18 -0
  27. package/state/feature-registry.schema.json +29 -0
  28. package/state/known-issues.md +6 -0
  29. package/templates/adr.md +19 -0
  30. package/templates/feature-record.md +40 -0
  31. package/templates/implementation-prompt.md +49 -0
  32. package/templates/incident-report.md +29 -0
  33. package/templates/verification-record.md +45 -0
@@ -0,0 +1,1246 @@
1
+ # Layout, motion and signature reference
2
+
3
+ Contents: container system, animation philosophy and allowed motion, the signature element and where to use it, section and hero design, trust sections, dashboard and sidebar, KPI cards, mobile and responsive rules, accessibility, over-use warnings, visual density and depth, section dividers.
4
+
5
+ # 11. CONTAINER SYSTEM
6
+
7
+ Use a maximum content width around:
8
+
9
+ ```text
10
+ 1200px
11
+ ```
12
+
13
+ with responsive horizontal padding.
14
+
15
+ Desktop:
16
+
17
+ ```text
18
+ 20–32px
19
+ ```
20
+
21
+ Mobile:
22
+
23
+ ```text
24
+ 16–20px
25
+ ```
26
+
27
+ The reference consistently uses a roughly 1200px content frame.
28
+
29
+ Content should feel aligned.
30
+
31
+ Do not create multiple unrelated horizontal alignment systems.
32
+
33
+ ---
34
+
35
+ # 25. ANIMATION PHILOSOPHY
36
+
37
+ Animation should communicate:
38
+
39
+ - state
40
+ - hierarchy
41
+ - interaction
42
+ - loading
43
+ - progress
44
+
45
+ Animation should NOT exist simply because an animation library is available.
46
+
47
+ Use motion as punctuation.
48
+
49
+ Not as decoration everywhere.
50
+
51
+ ---
52
+
53
+ # 26. DEFAULT MOTION SPEED
54
+
55
+ Use:
56
+
57
+ ```css
58
+ --transition:
59
+ 220ms cubic-bezier(0.4,0,0.2,1);
60
+ ```
61
+
62
+ This matches the reference interaction rhythm.
63
+
64
+ Suggested ranges:
65
+
66
+ ```text
67
+ micro interaction: 150–220ms
68
+ hover: 180–250ms
69
+ component entrance: 300–500ms
70
+ large reveal: 500–800ms
71
+ data/progress animation: 500–800ms
72
+ ambient animation: 2–6s
73
+ ```
74
+
75
+ ---
76
+
77
+ # 27. ALLOWED ANIMATIONS
78
+
79
+ Use:
80
+
81
+ ### Fade + translate
82
+
83
+ ```text
84
+ opacity 0 → 1
85
+ translateY(12px) → 0
86
+ ```
87
+
88
+ ### Scale entrance
89
+
90
+ ```text
91
+ scale(.97) → 1
92
+ ```
93
+
94
+ ### Pulse
95
+
96
+ For:
97
+
98
+ - active indicators
99
+ - live status
100
+ - signature mark
101
+
102
+ ### Shimmer
103
+
104
+ For:
105
+
106
+ - promotional banners
107
+ - loading states
108
+ - rare premium highlights
109
+
110
+ ### Progress animation
111
+
112
+ For:
113
+
114
+ - metrics
115
+ - bars
116
+ - dashboards
117
+
118
+ ### Number counting
119
+
120
+ For:
121
+
122
+ - statistics
123
+ - revenue
124
+ - orders
125
+ - percentages
126
+
127
+ ---
128
+
129
+ # 28. ANIMATIONS TO AVOID
130
+
131
+ Do not use:
132
+
133
+ - constant floating cards
134
+ - spinning cards
135
+ - excessive parallax
136
+ - giant blob animations
137
+ - bouncing buttons
138
+ - text constantly moving
139
+ - excessive particle backgrounds
140
+ - cursor-following effects everywhere
141
+ - random rotations
142
+ - exaggerated 3D
143
+ - animation on every scroll event
144
+
145
+ Those effects are strongly associated with generic AI-generated "premium" websites.
146
+
147
+ ---
148
+
149
+ # 29. THE SIGNATURE COMPONENT
150
+
151
+ ## THE SIGNATURE SIGNAL
152
+
153
+ Every website in this design family MUST contain a subtle recurring identifying component.
154
+
155
+ This is not a logo replacement.
156
+
157
+ It is the designer's fingerprint.
158
+
159
+ Call it:
160
+
161
+ **Signature Signal**
162
+
163
+ The base visual should be:
164
+
165
+ ```text
166
+ small luminous dot
167
+ +
168
+ very subtle secondary ring/halo
169
+ +
170
+ occasionally a tiny secondary pulse
171
+ ```
172
+
173
+ Conceptually:
174
+
175
+ ```text
176
+ ·
177
+ ( )
178
+ ```
179
+
180
+ The exact implementation can vary.
181
+
182
+ It may be:
183
+
184
+ - a glowing dot
185
+ - a dot with a faint ring
186
+ - a tiny orbital ring
187
+ - a two-node signal
188
+ - a micro-gradient mark
189
+
190
+ But it must remain recognizable as the same family signature.
191
+
192
+ ---
193
+
194
+ # 30. SIGNATURE SIGNAL APPEARANCE
195
+
196
+ Base:
197
+
198
+ ```css
199
+ .signature-signal {
200
+ width: 8px;
201
+ height: 8px;
202
+ border-radius: 50%;
203
+ background: var(--blue-bright);
204
+ box-shadow:
205
+ 0 0 10px var(--blue-bright),
206
+ 0 0 22px rgba(59,130,246,0.25);
207
+ position: relative;
208
+ }
209
+ ```
210
+
211
+ Optional ring:
212
+
213
+ ```css
214
+ .signature-signal::after {
215
+ content: "";
216
+ position: absolute;
217
+ inset: -5px;
218
+ border: 1px solid rgba(96,165,250,0.18);
219
+ border-radius: 50%;
220
+ }
221
+ ```
222
+
223
+ Optional animation:
224
+
225
+ ```css
226
+ animation: signaturePulse 3s ease-in-out infinite;
227
+ ```
228
+
229
+ But keep the animation extremely subtle.
230
+
231
+ ---
232
+
233
+ # 31. WHERE TO USE THE SIGNATURE
234
+
235
+ Do NOT put the signature everywhere.
236
+
237
+ Use it in approximately 3–5 strategic locations.
238
+
239
+ Possible placements:
240
+
241
+ ### 1. Brand mark
242
+
243
+ Next to the product/company name.
244
+
245
+ ### 2. Footer
246
+
247
+ As a tiny designer fingerprint.
248
+
249
+ ### 3. Section transition
250
+
251
+ A small signal at the beginning/end of a major section.
252
+
253
+ ### 4. Loading state
254
+
255
+ The signature becomes the loading indicator.
256
+
257
+ ### 5. Empty state
258
+
259
+ A quiet version of the signature.
260
+
261
+ ### 6. Dashboard status
262
+
263
+ A tiny "live" indicator.
264
+
265
+ ### 7. Favicon/app icon
266
+
267
+ If appropriate.
268
+
269
+ The signature should be recognizable only after someone has seen several products.
270
+
271
+ That is the point.
272
+
273
+ ---
274
+
275
+ # 32. SIGNATURE SHOULD NEVER BECOME DECORATION NOISE
276
+
277
+ Do not:
278
+
279
+ - put it beside every heading
280
+ - put it in every card
281
+ - animate it constantly
282
+ - make it huge
283
+ - make it the center of attention
284
+ - turn it into a giant logo
285
+
286
+ The reaction should be:
287
+
288
+ > "There is something consistent about these interfaces."
289
+
290
+ Not:
291
+
292
+ > "Why is there a glowing dot everywhere?"
293
+
294
+ ---
295
+
296
+ # 33. SIGNATURE VARIATION
297
+
298
+ The same signature can adapt to the product.
299
+
300
+ Examples:
301
+
302
+ ### Marketing website
303
+ Glowing dot + ring.
304
+
305
+ ### Dashboard
306
+ Dot becomes live-status indicator.
307
+
308
+ ### Developer tool
309
+ Dot becomes a small system-status signal.
310
+
311
+ ### E-commerce
312
+ Dot becomes a subtle product-status indicator.
313
+
314
+ ### SaaS
315
+ Dot becomes a workspace/status marker.
316
+
317
+ ### Mobile application
318
+ Dot becomes part of the app icon.
319
+
320
+ The underlying geometry should remain recognizable.
321
+
322
+ ---
323
+
324
+ # 34. SECTION DESIGN
325
+
326
+ Avoid creating every section as:
327
+
328
+ ```text
329
+ heading
330
+ paragraph
331
+ three cards
332
+ ```
333
+
334
+ That is a major source of generic AI aesthetics.
335
+
336
+ Instead vary composition.
337
+
338
+ Use:
339
+
340
+ - split layouts
341
+ - asymmetric grids
342
+ - feature panels
343
+ - data visualizations
344
+ - horizontal strips
345
+ - large single-feature cards
346
+ - comparison layouts
347
+ - editorial sections
348
+ - overlapping elements
349
+ - compact metrics
350
+ - interactive demonstrations
351
+ - visual timelines
352
+ - workflow diagrams
353
+ - product previews
354
+
355
+ The design language should stay consistent even when the composition changes.
356
+
357
+ ---
358
+
359
+ # 35. HERO SECTIONS
360
+
361
+ A hero should generally contain:
362
+
363
+ ### Left
364
+
365
+ - small status/badge
366
+ - large heading
367
+ - concise supporting text
368
+ - primary action
369
+ - secondary action
370
+ - trust/proof if useful
371
+
372
+ ### Right
373
+
374
+ A meaningful visual.
375
+
376
+ Do not automatically put a giant abstract gradient blob on the right.
377
+
378
+ Prefer:
379
+
380
+ - product preview
381
+ - dashboard
382
+ - interactive component
383
+ - device mockup
384
+ - data visualization
385
+ - contextual UI
386
+ - workflow visualization
387
+
388
+ The reference hero follows a text/product-preview split and uses compact badges, gradient heading emphasis, feature chips, CTAs, and social proof.
389
+
390
+ ---
391
+
392
+ # 36. HERO VISUALS MUST REPRESENT THE PRODUCT
393
+
394
+ If the website is for:
395
+
396
+ ### Analytics software
397
+
398
+ Show analytics.
399
+
400
+ ### Deployment platform
401
+
402
+ Show deployment infrastructure.
403
+
404
+ ### CRM
405
+
406
+ Show contacts, pipelines, activity.
407
+
408
+ ### E-commerce
409
+
410
+ Show products, orders, revenue.
411
+
412
+ ### Developer tool
413
+
414
+ Show code/configuration/system state.
415
+
416
+ Do not use an unrelated abstract 3D object.
417
+
418
+ The visual should explain what the product actually does.
419
+
420
+ ---
421
+
422
+ # 37. TRUST SECTIONS
423
+
424
+ Trust should use compact visual modules.
425
+
426
+ Examples:
427
+
428
+ ```text
429
+ [icon] Secure
430
+ Enterprise-grade security
431
+ ```
432
+
433
+ or:
434
+
435
+ ```text
436
+ [icon] 99.9%
437
+ Uptime
438
+ ```
439
+
440
+ The reference uses compact bordered trust cards with small icon containers.
441
+
442
+ Avoid giant "trusted by" logos consuming an entire viewport.
443
+
444
+ ---
445
+
446
+ # 38. DASHBOARD DESIGN
447
+
448
+ Dashboard interfaces should feel dense but breathable.
449
+
450
+ Preferred structure:
451
+
452
+ ```text
453
+ SIDEBAR
454
+ |
455
+ +-- top-level navigation
456
+ |
457
+ +-- contextual sections
458
+ |
459
+ +-- account/settings
460
+ |
461
+ MAIN
462
+ |
463
+ +-- page heading
464
+ +-- contextual action
465
+ +-- KPI row
466
+ +-- primary visualization
467
+ +-- secondary visualizations
468
+ +-- tables/details
469
+ ```
470
+
471
+ The reference dashboard uses a dark sidebar, compact navigation, stat cards, charts, tables, badges, and responsive mobile navigation.
472
+
473
+ ---
474
+
475
+ # 39. DASHBOARD SIDEBAR
476
+
477
+ Sidebar:
478
+
479
+ - dark
480
+ - narrow
481
+ - fixed/sticky on desktop
482
+ - subtle border
483
+ - compact navigation
484
+ - muted inactive states
485
+ - blue-highlighted active state
486
+
487
+ Do not make the sidebar visually louder than the content.
488
+
489
+ ---
490
+
491
+ # 40. KPI CARDS
492
+
493
+ A KPI card should contain:
494
+
495
+ ```text
496
+ small label
497
+ large value
498
+ supporting metadata
499
+ optional trend
500
+ optional icon
501
+ ```
502
+
503
+ Example:
504
+
505
+ ```text
506
+ TOTAL REVENUE
507
+
508
+ KES 184,920
509
+
510
+ +12.4% this month
511
+ ```
512
+
513
+ Use color strategically.
514
+
515
+ The reference dashboard uses colored KPI values and subtle per-card border accents rather than making every card brightly colored.
516
+
517
+ ---
518
+
519
+ # 45. MOBILE DESIGN
520
+
521
+ Mobile must be treated as a real layout.
522
+
523
+ Do not simply compress desktop.
524
+
525
+ At approximately 900px:
526
+
527
+ - simplify multi-column layouts
528
+ - stack complex panels
529
+
530
+ At approximately 700px:
531
+
532
+ - hero becomes single-column
533
+ - navigation collapses
534
+ - dashboard cards become smaller
535
+ - grids become 1–2 columns
536
+ - footer simplifies
537
+ - modal padding decreases
538
+
539
+ This follows the reference's responsive behavior.
540
+
541
+ ---
542
+
543
+ # 46. MOBILE NAVIGATION
544
+
545
+ Desktop:
546
+
547
+ ```text
548
+ horizontal navigation
549
+ ```
550
+
551
+ Mobile:
552
+
553
+ ```text
554
+ hamburger
555
+
556
+ full navigation panel/drawer
557
+ ```
558
+
559
+ The reference explicitly switches from desktop navigation to a hamburger/mobile navigation pattern.
560
+
561
+ The mobile navigation should feel like the same product, not a separate design.
562
+
563
+ ---
564
+
565
+ # 47. RESPONSIVE PRINCIPLE
566
+
567
+ At every breakpoint ask:
568
+
569
+ > "What information is most important?"
570
+
571
+ Then preserve that information.
572
+
573
+ Do not simply reduce everything proportionally.
574
+
575
+ Mobile should prioritize:
576
+
577
+ 1. primary heading
578
+ 2. primary action
579
+ 3. critical information
580
+ 4. essential navigation
581
+ 5. supporting content
582
+
583
+ ---
584
+
585
+ # 50. ACCESSIBILITY
586
+
587
+ Do not sacrifice usability for aesthetics.
588
+
589
+ Maintain:
590
+
591
+ - readable contrast
592
+ - visible focus states
593
+ - keyboard navigation
594
+ - accessible labels
595
+ - reduced-motion support
596
+ - touch-friendly targets
597
+ - semantic HTML
598
+
599
+ Include:
600
+
601
+ ```css
602
+ @media (prefers-reduced-motion: reduce) {
603
+ *,
604
+ *::before,
605
+ *::after {
606
+ animation-duration: 0.01ms !important;
607
+ animation-iteration-count: 1 !important;
608
+ transition-duration: 0.01ms !important;
609
+ scroll-behavior: auto !important;
610
+ }
611
+ }
612
+ ```
613
+
614
+ ---
615
+
616
+ # 51. DO NOT OVERUSE ROUNDED CARDS
617
+
618
+ This is one of the most important anti-"vibe coded" rules.
619
+
620
+ Do not make every section:
621
+
622
+ ```text
623
+ ┌──────────────────────┐
624
+ │ │
625
+ │ CARD │
626
+ │ │
627
+ └──────────────────────┘
628
+ ```
629
+
630
+ Instead mix:
631
+
632
+ - cards
633
+ - full-width sections
634
+ - dividers
635
+ - inline content
636
+ - edge-to-edge visual blocks
637
+ - grids
638
+ - panels
639
+ - tables
640
+ - floating components
641
+
642
+ The visual system should create hierarchy through **composition**, not simply through cards.
643
+
644
+ ---
645
+
646
+ # 52. DO NOT OVERUSE GRADIENT TEXT
647
+
648
+ Only use gradient text for strategically important words.
649
+
650
+ Usually:
651
+
652
+ ```text
653
+ one phrase
654
+ ```
655
+
656
+ not:
657
+
658
+ ```text
659
+ every heading
660
+ every button
661
+ every label
662
+ ```
663
+
664
+ ---
665
+
666
+ # 53. DO NOT OVERUSE GLOW
667
+
668
+ Glow should mean:
669
+
670
+ > "Pay attention."
671
+
672
+ If everything glows, nothing has emphasis.
673
+
674
+ Use strong glow only on:
675
+
676
+ - primary CTA
677
+ - active status
678
+ - Signature Signal
679
+ - selected/highlighted component
680
+ - major hero accent
681
+
682
+ ---
683
+
684
+ # 54. DO NOT USE GENERIC AI DECORATION
685
+
686
+ Absolutely avoid automatically generating:
687
+
688
+ - random glowing blobs
689
+ - abstract 3D spheres
690
+ - floating glass panels
691
+ - excessive stars
692
+ - random particles
693
+ - generic gradient mesh
694
+ - huge neon rings
695
+ - meaningless code snippets
696
+ - meaningless dashboard screenshots
697
+ - decorative lines with no compositional purpose
698
+
699
+ Every visual element must have a reason to exist.
700
+
701
+ ---
702
+
703
+ # 55. VISUAL DENSITY
704
+
705
+ The interface should feel sophisticated because it contains **useful information**, not because it contains lots of decoration.
706
+
707
+ Use compact secondary text.
708
+
709
+ Use meaningful metadata.
710
+
711
+ Use small status indicators.
712
+
713
+ Use structured information.
714
+
715
+ This is especially important for dashboards and applications.
716
+
717
+ The reference dashboard demonstrates this through KPI grids, chart panels, funnels, tables, and payment breakdowns.
718
+
719
+ ---
720
+
721
+ # 56. VISUAL DEPTH
722
+
723
+ Create depth using four layers:
724
+
725
+ ```text
726
+ Layer 0
727
+ Base background
728
+
729
+ Layer 1
730
+ Surface
731
+
732
+ Layer 2
733
+ Card
734
+
735
+ Layer 3
736
+ Focused/featured element
737
+ ```
738
+
739
+ Use:
740
+
741
+ - color difference
742
+ - border
743
+ - shadow
744
+ - slight glow
745
+
746
+ Do not rely on giant shadows.
747
+
748
+ ---
749
+
750
+ # 57. SECTION DIVIDERS
751
+
752
+ Use extremely subtle dividers.
753
+
754
+ Example:
755
+
756
+ ```css
757
+ height: 1px;
758
+ background: var(--border);
759
+ ```
760
+
761
+ The reference uses a simple 1px low-opacity divider system.
762
+
763
+ Do not use decorative ornamental dividers everywhere.
764
+
765
+ ---
766
+
767
+ # 58. PROMOTIONAL ELEMENTS
768
+
769
+ If the product requires urgency or promotional banners, they can use animated gradients.
770
+
771
+ Reference example:
772
+
773
+ ```css
774
+ background:
775
+ linear-gradient(
776
+ 90deg,
777
+ #1d4ed8 0%,
778
+ #0891b2 50%,
779
+ #1d4ed8 100%
780
+ );
781
+
782
+ background-size: 200% 100%;
783
+ animation: bannerShimmer 3s linear infinite;
784
+ ```
785
+
786
+
787
+
788
+ But only use this treatment when the content actually warrants urgency.
789
+
790
+ ---
791
+
792
+ # 59. CONTENT + DESIGN RELATIONSHIP
793
+
794
+ The design should adapt to the content.
795
+
796
+ If the content is:
797
+
798
+ ### Technical
799
+ Increase information density.
800
+
801
+ ### Consumer
802
+ Increase whitespace and visual storytelling.
803
+
804
+ ### Financial
805
+ Emphasize numbers and hierarchy.
806
+
807
+ ### Developer-focused
808
+ Use system-oriented panels and code/data treatments.
809
+
810
+ ### Marketing
811
+ Increase visual contrast and CTA hierarchy.
812
+
813
+ ### Admin
814
+ Prioritize information density.
815
+
816
+ The **visual language stays consistent**, while the composition changes.
817
+
818
+ ---
819
+
820
+ # 60. THE "SAME DESIGNER" TEST
821
+
822
+ After generating the website, ask:
823
+
824
+ > "If I put this beside the reference websites, would I believe they were designed by the same person?"
825
+
826
+ The answer should be yes.
827
+
828
+ But also ask:
829
+
830
+ > "Could someone mistake this for a copy of the reference website?"
831
+
832
+ The answer should be no.
833
+
834
+ This distinction is critical.
835
+
836
+ ---
837
+
838
+ # 61. ANTI-VIBE-CODE CHECKLIST
839
+
840
+ Before considering the design finished, verify:
841
+
842
+ - [ ] No random gradients
843
+ - [ ] No excessive glassmorphism
844
+ - [ ] No excessive rounded cards
845
+ - [ ] No giant decorative blobs
846
+ - [ ] No unnecessary animation
847
+ - [ ] No generic SaaS dashboard composition
848
+ - [ ] No default Tailwind appearance
849
+ - [ ] No excessive shadows
850
+ - [ ] No excessive glow
851
+ - [ ] No 4–5 font families
852
+ - [ ] No random colors
853
+ - [ ] No inconsistent border radii
854
+ - [ ] No arbitrary spacing everywhere
855
+ - [ ] No decorative elements without purpose
856
+ - [ ] No huge empty areas created merely to look "premium"
857
+ - [ ] No mobile layout that simply squashes desktop
858
+
859
+ ---
860
+
861
+ # 62. SIGNATURE SYSTEM CHECKLIST
862
+
863
+ Every new website must contain:
864
+
865
+ - [ ] Signature Signal somewhere visible
866
+ - [ ] Signature Signal used subtly
867
+ - [ ] Same underlying geometry
868
+ - [ ] Same luminous quality
869
+ - [ ] Product-specific adaptation
870
+ - [ ] No excessive repetition
871
+ - [ ] Signature appears in at least 2 meaningful contexts
872
+ - [ ] Signature is recognizable across products
873
+
874
+ ---
875
+
876
+ # 63. COMPONENT CREATION RULE
877
+
878
+ When the product requires a component that does not exist in the reference:
879
+
880
+ Do not copy an existing component blindly.
881
+
882
+ Instead derive the new component from the design primitives:
883
+
884
+ ```text
885
+ color
886
+ +
887
+ spacing
888
+ +
889
+ radius
890
+ +
891
+ border
892
+ +
893
+ shadow
894
+ +
895
+ typography
896
+ +
897
+ motion
898
+ ```
899
+
900
+ For example, if creating a new notification component:
901
+
902
+ ```text
903
+ dark surface
904
+ +
905
+ subtle border
906
+ +
907
+ small radius
908
+ +
909
+ compact typography
910
+ +
911
+ small semantic icon
912
+ +
913
+ controlled accent
914
+ +
915
+ 220ms interaction
916
+ ```
917
+
918
+ It should look native to the system.
919
+
920
+ ---
921
+
922
+ # 64. COMPONENT HIERARCHY
923
+
924
+ Every component must answer:
925
+
926
+ ### What is it?
927
+
928
+ Typography.
929
+
930
+ ### Where is it?
931
+
932
+ Spacing.
933
+
934
+ ### What layer is it?
935
+
936
+ Surface/background.
937
+
938
+ ### Is it interactive?
939
+
940
+ Hover/focus behavior.
941
+
942
+ ### Is it important?
943
+
944
+ Color/glow hierarchy.
945
+
946
+ ### Does it move?
947
+
948
+ Animation only if useful.
949
+
950
+ ---
951
+
952
+ # 65. CSS ARCHITECTURE
953
+
954
+ If using plain CSS, create global tokens first.
955
+
956
+ Example:
957
+
958
+ ```css
959
+ :root {
960
+ /* backgrounds */
961
+ --bg-base: #060914;
962
+ --bg-surface: #0d1225;
963
+ --bg-card: #111827;
964
+ --bg-card-hover: #151f35;
965
+
966
+ /* borders */
967
+ --border: rgba(99,130,255,.12);
968
+ --border-bright: rgba(99,130,255,.30);
969
+
970
+ /* brand */
971
+ --primary: #3b82f6;
972
+ --primary-bright: #60a5fa;
973
+ --primary-deep: #1d4ed8;
974
+ --accent: #06b6d4;
975
+ --primary-glow: rgba(59,130,246,.35);
976
+
977
+ /* text */
978
+ --text-primary: #f1f5f9;
979
+ --text-secondary: #94a3b8;
980
+ --text-muted: #4b5563;
981
+
982
+ /* semantic */
983
+ --success: #10b981;
984
+ --warning: #f59e0b;
985
+ --danger: #ef4444;
986
+
987
+ /* geometry */
988
+ --radius-sm: 8px;
989
+ --radius: 14px;
990
+ --radius-lg: 20px;
991
+
992
+ /* effects */
993
+ --shadow-card: 0 4px 32px rgba(0,0,0,.45);
994
+ --shadow-glow: 0 0 32px rgba(59,130,246,.25);
995
+
996
+ /* motion */
997
+ --transition: 220ms cubic-bezier(.4,0,.2,1);
998
+ }
999
+ ```
1000
+
1001
+ ---
1002
+
1003
+ # 66. IF USING TAILWIND
1004
+
1005
+ Do not simply use Tailwind's defaults.
1006
+
1007
+ Create the equivalent design tokens in the Tailwind theme.
1008
+
1009
+ Do not allow arbitrary Tailwind values to become the visual system.
1010
+
1011
+ The uploaded `globals.css` currently contains a conventional light Shadcn/Tailwind-style variable foundation, which is visually disconnected from the dark reference system.
1012
+
1013
+ If replacing that system:
1014
+
1015
+ - preserve application functionality
1016
+ - preserve existing class contracts where possible
1017
+ - replace visual primitives systematically
1018
+ - avoid mixing the old light design tokens with the new dark system
1019
+
1020
+ ---
1021
+
1022
+ # 67. GLOBAL CSS PRIORITY
1023
+
1024
+ When styling an existing application:
1025
+
1026
+ ### DO
1027
+
1028
+ 1. Inspect the existing DOM/component structure.
1029
+ 2. Understand the current class names.
1030
+ 3. Preserve functionality.
1031
+ 4. Preserve semantic meaning.
1032
+ 5. Establish global tokens.
1033
+ 6. Establish typography.
1034
+ 7. Establish surfaces.
1035
+ 8. Establish components.
1036
+ 9. Establish responsive behavior.
1037
+ 10. Add animation.
1038
+ 11. Add Signature Signal.
1039
+ 12. Perform a visual consistency pass.
1040
+
1041
+ ### DO NOT
1042
+
1043
+ Rewrite application logic merely to make styling easier.
1044
+
1045
+ Do not remove functionality.
1046
+
1047
+ Do not change APIs.
1048
+
1049
+ Do not change database behavior.
1050
+
1051
+ Do not change business logic.
1052
+
1053
+ Do not change routing unless explicitly requested.
1054
+
1055
+ ---
1056
+
1057
+ # 68. IMPORTANT FOR LLMs STYLING EXISTING PROJECTS
1058
+
1059
+ You are primarily changing the **visual system**.
1060
+
1061
+ Do not unnecessarily modify:
1062
+
1063
+ - JavaScript logic
1064
+ - API calls
1065
+ - database queries
1066
+ - authentication
1067
+ - data structures
1068
+ - business rules
1069
+ - component behavior
1070
+ - routes
1071
+
1072
+ If a visual problem can be solved with CSS, solve it with CSS.
1073
+
1074
+ If a component must be structurally changed for visual reasons, make the smallest structural change necessary.
1075
+
1076
+ ---
1077
+
1078
+ # 69. DESIGN IMPLEMENTATION ORDER
1079
+
1080
+ When styling a new application, work in this order:
1081
+
1082
+ ## Phase 1 — Foundation
1083
+
1084
+ Implement:
1085
+
1086
+ - CSS variables
1087
+ - reset
1088
+ - body
1089
+ - typography
1090
+ - base links
1091
+ - buttons
1092
+ - form controls
1093
+ - scrollbar
1094
+ - selection state
1095
+
1096
+ ## Phase 2 — Layout
1097
+
1098
+ Implement:
1099
+
1100
+ - container
1101
+ - grid
1102
+ - section spacing
1103
+ - responsive breakpoints
1104
+ - navigation
1105
+ - footer
1106
+
1107
+ ## Phase 3 — Surfaces
1108
+
1109
+ Implement:
1110
+
1111
+ - cards
1112
+ - panels
1113
+ - borders
1114
+ - shadows
1115
+ - backgrounds
1116
+
1117
+ ## Phase 4 — Content Components
1118
+
1119
+ Implement:
1120
+
1121
+ - badges
1122
+ - stats
1123
+ - tables
1124
+ - forms
1125
+ - charts
1126
+ - lists
1127
+ - feature blocks
1128
+ - modals
1129
+
1130
+ ## Phase 5 — Interaction
1131
+
1132
+ Implement:
1133
+
1134
+ - hover
1135
+ - focus
1136
+ - active
1137
+ - loading
1138
+ - transitions
1139
+
1140
+ ## Phase 6 — Motion
1141
+
1142
+ Implement:
1143
+
1144
+ - entrance animations
1145
+ - counters
1146
+ - progress animations
1147
+ - subtle ambient motion
1148
+
1149
+ ## Phase 7 — Signature
1150
+
1151
+ Implement:
1152
+
1153
+ - Signature Signal
1154
+ - signature variations
1155
+ - loading/empty-state usage
1156
+
1157
+ ## Phase 8 — Refinement
1158
+
1159
+ Check:
1160
+
1161
+ - spacing
1162
+ - typography
1163
+ - visual hierarchy
1164
+ - responsive behavior
1165
+ - animation
1166
+ - accessibility
1167
+ - consistency
1168
+
1169
+ ---
1170
+
1171
+ # 70. VISUAL QA
1172
+
1173
+ After styling, inspect the entire site as a single system.
1174
+
1175
+ Ask:
1176
+
1177
+ ### Color
1178
+
1179
+ Is the blue/cyan accent too dominant?
1180
+
1181
+ ### Typography
1182
+
1183
+ Are headings clearly stronger than body copy?
1184
+
1185
+ ### Cards
1186
+
1187
+ Are there too many?
1188
+
1189
+ ### Glow
1190
+
1191
+ Is glow being used as emphasis or decoration?
1192
+
1193
+ ### Motion
1194
+
1195
+ Does animation communicate something?
1196
+
1197
+ ### Spacing
1198
+
1199
+ Do sections breathe consistently?
1200
+
1201
+ ### Responsive
1202
+
1203
+ Does mobile feel intentionally designed?
1204
+
1205
+ ### Signature
1206
+
1207
+ Can the visual fingerprint be recognized?
1208
+
1209
+ ### Originality
1210
+
1211
+ Does the site feel like a member of the design family without looking copied?
1212
+
1213
+ ---
1214
+
1215
+ # 71. FINAL QUALITY STANDARD
1216
+
1217
+ The finished product should feel like:
1218
+
1219
+ > A serious digital product designed by a small, highly opinionated design studio.
1220
+
1221
+ Not:
1222
+
1223
+ > A website generated from a prompt.
1224
+
1225
+ That distinction should guide every decision.
1226
+
1227
+ ---
1228
+
1229
+ # 72. MASTER LLM INSTRUCTION
1230
+
1231
+ When given an existing website and asked to apply this style, use the following operating instruction:
1232
+
1233
+ **"Study the existing application structure first. Do not redesign its functionality. Apply the Signature Dark Interface design system as a visual language, not as a template. Preserve the product's information architecture where appropriate, but redesign weak compositions when necessary. Use dark navy surfaces, restrained blue/cyan illumination, subtle borders, controlled card elevation, Space Grotesk for display typography, DM Sans for interface/body typography, compact spacing, deliberate hierarchy, restrained gradients, and purposeful motion. Create visual depth through layers rather than excessive glassmorphism. Use animation to communicate state and interaction rather than decoration. Avoid generic AI aesthetics such as giant gradient blobs, excessive rounded cards, excessive glow, excessive glass, random gradients, meaningless floating elements, and over-animated interfaces. Every component must appear to belong to one coherent visual system. Introduce the Signature Signal as a subtle recurring designer fingerprint, adapting its placement to the product while keeping its underlying geometry recognizable. The result must feel like the same designer created the site, but it must remain original to the product."**
1234
+
1235
+ ---
1236
+
1237
+ # 73. FINAL NON-NEGOTIABLE RULE
1238
+
1239
+ **Do not optimize for "wow" in the first five seconds.**
1240
+
1241
+ Optimize for:
1242
+
1243
+ **recognition → hierarchy → clarity → trust → interaction → polish.**
1244
+
1245
+ The interface should become more impressive the longer someone uses it.
1246
+