Skip to content

Instantly share code, notes, and snippets.

@kurotori
Created June 25, 2025 11:45
Show Gist options
  • Save kurotori/dca7bec854da2dc33ea62e4c90e8aa3c to your computer and use it in GitHub Desktop.
Save kurotori/dca7bec854da2dc33ea62e4c90e8aa3c to your computer and use it in GitHub Desktop.
Diseño con TailwindCSS Básico (Usando CDN)
@import "tailwindcss";
html, body{
width: 100%;
height: 100%;
margin: 0px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<link rel="stylesheet" href="estilo.css">
</head>
<body class="size-full">
<div id="base" class="
flex items-center
justify-center
size-full
bg-green-500"
>
<div class="
w-1/2 h-1/2
bg-blue-500
rounded-3xl
border-2
border-black
"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment