Add comprehensive dark mode support and fix color consistency

- Add automatic dark/light theme detection via prefers-color-scheme
- Add smooth transitions between theme changes
- Fix color contrast issues with explicit text colors
- Make JSON Data and Query Result boxes static (no color changes)
- Keep only Expression input with error indication (red styling)
- Remove dynamic success/error styling from data input/output areas
- Add proper placeholder and focus state colors for both themes
- Ensure all text remains visible in both light and dark modes
- Clean up unused CSS classes
This commit is contained in:
2026-01-18 16:47:59 +01:00
parent 61408d6362
commit fef9c9732e
4 changed files with 159 additions and 15 deletions

View File

@@ -283,7 +283,7 @@ function App() {
<div className="card-body d-flex flex-column" style={{ minHeight: 0 }}>
<div className="flex-grow-1" style={{ minHeight: 0 }}>
<textarea
className={`form-control h-100 json-input ${jsonError ? 'error' : ''}`}
className="form-control h-100 json-input"
value={jsonData}
onChange={handleJsonChange}
placeholder="Enter JSON data here..."
@@ -311,7 +311,7 @@ function App() {
<div className="card-body d-flex flex-column" style={{ minHeight: 0 }}>
<div className="flex-grow-1" style={{ minHeight: 0 }}>
<textarea
className={`form-control h-100 result-output ${result && !error && !jsonError ? 'success' : ''}`}
className="form-control h-100 result-output"
value={result}
readOnly
placeholder="Results will appear here..."