Skip to content

Commit f605f49

Browse files
committed
Update styling and tailwind config
1 parent 67175f2 commit f605f49

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

src/index.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,57 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
/* Screen reader only text */
6+
.sr-only {
7+
position: absolute;
8+
width: 1px;
9+
height: 1px;
10+
padding: 0;
11+
margin: -1px;
12+
overflow: hidden;
13+
clip: rect(0, 0, 0, 0);
14+
white-space: nowrap;
15+
border-width: 0;
16+
}
17+
518
.overflow-y-hidden {
619
overflow-y: hidden;
720
}
821

22+
23+
/* Enhanced focus indicators for accessibility */
24+
@layer utilities {
25+
.focus-visible-ring {
26+
@apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800;
27+
}
28+
29+
.focus-visible-ring-inset {
30+
@apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-inset;
31+
}
32+
}
33+
34+
/* Ensure all interactive elements have visible focus */
35+
button:focus-visible,
36+
a:focus-visible,
37+
input:focus-visible,
38+
select:focus-visible,
39+
textarea:focus-visible,
40+
[role="button"]:focus-visible,
41+
[role="tab"]:focus-visible,
42+
[tabindex]:focus-visible {
43+
@apply outline-none ring-2 ring-blue-500 ring-offset-2 dark:ring-offset-gray-800;
44+
}
45+
46+
/* Special focus styles for tabs */
47+
.tab:focus-visible {
48+
@apply outline-none ring-2 ring-blue-500 ring-inset;
49+
}
50+
51+
/* Focus styles for table sortable headers */
52+
th.sortable:focus-visible {
53+
@apply outline-none ring-2 ring-blue-500 ring-inset;
54+
}
55+
956
.subtle-stripes-light {
1057
background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.025) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.025) 50%, rgba(0, 0, 0, 0.025) 75%, transparent 75%, transparent);
1158
background-size: 10px 10px;
@@ -15,3 +62,27 @@
1562
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 75%, transparent 75%, transparent);
1663
background-size: 10px 10px; /* Explicitly set for dark mode too */
1764
}
65+
66+
/* Respect user's motion preferences */
67+
@media (prefers-reduced-motion: reduce) {
68+
* {
69+
animation-duration: 0.01ms !important;
70+
animation-iteration-count: 1 !important;
71+
transition-duration: 0.01ms !important;
72+
scroll-behavior: auto !important;
73+
}
74+
75+
.pulse-logo-circle {
76+
animation: none !important;
77+
}
78+
79+
.animate-spin {
80+
animation: none !important;
81+
}
82+
83+
.transition-all,
84+
.transition-colors,
85+
.transition-opacity {
86+
transition: none !important;
87+
}
88+
}

src/tailwind.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ module.exports = {
2323
'sm:inline',
2424
'truncate',
2525
'px-1',
26+
'table-cell',
27+
'sm:table-cell',
28+
'md:table-cell',
29+
'lg:table-cell',
2630
],
2731
theme: {
2832
extend: {},

0 commit comments

Comments
 (0)