File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed
Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 2929
3030.view-switcher a : hover ,
3131.view-switcher a : focus {
32- background-color : rgba (var (--ctp-latte-overlay1-rgb )) , 1 );
32+ background-color : rgba (var (--ctp-latte-overlay1-rgb ), 1 ); /* Latte hover/focus */
3333 padding : 8px 32px ; /* Ensure the padding is the same on hover/focus */
3434 border-radius : 6px ;
3535}
4646 justify-content : center; /* Center the view switcher horizontally */
4747 align-items : center; /* Align items vertically in the center */
4848 height : 47px ; /* Set the headerbar height to 47px */
49- background-color : rgb (--ctp-latte-mantle-rgb );
5049 padding : 0 ; /* Remove padding around the header */
5150 width : 100% ; /* Ensure the header bar spans the full width */
5251}
5352
5453body {
55- background : rgb (var (--ctp-latte-base-rgb ));
54+ background : rgb (var (--ctp-latte-base-rgb )); /* Default to latte theme */
5655}
5756
5857h1 {
7473 font-family : InterVariable, sans-serif;
7574 }
7675}
76+
77+ /* Dark mode styles */
78+ @media (prefers-color-scheme : dark) {
79+ /* View Switcher */
80+ .view-switcher a {
81+ color : rgb (var (--ctp-frappe-text-rgb )); /* Frappe text color */
82+ }
83+
84+ .view-switcher a : hover ,
85+ .view-switcher a : focus {
86+ background-color : rgba (var (--ctp-frappe-overlay1-rgb ), 1 ); /* Frappe hover/focus */
87+ }
88+
89+ .view-switcher .current {
90+ background-color : rgb (var (--ctp-frappe-crust-rgb )); /* Frappe current item */
91+ }
92+
93+ body {
94+ background : rgb (var (--ctp-frappe-base-rgb )); /* Frappe background */
95+ }
96+
97+ h1 {
98+ color : var (--ctp-frappe-lavender ); /* Frappe lavender color */
99+ }
100+ }
You can’t perform that action at this time.
0 commit comments