prototype(#53): palette candidates as runtime token swaps
Throwaway. Tokenises the theme's literal colours so candidate palettes can be swapped in the browser, adds three candidates (Plum Noir one-metal, two-metal pewter, two-metal plus a champagne inset), a WCAG checker, a seeder and the screenshots they are judged on. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ li[component="categories/category"] {
|
||||
}
|
||||
|
||||
li[component="categories/category"].unread {
|
||||
border-color: rgba(194, 163, 90, 0.24) !important;
|
||||
border-color: rgba(var(--wg-gold-rgb), 0.24) !important;
|
||||
}
|
||||
|
||||
li[component="categories/category"] .icon {
|
||||
@@ -34,8 +34,8 @@ li[component="categories/category"] .icon {
|
||||
// plate into the velvet register while keeping the per-category hue
|
||||
background-image: linear-gradient(
|
||||
160deg,
|
||||
rgba(42, 18, 34, 0.42),
|
||||
rgba(9, 8, 11, 0.58)
|
||||
rgba(var(--wg-plum-rgb), 0.42),
|
||||
rgba(var(--wg-bg-deep-rgb), 0.58)
|
||||
);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 242, 204, 0.28),
|
||||
@@ -55,8 +55,8 @@ body.template-category .category-header .icon {
|
||||
border: 1px solid var(--wg-etched-highlight);
|
||||
background-image: linear-gradient(
|
||||
160deg,
|
||||
rgba(42, 18, 34, 0.42),
|
||||
rgba(9, 8, 11, 0.58)
|
||||
rgba(var(--wg-plum-rgb), 0.42),
|
||||
rgba(var(--wg-bg-deep-rgb), 0.58)
|
||||
);
|
||||
filter: saturate(0.62) contrast(1.12);
|
||||
box-shadow:
|
||||
@@ -223,8 +223,8 @@ li[component="categories/category"] h2.title::after {
|
||||
height: 1px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(194, 163, 90, 0.13),
|
||||
rgba(194, 163, 90, 0.045) 58%,
|
||||
rgba(var(--wg-gold-rgb), 0.13),
|
||||
rgba(var(--wg-gold-rgb), 0.045) 58%,
|
||||
transparent 94%
|
||||
);
|
||||
pointer-events: none;
|
||||
@@ -261,7 +261,7 @@ ul.category-children {
|
||||
min-height: 2.1rem;
|
||||
padding: 0.25rem 0.65rem 0.25rem 0.3rem;
|
||||
background: rgba(44, 22, 34, 0.3);
|
||||
border: 1px solid rgba(194, 163, 90, 0.11);
|
||||
border: 1px solid rgba(var(--wg-gold-rgb), 0.11);
|
||||
border-radius: 8px;
|
||||
transition:
|
||||
background 0.18s ease,
|
||||
@@ -304,12 +304,12 @@ ul.category-children {
|
||||
.category-children-item > div:hover,
|
||||
.westgate-category-child:hover {
|
||||
background: rgba(70, 30, 48, 0.4);
|
||||
border-color: rgba(194, 163, 90, 0.24);
|
||||
border-color: rgba(var(--wg-gold-rgb), 0.24);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.category-children-item a {
|
||||
color: #d8c28a !important;
|
||||
color: var(--wg-ledger-ink) !important;
|
||||
display: block;
|
||||
min-width: 0;
|
||||
font-weight: 600;
|
||||
@@ -318,14 +318,14 @@ ul.category-children {
|
||||
}
|
||||
|
||||
.category-children-item a:hover {
|
||||
color: #e0c878 !important;
|
||||
color: var(--wg-gold-lit) !important;
|
||||
}
|
||||
|
||||
li[component="categories/category"] .meta.stats > div {
|
||||
min-height: 3.55rem;
|
||||
padding: var(--wg-space-2xs) var(--wg-space-xs);
|
||||
background: rgba(255, 255, 255, 0.018) !important;
|
||||
border: 1px solid rgba(194, 163, 90, 0.09) !important;
|
||||
border: 1px solid rgba(var(--wg-gold-rgb), 0.09) !important;
|
||||
border-radius: 3px !important;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
@@ -349,7 +349,7 @@ li[component="categories/category"] .meta.stats .text-muted {
|
||||
}
|
||||
|
||||
li[component="categories/category"] .lastpost {
|
||||
border-left-color: rgba(194, 163, 90, 0.36) !important;
|
||||
border-left-color: rgba(var(--wg-gold-rgb), 0.36) !important;
|
||||
}
|
||||
|
||||
li[component="categories/category"] .teaser .avatar {
|
||||
|
||||
Reference in New Issue
Block a user