From 792dbac92ff72fdac3e4d028f21b08ef2fc52b0f Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Fri, 11 Sep 2026 19:18:39 +0900 Subject: [PATCH] style: switch to modern-normalize normalize.css has had no release since 2018. modern-normalize is maintained and is what visiome.neuroinf.jp already uses. - load it from main.tsx before App, so the reset now applies before the theme instead of after it - drop src/index.css, which held nothing but the old @import - use the current favicon link form, matching visiome --- index.html | 4 ++-- package-lock.json | 20 +++++++++++++------- package.json | 2 +- src/index.css | 1 - src/main.tsx | 2 +- 5 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 src/index.css diff --git a/index.html b/index.html index 7e60838..02bbfe5 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,8 @@ - - + + =6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/mrmime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", @@ -1546,12 +1558,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/normalize.css": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-8.0.1.tgz", - "integrity": "sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==", - "license": "MIT" - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", diff --git a/package.json b/package.json index 9a7ee11..fea24f2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "async-lock": "^1.4.1", "ky": "^2.1.0", "lokijs": "^1.5.12", - "normalize.css": "^8.0.1", + "modern-normalize": "^3.0.1", "react": "^19.3.0", "react-cookie": "^8.1.2", "react-dom": "^19.3.0", diff --git a/src/index.css b/src/index.css deleted file mode 100644 index e23e495..0000000 --- a/src/index.css +++ /dev/null @@ -1 +0,0 @@ -@import "normalize.css"; diff --git a/src/main.tsx b/src/main.tsx index cd62c75..0aae084 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,9 +1,9 @@ import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; +import 'modern-normalize/modern-normalize.css'; import App from './App'; import IndexUtil from './database/lib/IndexUtil'; import ItemUtil from './database/lib/ItemUtil'; -import './index.css'; import { loadSiteData, setSiteData } from './siteData'; const container = document.getElementById('root');