Create your first Thrynd component - a styled card with a button:
Hello World Card
Hello Thrynd!
This is your first Thrynd component. Beautiful defaults with zero configuration.
Theme Selection
Thrynd includes 6 complete themes. Switch themes by adding a class to your <body> or any container element:
<!-- Modern (default) - Clean, contemporary design --><bodyclass="theme-modern"><!-- Classic - Traditional elegance with serif fonts --><bodyclass="theme-classic"><!-- Minimal - Brutalist, focused simplicity --><bodyclass="theme-minimal"><!-- Neon - Cyberpunk aesthetic with electric colors --><bodyclass="theme-neon"><!-- Nature - Earthy, organic warmth --><bodyclass="theme-nature"><!-- Corporate - Professional and trustworthy --><bodyclass="theme-corporate">
Switch themes dynamically with JavaScript:
// Switch to neon themedocument.body.className='theme-neon';// Or toggle themesfunctionsetTheme(theme){document.body.className=`theme-${theme}`;}
Pro Tip: Try switching themes using the theme switcher in the top navigation bar to see all themes in action!
Framework Integration
Thrynd is pure CSS with zero JavaScript dependencies. It works seamlessly with any framework:
React / Next.js
// In your App.tsx or layout.tsximport'thrynd';functionApp(){return(<divclassName="theme-modern"><divclassName="container"><h1>Hello from React!</h1><buttonclassName="btn-primary">Click me</button></div></div>)}
Vue / Nuxt
<!--In main.js or App.vue--><scriptsetup>import 'thrynd';
</script><template><divclass="theme-modern"><divclass="container"><h1>Hello from Vue!</h1><buttonclass="btn-primary">Click me</button></div></div></template>
Svelte / SvelteKit
<!--In+layout.svelte or App.svelte--><script> import 'thrynd';
</script><divclass="theme-modern"><divclass="container"><h1>Hello from Svelte!</h1><buttonclass="btn-primary">Click me</button></div></div>
Astro
---
// In your layout or page
import 'thrynd';
---
<html lang="en">
<body class="theme-modern">
<div class="container">
<h1>Hello from Astro!</h1>
<button class="btn-primary">Click me</button>
</div>
</body>
</html>
Progressive Enhancement
Thrynd uses a three-level progressive enhancement system:
Level 1
Semantic HTML
Start with proper HTML structure. Base styles look good even without classes.
Level 2
Component Classes
Add component classes like btn-primary or card for styled components.
Level 3
Utility Classes
Fine-tune with utilities like mt-4, text-center, or flex.
You're all set! Continue to the Components section to explore all available components.