MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,133: | Line 1,133: | ||
// one entry (#F6C500, a saturated gold) wasn't actually light at | // one entry (#F6C500, a saturated gold) wasn't actually light at | ||
// all, which is very likely what read as "really dark" in practice. | // all, which is very likely what read as "really dark" in practice. | ||
// Replaced with 10 colors | // Replaced with 10 colors in the site's own warm palette (matching | ||
// | // the maroon/cream tones already used throughout Common.css - | ||
// #b5451b, #fdf0eb, #f0cfc4), all kept in the ~94-97% lightness | |||
// range so they stay easy to read against dark text regardless of | |||
// which one a given teeka lands on. First entry is #fcf5f3 - the | |||
// | // exact background .teeka-block itself already uses on a native | ||
// teeka page (verified at 97.1% lightness), per direction, so the | |||
// most common single-commentary case matches the site's own | |||
// existing look exactly rather than introducing a new shade for it. | |||
var TEEKA_COLOR_PALETTE = [ | var TEEKA_COLOR_PALETTE = [ | ||
'# | '#fcf5f3', '#F5EFE6', '#F0F5EC', '#EEF3F6', '#F6EFF3', | ||
'#F3F0F8', '#F8F3EA', '#EEF6F2', '#F6EEEE', '#F2F0EC' | '#F3F0F8', '#F8F3EA', '#EEF6F2', '#F6EEEE', '#F2F0EC' | ||
]; | ]; | ||