unslop-design 1.10.0 → 1.10.1
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.
- package/README.md +24 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -189,6 +189,29 @@ weights, 1 shadow, no sideways scroll and a focus ring on everything.
|
|
|
189
189
|
`unslop-score.py` goes from 24 to 100 on the code alone. Details
|
|
190
190
|
in [`web.md`](web.md).
|
|
191
191
|
|
|
192
|
+
## Native apps
|
|
193
|
+
|
|
194
|
+
<p align="center">
|
|
195
|
+
<img src="assets/swiftui-before-after.png" alt="A SwiftUI subscriptions screen before and after. Before: 'Hey Maya!' greeting, 'Your Subscriptions' in Title Case, a purple-to-blue gradient hero card with a glow, three stat tiles, emoji icons in colored circles, pink 'Renews Soon!' pills and a gradient 'Unlock your savings with Pro' button. After: the title 'Subscriptions', $142.87 per month as the one hero number, and a plain system list of next charges with letter monograms and the soonest dates in a role color." width="100%">
|
|
196
|
+
</p>
|
|
197
|
+
|
|
198
|
+
SwiftUI and Jetpack Compose are scanned like the web, not as an
|
|
199
|
+
afterthought: literals in views, elevation and stock-kit colors, emoji,
|
|
200
|
+
greetings, Title Case and rows of stat cards in `.swift` and `.kt` files.
|
|
201
|
+
|
|
202
|
+
| Example | Before | After |
|
|
203
|
+
|---|---|---|
|
|
204
|
+
| [`examples/swiftui/`](examples/swiftui) · subscriptions | 32/100: 10 emoji, glows, 4 gradients, 25 literals, "Hey Maya!" | 100/100 |
|
|
205
|
+
| [`examples/compose/`](examples/compose) · settings | 62/100: 7 emoji, 15 literals, the Android Studio template colors | 100/100 |
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
python3 scripts/unslop-score.py examples/swiftui/before # 32/100
|
|
209
|
+
python3 scripts/unslop-score.py examples/swiftui/after # 100/100
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
The SwiftUI folders also hold the HTML mock of each state at iPhone size,
|
|
213
|
+
the way quick mode shows a native before/after when there's no simulator.
|
|
214
|
+
|
|
192
215
|
## Use it
|
|
193
216
|
|
|
194
217
|
Type `/unslop-design` (or `$unslop-design` in Codex), or just ask in plain
|
|
@@ -434,7 +457,7 @@ before/after without the whole team.
|
|
|
434
457
|
| [`scripts/slop-scan.py`](scripts/slop-scan.py) | Finds slop patterns in source with file, line and fix number |
|
|
435
458
|
| [`scripts/web-audit.mjs`](scripts/web-audit.mjs) | Measures a rendered page: overflow, value census, contrast, focus |
|
|
436
459
|
| [`scripts/unslop-score.py`](scripts/unslop-score.py) | Both as one score from 0 to 100, with the breakdown and a badge |
|
|
437
|
-
| [`examples/`](examples) |
|
|
460
|
+
| [`examples/`](examples) | Before/after pairs to try the scripts on: a web dashboard, a SwiftUI screen, a Compose screen |
|
|
438
461
|
| [`.claude-plugin/`](.claude-plugin) | Claude Code plugin and marketplace manifests |
|
|
439
462
|
| [`hooks/`](hooks) | The Claude Code hook that scans each UI edit |
|
|
440
463
|
| [`action.yml`](action.yml) | The GitHub Action: annotations, job summary, minimum score |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unslop-design",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Make your app or site stop looking AI-generated: install the agent skill, scan UI code for slop and score it 0-100.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marcos Novo (https://github.com/marcosnovo)",
|