Skip to content

Instantly share code, notes, and snippets.

@Lelectrolux
Created March 26, 2022 21:54
Show Gist options
  • Save Lelectrolux/ae0b1276b8d39a39d2267dd3ee0909ec to your computer and use it in GitHub Desktop.
Save Lelectrolux/ae0b1276b8d39a39d2267dd3ee0909ec to your computer and use it in GitHub Desktop.
Alpine.js + Tailwind CSS prototype starter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prototype</title>
<!-- https://tailwindcss.com/docs/installation -->
<script src="https://cdn.tailwindcss.com" defer></script>
<script>
tailwind.config = {
theme: {
extend: {}
}
}
</script>
<style type="text/tailwindcss"></style>
<!-- https://alpinejs.dev/start-here -->
<script src="https://unpkg.com/alpinejs" defer></script>
</head>
<body>
<!-- Hack away ! -->
<script>
document.addEventListener('alpine:init', () => {
// ...
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment