-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I think it would be good to offer preview.css in the folder "preview", so users don't need to look around how to change the background-color or color of different themes.
This could be the content of preview.css after the installation:
/* the theme "light", "dark" or "system " can be selected in preview.conf in the key theme_mode */
/* light theme: */
body {
background-color: #ffffff;
color: #222222;
}
/* dark theme: */
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #eeeeee;
}
}
Even better would be to add more in a comment, so users are informed about the possibilities, for example like this:
/* the theme "light", "dark" or "system " can be selected in preview.conf in the key theme_mode */
/* light theme: */
body {
background-color: #ffffff;
color: #222222;
}
/* dark theme: */
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #eeeeee;
}
/*
examples for more changes:
::selection { /* area that is marked with the mouse */
color: white;
background: black;
}
::-webkit-scrollbar { /* the entire scrollbar */
background-color: transparent;
}
::-webkit-scrollbar:horizontal { /* horizontal scrollbar */
height: 23px;
}
::-webkit-scrollbar:vertical { /* vertical scrollbar */
width: 19px;
}
::-webkit-scrollbar-thumb { /* the draggable scrolling handle */
background-color: #cbcdce;
border-top: 8px solid transparent;
border-bottom: 7px solid white;
border-left: 7px solid white;
border-right: 4px solid transparent;
background-clip: padding-box;
}
*/
Version
Preview 0.2.4+r31.ge5ee234
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request