Skip to content

Commit b748eb2

Browse files
fix some wcag
1 parent 04f6d72 commit b748eb2

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

website/src/css/custom.css

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* Custom styles for OpenComponents documentation
3-
* Inspired by nx.dev's design patterns
4-
*/
5-
61
/* You can override the default Infima variables here. */
72
:root {
83
--ifm-color-primary: #aa79ff;
@@ -13,9 +8,9 @@
138
--ifm-color-primary-lighter: #be99ff;
149
--ifm-color-primary-lightest: #cbadff;
1510
--ifm-code-font-size: 95%;
16-
--ifm-color-secondary-darkest: #33373a; /* Updated for WCAG AA compliance */
17-
--ifm-color-secondary: #4a4f55;
18-
--ifm-color-secondary-light: #6c737a;
11+
--ifm-color-secondary-darkest: #2d3136;
12+
--ifm-color-secondary: #3a4147;
13+
--ifm-color-secondary-light: #5a6169;
1914
}
2015

2116
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -75,14 +70,30 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
7570
}
7671

7772
.button.secondary {
78-
color: #aa79ff;
73+
color: #8b47ff;
74+
border-color: #8b47ff;
7975
}
8076

8177
html[data-theme="dark"] .hero.heroBanner_src-pages-index-module {
8278
background: linear-gradient(135deg, #7555a7 0%, #2c1949 100%);
8379
color: #fff;
8480
}
8581

82+
/* Ensure proper contrast for hero text elements */
83+
.hero.heroBanner_src-pages-index-module h1,
84+
.hero.heroBanner_src-pages-index-module p,
85+
.hero.heroBanner_src-pages-index-module .heroDescription {
86+
color: #ffffff !important;
87+
}
88+
89+
html[data-theme="dark"] .hero.heroBanner_src-pages-index-module h1,
90+
html[data-theme="dark"] .hero.heroBanner_src-pages-index-module p,
91+
html[data-theme="dark"]
92+
.hero.heroBanner_src-pages-index-module
93+
.heroDescription {
94+
color: #ffffff !important;
95+
}
96+
8697
/* Hero sections */
8798
.hero-section {
8899
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

website/src/pages/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
position: relative;
1111
overflow: hidden;
1212
background: linear-gradient(135deg, #cb9fea 0%, #7555a7 100%);
13+
color: #ffffff;
1314
position: relative;
1415
border-bottom: 6px solid #aa79ff;
1516
}

0 commit comments

Comments
 (0)