A Rust clone targeting Tailwind CSS v4.1 behavior.
ironframe הוא פרויקט OSS מוכן ל-production ב-Rust השואף לתאימות גבוהה עם ההתנהגות והפלט של Tailwind CSS v4.1. מודולי ה-scanner, ה-generator, ה-config וה-CLI מופרדים כדי שצוותים יוכלו לבצע benchmark, לאמת ולשלוח בצינור נתונים ללא Node.
JIT Build Loop
פקודות scan/build/watch תומכות בבניות חד-פעמיות, מצב watch, התעלמות מ-globs, הקטנת פלט (minify) ואימות compare-css לצורך העברה.
Tailwind-style Input
תומך ב-@import "tailwindcss", תבניות @source של include/exclude/inline, @apply, פיצול imports, ופונקציות בזמן בנייה כמו --spacing() ו- --alpha().
Modular Rust Design
רכיבי ה-core/scanner/generator/config נשארים עצמאיים, מה שהופך את בדיקות ה-profiling, בדיקות התאימות וההרחבה ההדרגתית לפשוטות וישירות.
תהליך עבודה של הגדרה ואימות
התחילו עם cargo install או cargo run, ואז החילו את scan/build/watch בשלבים. במהלך ההעברה, השתמשו ב---compare-css מול פלט הייחוס שלכם ונעלו את ההתנהגות באמצעות ironframe.toml.
Setup
cargo install --path .
דוגמת CLI
# 1) Extract class candidates
ironframe scan "src/**/*.{html,tsx}"
# 2) Build CSS once
ironframe build --out dist/app.css "src/**/*.{html,tsx}"
# 3) Build with input CSS and config
ironframe build --input-css src/app.css -c tailwind.toml --out dist/app.css "src/**/*.{html,tsx}"
# 4) Rebuild on file changes
ironframe watch --out dist/app.css "src/**/*.{html,tsx}"
Important Note
ironframe is a learning/prototyping implementation targeting Tailwind CSS v4.1-equivalent behavior אמתו את ה-CSS שנוצר מול הפלט הקיים שלכם והוסיפו בדיקות רגרסיה ב-CI לפני פריסה מלאה.
Previous
רשימת OSS