|
1 |
| -/** |
2 |
| - * Custom styles for OpenComponents documentation |
3 |
| - * Inspired by nx.dev's design patterns |
4 |
| - */ |
5 |
| - |
6 | 1 | /* You can override the default Infima variables here. */
|
7 | 2 | :root {
|
8 | 3 | --ifm-color-primary: #aa79ff;
|
|
13 | 8 | --ifm-color-primary-lighter: #be99ff;
|
14 | 9 | --ifm-color-primary-lightest: #cbadff;
|
15 | 10 | --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; |
19 | 14 | }
|
20 | 15 |
|
21 | 16 | /* For readability concerns, you should choose a lighter palette in dark mode. */
|
@@ -75,14 +70,30 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
|
75 | 70 | }
|
76 | 71 |
|
77 | 72 | .button.secondary {
|
78 |
| - color: #aa79ff; |
| 73 | + color: #8b47ff; |
| 74 | + border-color: #8b47ff; |
79 | 75 | }
|
80 | 76 |
|
81 | 77 | html[data-theme="dark"] .hero.heroBanner_src-pages-index-module {
|
82 | 78 | background: linear-gradient(135deg, #7555a7 0%, #2c1949 100%);
|
83 | 79 | color: #fff;
|
84 | 80 | }
|
85 | 81 |
|
| 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 | + |
86 | 97 | /* Hero sections */
|
87 | 98 | .hero-section {
|
88 | 99 | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
0 commit comments