fix: callout info text color distinguishable when in light mode

This commit is contained in:
grassblock 2025-06-07 17:59:19 +08:00
parent bce6cd4506
commit 742c011f4e

View file

@ -40,4 +40,10 @@ const { icon, type = 'info'} = Astro.props;
--callout-bg: var(--terminal-red); --callout-bg: var(--terminal-red);
--callout-text: #111; --callout-text: #111;
} }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .callout-info {
--callout-text: #eee;
}
}
</style> </style>