@semiont/react-ui 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +34 -1
  2. package/dist/{ar-TQSFB35U.mjs → ar-6QTTYSKD.mjs} +44 -2
  3. package/dist/ar-6QTTYSKD.mjs.map +1 -0
  4. package/dist/{bn-525U24T3.mjs → bn-AHD2VP4T.mjs} +44 -2
  5. package/dist/bn-AHD2VP4T.mjs.map +1 -0
  6. package/dist/{chunk-BHAP6MVA.mjs → chunk-GDEHLKCO.mjs} +44 -2
  7. package/dist/chunk-GDEHLKCO.mjs.map +1 -0
  8. package/dist/{chunk-W6E2UESX.mjs → chunk-WHI4ECK4.mjs} +89 -47
  9. package/dist/chunk-WHI4ECK4.mjs.map +1 -0
  10. package/dist/{cs-OYWTGLFM.mjs → cs-WKZ5PTM3.mjs} +44 -2
  11. package/dist/cs-WKZ5PTM3.mjs.map +1 -0
  12. package/dist/{da-BDXG2ITK.mjs → da-JLWQLEH2.mjs} +44 -2
  13. package/dist/da-JLWQLEH2.mjs.map +1 -0
  14. package/dist/{de-NB5JLMES.mjs → de-TOCT63PC.mjs} +44 -2
  15. package/dist/de-TOCT63PC.mjs.map +1 -0
  16. package/dist/{el-3SVXEAJI.mjs → el-2XXDPBHO.mjs} +44 -2
  17. package/dist/el-2XXDPBHO.mjs.map +1 -0
  18. package/dist/{en-DVB4OE2R.mjs → en-OAKDUA6C.mjs} +10 -2
  19. package/dist/{es-YBOFA3W5.mjs → es-VQZSZSKB.mjs} +44 -2
  20. package/dist/es-VQZSZSKB.mjs.map +1 -0
  21. package/dist/{fa-7MU36AMY.mjs → fa-HFYV6XFA.mjs} +44 -2
  22. package/dist/fa-HFYV6XFA.mjs.map +1 -0
  23. package/dist/{fi-PQKJB32G.mjs → fi-GYTT42QN.mjs} +44 -2
  24. package/dist/fi-GYTT42QN.mjs.map +1 -0
  25. package/dist/{fr-U4HK5GM6.mjs → fr-RBOM5A35.mjs} +44 -2
  26. package/dist/fr-RBOM5A35.mjs.map +1 -0
  27. package/dist/{he-F5MNZHAL.mjs → he-KNB7K2AV.mjs} +44 -2
  28. package/dist/he-KNB7K2AV.mjs.map +1 -0
  29. package/dist/{hi-2PHI37ZX.mjs → hi-QJ6E72XH.mjs} +44 -2
  30. package/dist/hi-QJ6E72XH.mjs.map +1 -0
  31. package/dist/{id-JPRBNCGS.mjs → id-EKQVDHC7.mjs} +44 -2
  32. package/dist/id-EKQVDHC7.mjs.map +1 -0
  33. package/dist/index.d.mts +775 -127
  34. package/dist/index.mjs +8786 -2892
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{it-MRLWI5OS.mjs → it-43QKJZRF.mjs} +44 -2
  37. package/dist/it-43QKJZRF.mjs.map +1 -0
  38. package/dist/{ja-YQ6RPI2T.mjs → ja-SZUXDDO5.mjs} +44 -2
  39. package/dist/ja-SZUXDDO5.mjs.map +1 -0
  40. package/dist/{ko-DUAVCEXX.mjs → ko-HIR2TG2Q.mjs} +44 -2
  41. package/dist/ko-HIR2TG2Q.mjs.map +1 -0
  42. package/dist/{ms-FBHSR4PG.mjs → ms-6EJXSDHO.mjs} +44 -2
  43. package/dist/ms-6EJXSDHO.mjs.map +1 -0
  44. package/dist/{nl-IC2MPZXN.mjs → nl-AAAXD3KD.mjs} +44 -2
  45. package/dist/nl-AAAXD3KD.mjs.map +1 -0
  46. package/dist/{no-LLD43NRM.mjs → no-CEBS75VU.mjs} +44 -2
  47. package/dist/no-CEBS75VU.mjs.map +1 -0
  48. package/dist/{pl-DDOJBR4D.mjs → pl-SIB6PH3I.mjs} +44 -2
  49. package/dist/pl-SIB6PH3I.mjs.map +1 -0
  50. package/dist/{pt-7TFHQRRN.mjs → pt-6BMNSQTQ.mjs} +44 -2
  51. package/dist/pt-6BMNSQTQ.mjs.map +1 -0
  52. package/dist/{ro-P4PJEGDU.mjs → ro-63CZRSZ7.mjs} +44 -2
  53. package/dist/ro-63CZRSZ7.mjs.map +1 -0
  54. package/dist/{sv-LF3VEQD2.mjs → sv-BRAAQGIC.mjs} +44 -2
  55. package/dist/sv-BRAAQGIC.mjs.map +1 -0
  56. package/dist/test-utils.mjs +2 -2
  57. package/dist/{th-YUQAOFXF.mjs → th-DQEDBNDR.mjs} +44 -2
  58. package/dist/th-DQEDBNDR.mjs.map +1 -0
  59. package/dist/{tr-CSIGLMJC.mjs → tr-IR5MEUEU.mjs} +44 -2
  60. package/dist/tr-IR5MEUEU.mjs.map +1 -0
  61. package/dist/{uk-LW3QBKSR.mjs → uk-BVRTOFAO.mjs} +44 -2
  62. package/dist/uk-BVRTOFAO.mjs.map +1 -0
  63. package/dist/{vi-W464Y6ZC.mjs → vi-QRBKNVJA.mjs} +44 -2
  64. package/dist/vi-QRBKNVJA.mjs.map +1 -0
  65. package/dist/{zh-R5XLM3EI.mjs → zh-VQVBROMT.mjs} +44 -2
  66. package/dist/zh-VQVBROMT.mjs.map +1 -0
  67. package/package.json +44 -6
  68. package/public/favicons/android-chrome-192x192.png +0 -0
  69. package/public/favicons/android-chrome-512x512.png +0 -0
  70. package/public/favicons/apple-touch-icon.png +0 -0
  71. package/public/favicons/favicon-128x128.png +0 -0
  72. package/public/favicons/favicon-16x16.png +0 -0
  73. package/public/favicons/favicon-32x32.png +0 -0
  74. package/public/favicons/favicon-48x48.png +0 -0
  75. package/public/favicons/favicon-64x64.png +0 -0
  76. package/public/favicons/favicon-96x96.png +0 -0
  77. package/public/favicons/favicon.ico +0 -0
  78. package/public/favicons/favicon.svg +47 -0
  79. package/public/favicons/site.webmanifest +19 -0
  80. package/src/examples/ButtonUsageExample.tsx +242 -0
  81. package/src/examples/button-css-modules.module.css +164 -0
  82. package/src/examples/button-styled-components.tsx +215 -0
  83. package/src/examples/button-tailwind.css +51 -0
  84. package/src/integrations/css-modules-helper.tsx +223 -0
  85. package/src/integrations/styled-components-theme.ts +405 -0
  86. package/src/integrations/tailwind-plugin.js +224 -0
  87. package/src/styles/base/reset.css +105 -0
  88. package/src/styles/base/utilities.css +465 -0
  89. package/src/styles/components/annotation-entries.css +138 -0
  90. package/src/styles/components/annotations.css +51 -0
  91. package/src/styles/components/auth.css +309 -0
  92. package/src/styles/components/branding.css +131 -0
  93. package/src/styles/components/cards.css +136 -0
  94. package/src/styles/components/collapsible-resource-navigation.css +161 -0
  95. package/src/styles/components/detection-widget.css +499 -0
  96. package/src/styles/components/footer.css +98 -0
  97. package/src/styles/components/header.css +109 -0
  98. package/src/styles/components/left-sidebar.css +138 -0
  99. package/src/styles/components/modals.css +672 -0
  100. package/src/styles/components/navigation-menu.css +59 -0
  101. package/src/styles/components/navigation-tabs.css +474 -0
  102. package/src/styles/components/panel-sections.css +440 -0
  103. package/src/styles/components/panels-base.css +404 -0
  104. package/src/styles/components/panels.css +100 -0
  105. package/src/styles/components/references.css +430 -0
  106. package/src/styles/components/resize-handle.css +110 -0
  107. package/src/styles/components/search-modal.css +463 -0
  108. package/src/styles/components/skip-links.css +101 -0
  109. package/src/styles/components/status-display.css +409 -0
  110. package/src/styles/components/tables.css +199 -0
  111. package/src/styles/components/toast.css +130 -0
  112. package/src/styles/components/toolbar.css +201 -0
  113. package/src/styles/core/badges.css +209 -0
  114. package/src/styles/core/buttons.css +781 -0
  115. package/src/styles/core/checkboxes.css +92 -0
  116. package/src/styles/core/forms.css +254 -0
  117. package/src/styles/core/index.css +43 -0
  118. package/src/styles/core/indicators.css +225 -0
  119. package/src/styles/core/inputs.css +117 -0
  120. package/src/styles/core/progress.css +170 -0
  121. package/src/styles/core/selects.css +135 -0
  122. package/src/styles/core/sliders.css +236 -0
  123. package/src/styles/core/tags.css +203 -0
  124. package/src/styles/core/textareas.css +134 -0
  125. package/src/styles/core/toggles.css +86 -0
  126. package/src/styles/features/admin.css +293 -0
  127. package/src/styles/features/compose.css +192 -0
  128. package/src/styles/features/devops.css +154 -0
  129. package/src/styles/features/entity-tags.css +140 -0
  130. package/src/styles/features/recent-docs.css +97 -0
  131. package/src/styles/features/resource-discovery.css +387 -0
  132. package/src/styles/features/resource-viewer.css +508 -0
  133. package/src/styles/features/resource.css +506 -0
  134. package/src/styles/features/schemas.css +222 -0
  135. package/src/styles/features/static-pages.css +589 -0
  136. package/src/styles/features/welcome.css +81 -0
  137. package/src/styles/index.css +93 -0
  138. package/src/styles/layout/layout.css +85 -0
  139. package/src/styles/motivations/motivation-assessment.css +234 -0
  140. package/src/styles/motivations/motivation-comment.css +245 -0
  141. package/src/styles/motivations/motivation-highlight.css +195 -0
  142. package/src/styles/motivations/motivation-reference.css +210 -0
  143. package/src/styles/motivations/motivation-tag.css +254 -0
  144. package/src/styles/panels/assessment-panel.css +91 -0
  145. package/src/styles/panels/collaboration-panel.css +222 -0
  146. package/src/styles/panels/comments-panel.css +130 -0
  147. package/src/styles/panels/highlight-panel.css +63 -0
  148. package/src/styles/panels/history-panel.css +301 -0
  149. package/src/styles/panels/jsonld-panel.css +41 -0
  150. package/src/styles/panels/references-panel.css +85 -0
  151. package/src/styles/panels/resource-info-panel.css +230 -0
  152. package/src/styles/panels/settings-panel.css +58 -0
  153. package/src/styles/panels/statistics-panel.css +147 -0
  154. package/src/styles/panels/tagging-panel.css +59 -0
  155. package/src/styles/panels/unified-annotations-panel.css +133 -0
  156. package/src/styles/panels/user-panel.css +24 -0
  157. package/src/styles/patterns/errors.css +24 -0
  158. package/src/styles/patterns/loading.css +26 -0
  159. package/src/styles/utilities/contrast.css +443 -0
  160. package/src/styles/utilities/focus-extended.css +539 -0
  161. package/src/styles/utilities/focus.css +108 -0
  162. package/src/styles/utilities/motion-overrides.css +378 -0
  163. package/src/styles/utilities/motion.css +370 -0
  164. package/src/styles/utilities/semantic-indicators.css +321 -0
  165. package/src/styles/variables.css +354 -0
  166. package/translations/ar.json +35 -1
  167. package/translations/bn.json +35 -1
  168. package/translations/cs.json +35 -1
  169. package/translations/da.json +35 -1
  170. package/translations/de.json +35 -1
  171. package/translations/el.json +35 -1
  172. package/translations/en.json +35 -1
  173. package/translations/es.json +35 -1
  174. package/translations/fa.json +35 -1
  175. package/translations/fi.json +35 -1
  176. package/translations/fr.json +35 -1
  177. package/translations/he.json +35 -1
  178. package/translations/hi.json +35 -1
  179. package/translations/id.json +35 -1
  180. package/translations/it.json +35 -1
  181. package/translations/ja.json +35 -1
  182. package/translations/ko.json +35 -1
  183. package/translations/ms.json +35 -1
  184. package/translations/nl.json +35 -1
  185. package/translations/no.json +35 -1
  186. package/translations/pl.json +35 -1
  187. package/translations/pt.json +35 -1
  188. package/translations/ro.json +35 -1
  189. package/translations/sv.json +35 -1
  190. package/translations/th.json +35 -1
  191. package/translations/tr.json +35 -1
  192. package/translations/uk.json +35 -1
  193. package/translations/vi.json +35 -1
  194. package/translations/zh.json +35 -1
  195. package/dist/ar-TQSFB35U.mjs.map +0 -1
  196. package/dist/bn-525U24T3.mjs.map +0 -1
  197. package/dist/chunk-BHAP6MVA.mjs.map +0 -1
  198. package/dist/chunk-W6E2UESX.mjs.map +0 -1
  199. package/dist/cs-OYWTGLFM.mjs.map +0 -1
  200. package/dist/da-BDXG2ITK.mjs.map +0 -1
  201. package/dist/de-NB5JLMES.mjs.map +0 -1
  202. package/dist/el-3SVXEAJI.mjs.map +0 -1
  203. package/dist/es-YBOFA3W5.mjs.map +0 -1
  204. package/dist/fa-7MU36AMY.mjs.map +0 -1
  205. package/dist/fi-PQKJB32G.mjs.map +0 -1
  206. package/dist/fr-U4HK5GM6.mjs.map +0 -1
  207. package/dist/he-F5MNZHAL.mjs.map +0 -1
  208. package/dist/hi-2PHI37ZX.mjs.map +0 -1
  209. package/dist/id-JPRBNCGS.mjs.map +0 -1
  210. package/dist/it-MRLWI5OS.mjs.map +0 -1
  211. package/dist/ja-YQ6RPI2T.mjs.map +0 -1
  212. package/dist/ko-DUAVCEXX.mjs.map +0 -1
  213. package/dist/ms-FBHSR4PG.mjs.map +0 -1
  214. package/dist/nl-IC2MPZXN.mjs.map +0 -1
  215. package/dist/no-LLD43NRM.mjs.map +0 -1
  216. package/dist/pl-DDOJBR4D.mjs.map +0 -1
  217. package/dist/pt-7TFHQRRN.mjs.map +0 -1
  218. package/dist/ro-P4PJEGDU.mjs.map +0 -1
  219. package/dist/sv-LF3VEQD2.mjs.map +0 -1
  220. package/dist/th-YUQAOFXF.mjs.map +0 -1
  221. package/dist/tr-CSIGLMJC.mjs.map +0 -1
  222. package/dist/uk-LW3QBKSR.mjs.map +0 -1
  223. package/dist/vi-W464Y6ZC.mjs.map +0 -1
  224. package/dist/zh-R5XLM3EI.mjs.map +0 -1
  225. /package/dist/{en-DVB4OE2R.mjs.map → en-OAKDUA6C.mjs.map} +0 -0
@@ -0,0 +1,443 @@
1
+ /**
2
+ * Color Contrast Improvements for Accessibility
3
+ *
4
+ * This file provides high contrast color overrides to ensure WCAG 2.1 AA compliance
5
+ * - Normal text: 4.5:1 contrast ratio minimum
6
+ * - Large text (18pt+): 3:1 contrast ratio minimum
7
+ * - UI components: 3:1 contrast ratio minimum
8
+ */
9
+
10
+ /* ========================================
11
+ Base Color Overrides
12
+ ======================================== */
13
+
14
+ /* Fix light gray text that fails contrast */
15
+ .semiont-color-gray-300,
16
+ [class*="text-gray-300"],
17
+ [class*="color-gray-300"] {
18
+ color: var(--semiont-color-gray-600) !important; /* Darker gray for better contrast */
19
+ }
20
+
21
+ [data-theme="dark"] .semiont-color-gray-300,
22
+ [data-theme="dark"] [class*="text-gray-300"],
23
+ [data-theme="dark"] [class*="color-gray-300"] {
24
+ color: var(--semiont-color-gray-400) !important;
25
+ }
26
+
27
+ .semiont-color-gray-400,
28
+ [class*="text-gray-400"],
29
+ [class*="color-gray-400"] {
30
+ color: var(--semiont-color-gray-600) !important;
31
+ }
32
+
33
+ [data-theme="dark"] .semiont-color-gray-400,
34
+ [data-theme="dark"] [class*="text-gray-400"],
35
+ [data-theme="dark"] [class*="color-gray-400"] {
36
+ color: var(--semiont-color-gray-300) !important;
37
+ }
38
+
39
+ /* Fix light yellow that often fails contrast */
40
+ .semiont-color-yellow-100,
41
+ .semiont-color-yellow-200,
42
+ [class*="text-yellow-100"],
43
+ [class*="text-yellow-200"] {
44
+ color: var(--semiont-color-yellow-700) !important; /* Much darker yellow */
45
+ }
46
+
47
+ [data-theme="dark"] .semiont-color-yellow-100,
48
+ [data-theme="dark"] .semiont-color-yellow-200,
49
+ [data-theme="dark"] [class*="text-yellow-100"],
50
+ [data-theme="dark"] [class*="text-yellow-200"] {
51
+ color: var(--semiont-color-yellow-400) !important;
52
+ }
53
+
54
+ /* Fix light backgrounds with light text */
55
+ .semiont-bg-gray-100,
56
+ .semiont-bg-gray-200,
57
+ [class*="bg-gray-100"],
58
+ [class*="bg-gray-200"] {
59
+ color: var(--semiont-color-gray-800) !important; /* Ensure dark text on light bg */
60
+ }
61
+
62
+ [data-theme="dark"] .semiont-bg-gray-100,
63
+ [data-theme="dark"] .semiont-bg-gray-200,
64
+ [data-theme="dark"] [class*="bg-gray-100"],
65
+ [data-theme="dark"] [class*="bg-gray-200"] {
66
+ background-color: var(--semiont-color-gray-800) !important;
67
+ color: var(--semiont-color-gray-100) !important;
68
+ }
69
+
70
+ /* ========================================
71
+ Component-Specific Contrast Fixes
72
+ ======================================== */
73
+
74
+ /* Placeholder text - needs darker color */
75
+ input::placeholder,
76
+ textarea::placeholder,
77
+ .semiont-input::placeholder,
78
+ .semiont-textarea::placeholder {
79
+ color: var(--semiont-color-gray-600) !important;
80
+ opacity: 1 !important;
81
+ }
82
+
83
+ [data-theme="dark"] input::placeholder,
84
+ [data-theme="dark"] textarea::placeholder,
85
+ [data-theme="dark"] .semiont-input::placeholder,
86
+ [data-theme="dark"] .semiont-textarea::placeholder {
87
+ color: var(--semiont-color-gray-400) !important;
88
+ opacity: 1 !important;
89
+ }
90
+
91
+ /* Disabled states - improve contrast while maintaining disabled appearance */
92
+ button:disabled,
93
+ input:disabled,
94
+ select:disabled,
95
+ textarea:disabled,
96
+ .semiont-button:disabled,
97
+ .semiont-button[data-disabled="true"],
98
+ [disabled] {
99
+ opacity: 0.7 !important; /* Higher opacity for better contrast */
100
+ color: var(--semiont-color-gray-700) !important;
101
+ }
102
+
103
+ [data-theme="dark"] button:disabled,
104
+ [data-theme="dark"] input:disabled,
105
+ [data-theme="dark"] select:disabled,
106
+ [data-theme="dark"] textarea:disabled,
107
+ [data-theme="dark"] .semiont-button:disabled,
108
+ [data-theme="dark"] .semiont-button[data-disabled="true"],
109
+ [data-theme="dark"] [disabled] {
110
+ color: var(--semiont-color-gray-300) !important;
111
+ }
112
+
113
+ /* Status indicators - ensure sufficient contrast */
114
+ .semiont-status--success {
115
+ color: var(--semiont-color-green-700) !important;
116
+ background-color: var(--semiont-color-green-50) !important;
117
+ }
118
+
119
+ [data-theme="dark"] .semiont-status--success {
120
+ color: var(--semiont-color-green-300) !important;
121
+ background-color: rgba(34, 197, 94, 0.1) !important;
122
+ }
123
+
124
+ .semiont-status--warning {
125
+ color: var(--semiont-color-amber-700) !important;
126
+ background-color: var(--semiont-color-amber-50) !important;
127
+ }
128
+
129
+ [data-theme="dark"] .semiont-status--warning {
130
+ color: var(--semiont-color-amber-300) !important;
131
+ background-color: rgba(251, 191, 36, 0.1) !important;
132
+ }
133
+
134
+ .semiont-status--error,
135
+ .semiont-status--danger {
136
+ color: var(--semiont-color-red-700) !important;
137
+ background-color: var(--semiont-color-red-50) !important;
138
+ }
139
+
140
+ [data-theme="dark"] .semiont-status--error,
141
+ [data-theme="dark"] .semiont-status--danger {
142
+ color: var(--semiont-color-red-300) !important;
143
+ background-color: rgba(239, 68, 68, 0.1) !important;
144
+ }
145
+
146
+ .semiont-status--info {
147
+ color: var(--semiont-color-blue-700) !important;
148
+ background-color: var(--semiont-color-blue-50) !important;
149
+ }
150
+
151
+ [data-theme="dark"] .semiont-status--info {
152
+ color: var(--semiont-color-blue-300) !important;
153
+ background-color: rgba(59, 130, 246, 0.1) !important;
154
+ }
155
+
156
+ /* Links - ensure sufficient contrast */
157
+ a,
158
+ .semiont-link {
159
+ color: var(--semiont-color-blue-600) !important;
160
+ }
161
+
162
+ a:hover,
163
+ .semiont-link:hover {
164
+ color: var(--semiont-color-blue-700) !important;
165
+ }
166
+
167
+ a:visited,
168
+ .semiont-link:visited {
169
+ color: var(--semiont-color-purple-600) !important;
170
+ }
171
+
172
+ [data-theme="dark"] a,
173
+ [data-theme="dark"] .semiont-link {
174
+ color: var(--semiont-color-blue-400) !important;
175
+ }
176
+
177
+ [data-theme="dark"] a:hover,
178
+ [data-theme="dark"] .semiont-link:hover {
179
+ color: var(--semiont-color-blue-300) !important;
180
+ }
181
+
182
+ [data-theme="dark"] a:visited,
183
+ [data-theme="dark"] .semiont-link:visited {
184
+ color: var(--semiont-color-purple-400) !important;
185
+ }
186
+
187
+ /* Badge and chip text - ensure readability */
188
+ .semiont-badge,
189
+ .semiont-chip,
190
+ .semiont-tag {
191
+ font-weight: 500 !important; /* Slightly bolder for better readability */
192
+ }
193
+
194
+ /* Light colored badges need dark text */
195
+ .semiont-badge--light,
196
+ .semiont-chip--light,
197
+ .semiont-tag--light,
198
+ [data-variant="light"] {
199
+ color: var(--semiont-color-gray-900) !important;
200
+ background-color: var(--semiont-color-gray-100) !important;
201
+ }
202
+
203
+ [data-theme="dark"] .semiont-badge--light,
204
+ [data-theme="dark"] .semiont-chip--light,
205
+ [data-theme="dark"] .semiont-tag--light,
206
+ [data-theme="dark"] [data-variant="light"] {
207
+ color: var(--semiont-color-gray-100) !important;
208
+ background-color: var(--semiont-color-gray-700) !important;
209
+ }
210
+
211
+ /* ========================================
212
+ High Contrast Mode Support
213
+ ======================================== */
214
+
215
+ @media (prefers-contrast: more) {
216
+ /* Increase all text contrast in high contrast mode */
217
+ body,
218
+ .semiont-text,
219
+ .semiont-content {
220
+ color: var(--semiont-color-gray-900) !important;
221
+ }
222
+
223
+ [data-theme="dark"] body,
224
+ [data-theme="dark"] .semiont-text,
225
+ [data-theme="dark"] .semiont-content {
226
+ color: var(--semiont-color-gray-50) !important;
227
+ }
228
+
229
+ /* Stronger borders for better definition */
230
+ button,
231
+ input,
232
+ select,
233
+ textarea,
234
+ .semiont-button,
235
+ .semiont-input,
236
+ .semiont-select,
237
+ .semiont-textarea {
238
+ border-width: 2px !important;
239
+ border-color: currentColor !important;
240
+ }
241
+
242
+ [data-theme="dark"] button,
243
+ [data-theme="dark"] input,
244
+ [data-theme="dark"] select,
245
+ [data-theme="dark"] textarea,
246
+ [data-theme="dark"] .semiont-button,
247
+ [data-theme="dark"] .semiont-input,
248
+ [data-theme="dark"] .semiont-select,
249
+ [data-theme="dark"] .semiont-textarea {
250
+ border-width: 2px !important;
251
+ border-color: var(--semiont-color-gray-400) !important;
252
+ }
253
+
254
+ /* Higher opacity for disabled states */
255
+ button:disabled,
256
+ input:disabled,
257
+ select:disabled,
258
+ textarea:disabled,
259
+ .semiont-button:disabled,
260
+ [disabled] {
261
+ opacity: 0.8 !important;
262
+ }
263
+
264
+ /* Stronger focus indicators (already handled in focus.css) */
265
+
266
+ /* Pure black/white for maximum contrast */
267
+ .semiont-high-contrast {
268
+ background: var(--semiont-color-white) !important;
269
+ color: var(--semiont-color-black) !important;
270
+ }
271
+
272
+ [data-theme="dark"] .semiont-high-contrast {
273
+ background: var(--semiont-color-black) !important;
274
+ color: var(--semiont-color-white) !important;
275
+ }
276
+ }
277
+
278
+ /* ========================================
279
+ Forced Colors Mode Support (Windows High Contrast)
280
+ ======================================== */
281
+
282
+ @media (prefers-color-scheme: dark) and (prefers-contrast: more) {
283
+ /* Use system colors for maximum compatibility */
284
+ body {
285
+ background-color: Canvas !important;
286
+ color: CanvasText !important;
287
+ }
288
+
289
+ a {
290
+ color: LinkText !important;
291
+ }
292
+
293
+ a:visited {
294
+ color: VisitedText !important;
295
+ }
296
+
297
+ button,
298
+ input,
299
+ select,
300
+ textarea {
301
+ background-color: ButtonFace !important;
302
+ color: ButtonText !important;
303
+ border-color: ButtonText !important;
304
+ }
305
+
306
+ button:hover,
307
+ input:hover,
308
+ select:hover,
309
+ textarea:hover {
310
+ background-color: Highlight !important;
311
+ color: HighlightText !important;
312
+ }
313
+
314
+ ::placeholder {
315
+ color: GrayText !important;
316
+ }
317
+
318
+ :disabled {
319
+ color: GrayText !important;
320
+ border-color: GrayText !important;
321
+ }
322
+ }
323
+
324
+ /* ========================================
325
+ Specific Component Overrides
326
+ ======================================== */
327
+
328
+ /* Forms - improve label contrast */
329
+ .semiont-form__label,
330
+ .semiont-label,
331
+ label {
332
+ color: var(--semiont-color-gray-700) !important;
333
+ font-weight: 500 !important;
334
+ }
335
+
336
+ [data-theme="dark"] .semiont-form__label,
337
+ [data-theme="dark"] .semiont-label,
338
+ [data-theme="dark"] label {
339
+ color: var(--semiont-color-gray-200) !important;
340
+ }
341
+
342
+ /* Helper text - ensure readability */
343
+ .semiont-form__helper,
344
+ .semiont-helper-text,
345
+ .semiont-description {
346
+ color: var(--semiont-color-gray-600) !important;
347
+ font-size: 0.875rem !important;
348
+ }
349
+
350
+ [data-theme="dark"] .semiont-form__helper,
351
+ [data-theme="dark"] .semiont-helper-text,
352
+ [data-theme="dark"] .semiont-description {
353
+ color: var(--semiont-color-gray-400) !important;
354
+ }
355
+
356
+ /* Error messages - high contrast for importance */
357
+ .semiont-form__error,
358
+ .semiont-error-text,
359
+ .semiont-error {
360
+ color: var(--semiont-color-red-700) !important;
361
+ font-weight: 500 !important;
362
+ }
363
+
364
+ [data-theme="dark"] .semiont-form__error,
365
+ [data-theme="dark"] .semiont-error-text,
366
+ [data-theme="dark"] .semiont-error {
367
+ color: var(--semiont-color-red-400) !important;
368
+ }
369
+
370
+ /* Tables - improve readability */
371
+ .semiont-table th {
372
+ color: var(--semiont-color-gray-900) !important;
373
+ font-weight: 600 !important;
374
+ }
375
+
376
+ [data-theme="dark"] .semiont-table th {
377
+ color: var(--semiont-color-gray-50) !important;
378
+ }
379
+
380
+ .semiont-table td {
381
+ color: var(--semiont-color-gray-700) !important;
382
+ }
383
+
384
+ [data-theme="dark"] .semiont-table td {
385
+ color: var(--semiont-color-gray-300) !important;
386
+ }
387
+
388
+ /* Code blocks - ensure syntax highlighting has contrast */
389
+ code,
390
+ pre,
391
+ .semiont-code {
392
+ background-color: var(--semiont-color-gray-100) !important;
393
+ color: var(--semiont-color-gray-900) !important;
394
+ }
395
+
396
+ [data-theme="dark"] code,
397
+ [data-theme="dark"] pre,
398
+ [data-theme="dark"] .semiont-code {
399
+ background-color: var(--semiont-color-gray-800) !important;
400
+ color: var(--semiont-color-gray-100) !important;
401
+ }
402
+
403
+ /* Tooltips - high contrast for readability */
404
+ .semiont-tooltip {
405
+ background-color: var(--semiont-color-gray-900) !important;
406
+ color: var(--semiont-color-white) !important;
407
+ }
408
+
409
+ [data-theme="dark"] .semiont-tooltip {
410
+ background-color: var(--semiont-color-gray-100) !important;
411
+ color: var(--semiont-color-gray-900) !important;
412
+ }
413
+
414
+ /* ========================================
415
+ Utility Classes for Manual Overrides
416
+ ======================================== */
417
+
418
+ /* Force high contrast text */
419
+ .semiont-text-high-contrast {
420
+ color: var(--semiont-color-gray-900) !important;
421
+ }
422
+
423
+ [data-theme="dark"] .semiont-text-high-contrast {
424
+ color: var(--semiont-color-gray-50) !important;
425
+ }
426
+
427
+ /* Force medium contrast text (for less important content) */
428
+ .semiont-text-medium-contrast {
429
+ color: var(--semiont-color-gray-700) !important;
430
+ }
431
+
432
+ [data-theme="dark"] .semiont-text-medium-contrast {
433
+ color: var(--semiont-color-gray-300) !important;
434
+ }
435
+
436
+ /* Force WCAG AAA compliance (7:1 ratio) */
437
+ .semiont-text-aaa {
438
+ color: var(--semiont-color-black) !important;
439
+ }
440
+
441
+ [data-theme="dark"] .semiont-text-aaa {
442
+ color: var(--semiont-color-white) !important;
443
+ }