Fix #120: add matching light/dark variant for every theme #121
@@ -40,6 +40,47 @@
|
|||||||
--ok: #3E6B3E; --warn: #7A5E1B; --err: #9E4054;
|
--ok: #3E6B3E; --warn: #7A5E1B; --err: #9E4054;
|
||||||
--on-accent: #274a6b;
|
--on-accent: #274a6b;
|
||||||
}
|
}
|
||||||
|
/* matching light/dark counterparts: same hue family, flipped lightness roles */
|
||||||
|
/* Midnight Light: light counterpart of midnight (violet family) */
|
||||||
|
[data-preset="midnight-light"] {
|
||||||
|
--bg: #F3EFF9; --surface: #FAF8FD; --surface-2: #E1D9EF;
|
||||||
|
--muted: #A99CC9; --muted-fg: #5F5390; --fg: #2B2140;
|
||||||
|
--accent: #7B5FC0; --border: #D8CEEC;
|
||||||
|
--ok: #3E6B3E; --warn: #7A5E1B; --err: #9E4054;
|
||||||
|
--on-accent: #FAF8FD;
|
||||||
|
}
|
||||||
|
/* Smooth Dark: dark counterpart of smooth (muted slate-violet family) */
|
||||||
|
[data-preset="smooth-dark"] {
|
||||||
|
--bg: #23222E; --surface: #2C2B3A; --surface-2: #3B3A4D;
|
||||||
|
--muted: #7A7796; --muted-fg: #B5B1C9; --fg: #E8E7F0;
|
||||||
|
--accent: #A9A6C4; --border: #45435A;
|
||||||
|
--ok: #9CD49C; --warn: #E8C77B; --err: #F2A3B3;
|
||||||
|
--on-accent: #23222E;
|
||||||
|
}
|
||||||
|
/* Pastel Lavender Dark: dark counterpart (lavender family) */
|
||||||
|
[data-preset="pastel-lavender-dark"] {
|
||||||
|
--bg: #2A2340; --surface: #352C50; --surface-2: #4A3E6B;
|
||||||
|
--muted: #8F7FB8; --muted-fg: #CBBEE8; --fg: #EFEAF8;
|
||||||
|
--accent: #B39DE4; --border: #4E4272;
|
||||||
|
--ok: #9CD49C; --warn: #E8C77B; --err: #F2A3B3;
|
||||||
|
--on-accent: #2A2340;
|
||||||
|
}
|
||||||
|
/* Pastel Peach Dark: dark counterpart (peach family) */
|
||||||
|
[data-preset="pastel-peach-dark"] {
|
||||||
|
--bg: #3A241C; --surface: #4A2F24; --surface-2: #654234;
|
||||||
|
--muted: #B07A64; --muted-fg: #F0C4B0; --fg: #FBEBE2;
|
||||||
|
--accent: #F9826C; --border: #75503F;
|
||||||
|
--ok: #9CD49C; --warn: #E8C77B; --err: #F2A3B3;
|
||||||
|
--on-accent: #3A241C;
|
||||||
|
}
|
||||||
|
/* Pastel Cloud Dark: dark counterpart (pink cloud family, blue accent) */
|
||||||
|
[data-preset="pastel-cloud-dark"] {
|
||||||
|
--bg: #33222E; --surface: #402C3A; --surface-2: #583D50;
|
||||||
|
--muted: #A87E97; --muted-fg: #E5C2D6; --fg: #FAEEF5;
|
||||||
|
--accent: #A2D2FF; --border: #644759;
|
||||||
|
--ok: #9CD49C; --warn: #E8C77B; --err: #F2A3B3;
|
||||||
|
--on-accent: #33222E;
|
||||||
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -21,7 +21,12 @@
|
|||||||
{ id: 'smooth', name: 'Smooth' },
|
{ id: 'smooth', name: 'Smooth' },
|
||||||
{ id: 'pastel-lavender', name: 'Pastel Lavender' },
|
{ id: 'pastel-lavender', name: 'Pastel Lavender' },
|
||||||
{ id: 'pastel-peach', name: 'Pastel Peach' },
|
{ id: 'pastel-peach', name: 'Pastel Peach' },
|
||||||
{ id: 'pastel-cloud', name: 'Pastel Cloud' }
|
{ id: 'pastel-cloud', name: 'Pastel Cloud' },
|
||||||
|
{ id: 'midnight-light', name: 'Midnight Light' },
|
||||||
|
{ id: 'smooth-dark', name: 'Smooth Dark' },
|
||||||
|
{ id: 'pastel-lavender-dark', name: 'Pastel Lavender Dark' },
|
||||||
|
{ id: 'pastel-peach-dark', name: 'Pastel Peach Dark' },
|
||||||
|
{ id: 'pastel-cloud-dark', name: 'Pastel Cloud Dark' }
|
||||||
];
|
];
|
||||||
var SWATCH_VARS = ['--bg', '--surface', '--surface-2', '--muted', '--accent'];
|
var SWATCH_VARS = ['--bg', '--surface', '--surface-2', '--muted', '--accent'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user