Style Generation and Purging #1115
neilmcguigan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
our main site uses twitter bootstrap for styling, so wanted the mobile app to look similar
this is what i did:
Asked claude sonnet to convert all bootstrap classes to hyperview xml styles (it did this pretty well). had to repeat a few times for "forms", etc
Example:
<style id="btn-primary" backgroundColor="#007bff" borderWidth="1" borderColor="#007bff" color="#ffffff" />Put these in a file (
bootstrap-styles.blade.php)Asked claude to write a program (below) to search my templates for all hyperview style names and filter out the styles in master that weren't in my templates to make a
small-styles.blade.php, similar to purgecssInclude
simple-styles.blade.phpin my templatesso, styles use bootstrap class names like a button, and look just like the bootstrap ones.
you could do the same with tailwind or similar
purge program:
All reactions