Skip to content

Commit 128866d

Browse files
committed
fix: apply global dark form styles
1 parent c87039b commit 128866d

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/index.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@
6262
}
6363
}
6464

65+
/* Global form control styles */
66+
@layer base {
67+
input,
68+
select,
69+
textarea {
70+
@apply bg-white text-gray-900 border border-gray-300 rounded-md;
71+
@apply dark:bg-gray-800 dark:text-gray-100 dark:border-gray-600;
72+
@apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500;
73+
}
74+
}
75+
6576
/* Custom styles */
6677
.chart-container {
6778
position: relative;

tailwind.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import forms from '@tailwindcss/forms'
2+
13
/** @type {import('tailwindcss').Config} */
24
export default {
35
darkMode: 'class',
46
content: [
5-
"./index.html",
6-
"./src/**/*.{js,ts,jsx,tsx}",
7+
'./index.html',
8+
'./src/**/*.{js,ts,jsx,tsx}',
79
],
810
theme: {
911
extend: {},
1012
},
11-
plugins: [],
13+
plugins: [forms],
1214
}

0 commit comments

Comments
 (0)