From 54afd196a2e7d38f06e8a055a50e9267e58457e2 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 25 Jul 2025 18:33:15 +1000 Subject: [PATCH] Update to Tailwind CSS 4 --- src/index.html | 10 +++++----- src/main.css | 11 +++++++---- tailwind.config.js | 32 -------------------------------- 3 files changed, 12 insertions(+), 41 deletions(-) delete mode 100644 tailwind.config.js diff --git a/src/index.html b/src/index.html index 4f88f65..ecdd6ec 100644 --- a/src/index.html +++ b/src/index.html @@ -31,14 +31,14 @@
-
-
+
completed weeks @@ -47,15 +47,15 @@
- +
- +
-
+
μmol/L diff --git a/src/main.css b/src/main.css index f4f612e..98c8b12 100644 --- a/src/main.css +++ b/src/main.css @@ -1,6 +1,6 @@ /* Neonatal jaundice treatment threshold calculator - Copyright (C) 2024 Lee Yingtong Li + Copyright (C) 2024-2025 Lee Yingtong Li This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -16,6 +16,9 @@ along with this program. If not, see . */ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import "tailwindcss"; +@plugin "@tailwindcss/forms"; + +@theme { + --font-sans: Manrope, Helvetica, Arial, sans-serif; +} diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index c67e64b..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,32 +0,0 @@ -/** @type {import('tailwindcss').Config} */ - -/* - Neonatal jaundice treatment threshold calculator - Copyright (C) 2024 Lee Yingtong Li - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -module.exports = { - content: ['./src/*.html', './src/*.js'], - theme: { - extend: {}, - fontFamily: { - 'sans': ['Manrope', 'Helvetica', 'Arial', 'sans-serif'], - } - }, - plugins: [ - require('@tailwindcss/forms'), - ], -}