@bookklik/senangstart-css
v0.2.12
Published
Fluent Style Utilities for Humans and AI
Maintainers
Readme
SenangStart CSS
A utility-first CSS framework that replaces abstract naming conventions with Natural Adjectives.
Quick Start
CDN (Zero Build)
<script src="https://unpkg.com/@bookklik/senangstart-css/dist/senangstart-css.min.js"></script>
<div
layout="flex col center"
space="p:big"
visual="bg:primary text:white rounded:big"
>
Hello SenangStart!
</div>CLI
npm i @bookklik/senangstart-css
senangstart init
senangstart devTailwind CSS Converter
Migrate from Tailwind to SenangStart with the built-in converter:
# Convert HTML file
node scripts/convert-tailwind.js input.html -o output.html
# Convert inline string
node scripts/convert-tailwind.js --string "<div class='flex p-4 bg-blue-500'>"Before (Tailwind):
<div class="flex items-center p-8 bg-blue-500 text-white rounded-lg">After (SenangStart):
<div layout="flex items:center" space="p:big" visual="bg:blue-500 text:white rounded:medium">Exact Mode (tw- prefix)
Use --exact to preserve Tailwind's numeric scale with tw- prefix:
node scripts/convert-tailwind.js --exact --string "<div class='p-4 rounded-lg'>"
# Output: space="p:tw-4" visual="rounded:tw-lg"| Tailwind | Semantic | Exact (tw-) |
|----------|----------|-------------|
| p-4 | p:small | p:tw-4 |
| mt-8 | m-t:big | m-t:tw-8 |
| rounded-lg | rounded:medium | rounded:tw-lg |
| text-2xl | text-size:giant | text-size:tw-2xl |
Documentation
Full docs at bookklik-technologies.github.io/senangstart-css
License
Read MIT License
