diff --git a/compose.yml b/compose.yml index 3cf901d..a3b4873 100644 --- a/compose.yml +++ b/compose.yml @@ -61,5 +61,11 @@ services: ports: - "8000:8000" + tailwind: + <<: *common-settings + command: ["uv", "run", "-m", "manage", "tailwind", "--skip-checks", "watch"] + depends_on: [] + init: true + volumes: postgres-data: diff --git a/frontend/index.css b/frontend/index.css index 90a8ef0..4d71ff1 100644 --- a/frontend/index.css +++ b/frontend/index.css @@ -2,3 +2,41 @@ /* Use legacy config for content sources */ @config "../tailwind.config.js"; + +/* Base form input styles */ +@layer base { + input[type="text"], + input[type="email"], + input[type="password"], + input[type="number"], + input[type="url"], + input[type="tel"], + input[type="date"], + input[type="time"], + input[type="datetime-local"], + input[type="search"], + textarea, + select { + @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm; + @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500; + @apply text-gray-900 text-base; + } + + input[type="checkbox"] { + @apply h-4 w-4 text-blue-600 border-gray-300 rounded; + @apply focus:ring-blue-500; + } + + input[type="file"] { + @apply block w-full text-sm text-gray-500; + @apply file:mr-4 file:py-2 file:px-4; + @apply file:rounded-md file:border-0; + @apply file:text-sm file:font-medium; + @apply file:bg-blue-50 file:text-blue-700; + @apply hover:file:bg-blue-100; + } + + textarea { + @apply min-h-[120px]; + } +} diff --git a/templates/_field.html b/templates/_field.html index 8a13532..0c6a24e 100644 --- a/templates/_field.html +++ b/templates/_field.html @@ -1,12 +1,20 @@ -
-