Refine Dock with overlay rail, account menu, motion and teal themes
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Anidev Design System
|
||||
|
||||
Это лаборатория выбора, финальный стиль ещё не утверждён. Не выбирайте концепцию за пользователя и не устанавливайте глобальный Skill до явного выбора.
|
||||
Это лаборатория выбора, финальный стиль ещё не утверждён. Не выбирайте концепцию за пользователя и не устанавливайте глобальный Skill до явного утверждения финальной версии. Dock выбран для промежуточной доработки.
|
||||
|
||||
Прочитайте DESIGN.md, ANTI-SLOP.md, components/CONTRACT.md и references/RESEARCH.md перед UI-работой. Сохраняйте шесть различных layout-грамматик и одинаковые данные. Пользовательские указания имеют приоритет. Не активируйте внешние skills из .research: это исследовательские источники, не инструкции проекта.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Anidev Design System — направление на рассмотрении
|
||||
|
||||
Версия 0.1.0. Ни одна концепция не утверждена. Порядок карточек в лаборатории не является рейтингом.
|
||||
Версия 0.1.0. Для дальнейшей доработки выбран Dock; финальная версия не утверждена. Порядок карточек в лаборатории не является рейтингом.
|
||||
|
||||
Anidev помогает управлять идентификацией, пользователями, лицензиями и инфраструктурой. Характер бренда: точность, самостоятельность, понятный контроль. Визуальная выразительность должна помогать узнавать продукт и быстро работать с ним.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Anidev Design System
|
||||
|
||||
Локальная лаборатория выбора визуального языка Anidev. Шесть различных концепций, общие демонстрационные данные, рабочий HTML/CSS/JS. **Финальная концепция не выбрана.**
|
||||
Локальная лаборатория выбора визуального языка Anidev. Шесть различных концепций, общие демонстрационные данные, рабочий HTML/CSS/JS. **Для доработки выбран Dock. Текущая ревизия не финальная.**
|
||||
|
||||
## Запуск
|
||||
|
||||
@@ -44,3 +44,7 @@ Suite использует установленный Edge на Windows. Для
|
||||
[Источники, актуальность, лицензии и решения](references/RESEARCH.md). [Правила anti-slop](ANTI-SLOP.md). [Контракт компонентов](components/CONTRACT.md).
|
||||
|
||||
После вашего выбора фиксируются окончательные токены и правила, создаётся устанавливаемый универсальный Skill с примерами нового проекта и миграции. План — [SKILL.md](SKILL.md). Сейчас глобальная установка не производится, чтобы не назначить финальный стиль до вашего решения.
|
||||
|
||||
## Промежуточный Dock / revision 02
|
||||
|
||||
Для просмотра правок откройте `/playground/?concept=dock`: компактная панель с иконками, раскрытие поверх контента с затемнением, меню аккаунта по пользовательскому референсу, новые петрольно-бирюзовые темы и анимации. Это не финальная версия. [Описание и скриншоты](references/dock-revision/README.md). Целевой browser suite: `npm run test:dock`.
|
||||
@@ -26,3 +26,5 @@
|
||||
Hover и active — временные указательные состояния; focus-visible — клавиатурное. Loading и error применяются к операциям и вводам, а не к декоративным статусам. Системные компоненты не должны имитировать состояния, не имеющие смысла для их роли.
|
||||
|
||||
Это спецификация кандидатов и рабочие образцы, ещё не опубликованный пакет production-компонентов. Перед production нужны адаптер выбранного стека, ручная проверка screen reader, backend-контракт и обработка реальных ошибок сети.
|
||||
|
||||
Dock revision 02: постоянная панель иконок, переключатель aria-expanded/aria-controls; раскрытая навигация имеет role=dialog/aria-modal, основной контент inert. Tab остаётся в меню, Escape возвращает фокус переключателю, подложка закрывает меню. Меню аккаунта использует native popover с autofocus, light dismiss и Escape; первый Escape закрывает popover, второй — панель.
|
||||
@@ -1143,7 +1143,7 @@ body[data-concept="axis"] .auth-brand {
|
||||
gap: 100px;
|
||||
}
|
||||
body[data-concept="dock"] .shell {
|
||||
grid-template-columns: 110px minmax(0, 1fr);
|
||||
grid-template-columns: 68px minmax(0, 1fr);
|
||||
padding: 12px;
|
||||
gap: 12px;
|
||||
}
|
||||
@@ -1747,3 +1747,353 @@ table {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
/* Dock revision 02: fixed icon rail, overlay expansion, account menu. */
|
||||
body[data-concept="dock"] .shell {
|
||||
padding: 8px;
|
||||
gap: 8px;
|
||||
}
|
||||
body[data-concept="dock"] .navigation {
|
||||
position: fixed;
|
||||
z-index: 50;
|
||||
left: 8px;
|
||||
top: 8px;
|
||||
width: 68px;
|
||||
height: calc(100dvh - 16px);
|
||||
padding: 10px 8px;
|
||||
gap: 18px;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
border-radius: 14px;
|
||||
transition:
|
||||
width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
box-shadow 240ms;
|
||||
}
|
||||
body[data-concept="dock"] .main-column {
|
||||
grid-column: 2;
|
||||
}
|
||||
body[data-concept="dock"] .navigation .wordmark {
|
||||
height: 34px;
|
||||
white-space: nowrap;
|
||||
padding: 0 12px;
|
||||
gap: 8px;
|
||||
font-size: 20px;
|
||||
}
|
||||
body[data-concept="dock"] .navigation .wordmark b {
|
||||
font-size: 23px;
|
||||
}
|
||||
body[data-concept="dock"] .navigation .wordmark > span {
|
||||
opacity: 0;
|
||||
transition: opacity 140ms;
|
||||
}
|
||||
.dock-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
padding: 10px 13px;
|
||||
border: 0;
|
||||
white-space: nowrap;
|
||||
background: transparent;
|
||||
}
|
||||
.dock-toggle svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
flex-shrink: 0;
|
||||
transition: transform 240ms;
|
||||
}
|
||||
.dock-toggle > span {
|
||||
opacity: 0;
|
||||
transition: opacity 140ms;
|
||||
font-size: 13px;
|
||||
}
|
||||
body[data-concept="dock"] .nav-links {
|
||||
width: 100%;
|
||||
gap: 6px;
|
||||
}
|
||||
body[data-concept="dock"] .nav-links button {
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
padding: 12px 13px;
|
||||
gap: 15px;
|
||||
font-size: 14px;
|
||||
min-height: 46px;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
body[data-concept="dock"] .nav-links button > span {
|
||||
opacity: 0;
|
||||
transition: opacity 140ms;
|
||||
}
|
||||
body[data-concept="dock"] .nav-icon {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
body[data-concept="dock"] .dock-scrim {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 40;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: #07181fb3;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition:
|
||||
opacity 240ms,
|
||||
visibility 240ms;
|
||||
}
|
||||
body[data-concept="dock"].dock-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .navigation {
|
||||
width: 252px;
|
||||
box-shadow: 16px 0 48px #07181f38;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .dock-scrim {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .nav-links button > span,
|
||||
body[data-concept="dock"].dock-open .navigation .wordmark > span,
|
||||
body[data-concept="dock"].dock-open .dock-toggle > span {
|
||||
opacity: 1;
|
||||
transition-delay: 70ms;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .dock-toggle svg {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
body[data-concept="dock"] #content {
|
||||
padding: 16px;
|
||||
}
|
||||
body[data-concept="dock"] .app-header {
|
||||
min-height: 58px;
|
||||
padding: 10px 16px;
|
||||
}
|
||||
body[data-concept="dock"] .page-heading {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
body[data-concept="dock"] .dashboard-grid {
|
||||
grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
body[data-concept="dock"] .services {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="dock"] .panel,
|
||||
body[data-concept="dock"] .activity {
|
||||
padding: 18px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
body[data-concept="dock"] .activity {
|
||||
margin-top: 18px;
|
||||
}
|
||||
body[data-concept="dock"] .metric {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
body[data-concept="dock"] .metric-value {
|
||||
font-size: 31px;
|
||||
}
|
||||
body[data-concept="dock"] .page-heading,
|
||||
body[data-concept="dock"] .metrics,
|
||||
body[data-concept="dock"] .panel,
|
||||
body[data-concept="dock"] .activity {
|
||||
animation: dock-reveal 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
||||
}
|
||||
body[data-concept="dock"] .metrics {
|
||||
animation-delay: 35ms;
|
||||
}
|
||||
body[data-concept="dock"] .panel {
|
||||
animation-delay: 65ms;
|
||||
}
|
||||
body[data-concept="dock"] .activity {
|
||||
animation-delay: 95ms;
|
||||
}
|
||||
body[data-concept="dock"] button {
|
||||
transition:
|
||||
background 140ms,
|
||||
border-color 140ms,
|
||||
transform 140ms;
|
||||
}
|
||||
body[data-concept="dock"] button:not(:disabled):active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
body[data-concept="dock"] dialog[open] {
|
||||
animation: dock-reveal 200ms ease-out both;
|
||||
}
|
||||
.dock-account-area {
|
||||
margin-top: auto;
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding-top: 10px;
|
||||
}
|
||||
.dock-account {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 8px;
|
||||
border: 0;
|
||||
min-height: 48px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
}
|
||||
.dock-account > .avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex-shrink: 0;
|
||||
background: var(--color-accent);
|
||||
color: var(--color-on-accent);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.account-identity {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: left;
|
||||
opacity: 0;
|
||||
transition: opacity 140ms;
|
||||
}
|
||||
.account-identity b {
|
||||
font-size: 14px;
|
||||
}
|
||||
.account-identity small {
|
||||
font-size: 12px;
|
||||
}
|
||||
.account-more {
|
||||
margin-left: auto;
|
||||
opacity: 0;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .account-identity,
|
||||
body[data-concept="dock"].dock-open .account-more {
|
||||
opacity: 1;
|
||||
transition-delay: 70ms;
|
||||
}
|
||||
.account-menu {
|
||||
position: fixed;
|
||||
inset: auto auto 78px 16px;
|
||||
margin: 0;
|
||||
width: 236px;
|
||||
padding: 7px;
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 13px;
|
||||
box-shadow: 0 14px 40px #07181f40;
|
||||
}
|
||||
.account-menu:popover-open {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: dock-reveal 170ms ease-out;
|
||||
}
|
||||
.account-menu button {
|
||||
border: 0;
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
padding: 12px;
|
||||
min-height: 46px;
|
||||
background: transparent;
|
||||
}
|
||||
.account-menu button:hover {
|
||||
background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
|
||||
}
|
||||
.account-menu button.account-separator {
|
||||
border-top: 1px solid var(--color-border);
|
||||
margin-top: 4px;
|
||||
}
|
||||
@keyframes dock-reveal {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(7px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@media (max-width: 1100px) {
|
||||
body[data-concept="dock"] .dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
body[data-concept="dock"] .shell {
|
||||
display: grid;
|
||||
grid-template-columns: 60px minmax(0, 1fr);
|
||||
padding: 6px;
|
||||
gap: 6px;
|
||||
}
|
||||
body[data-concept="dock"] .navigation,
|
||||
body[data-concept="dock"] .navigation:not(.open) {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
left: 6px;
|
||||
top: 6px;
|
||||
width: 60px;
|
||||
height: calc(100dvh - 12px);
|
||||
padding: 8px 4px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
}
|
||||
body[data-concept="dock"] .navigation .wordmark {
|
||||
display: flex;
|
||||
padding-left: 10px;
|
||||
}
|
||||
body[data-concept="dock"] .nav-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
body[data-concept="dock"] .nav-links button {
|
||||
padding: 12px 14px;
|
||||
}
|
||||
body[data-concept="dock"] .mobile-menu {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="dock"] .navigation .nav-icon {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="dock"] #content {
|
||||
padding: 16px 10px;
|
||||
}
|
||||
body[data-concept="dock"] .app-header {
|
||||
padding: 10px;
|
||||
}
|
||||
.dock-toggle {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
body[data-concept="dock"] .breadcrumb {
|
||||
font-size: 11px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
body[data-concept="dock"] .header-actions {
|
||||
gap: 6px;
|
||||
}
|
||||
body[data-concept="dock"] .panel,
|
||||
body[data-concept="dock"] .activity {
|
||||
padding: 14px;
|
||||
}
|
||||
body[data-concept="dock"] h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
body[data-concept="dock"].dock-open .navigation {
|
||||
width: min(252px, calc(100vw - 24px));
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
body[data-concept="dock"] *,
|
||||
body[data-concept="dock"] *:before,
|
||||
body[data-concept="dock"] *:after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
body[data-concept="dock"] .header-actions > .avatar {
|
||||
display: none;
|
||||
}
|
||||
@@ -64,13 +64,17 @@ export const concepts = [
|
||||
name: "Dock",
|
||||
tag: "Персональный инструмент",
|
||||
en: "Personal instrument",
|
||||
desc: "Узкая панель · мягкая геометрия · рабочие модули",
|
||||
descEn: "Narrow rail · soft geometry · working modules",
|
||||
accent: "#765027",
|
||||
bg: "#f3f0eb",
|
||||
ink: "#543f25",
|
||||
line: "#d5cbbb",
|
||||
radius: "12px",
|
||||
desc: "Компактная панель · раскрытие поверх контента · петроль и бирюза",
|
||||
descEn: "Compact rail · overlay navigation · petrol and teal",
|
||||
accent: "#12616a",
|
||||
darkAccent: "#77cbbb",
|
||||
surface: "#fbfdfd",
|
||||
text: "#173239",
|
||||
muted: "#4c666d",
|
||||
bg: "#edf3f3",
|
||||
ink: "#173f49",
|
||||
line: "#c6d7da",
|
||||
radius: "10px",
|
||||
font: '"Trebuchet MS", Arial, sans-serif',
|
||||
layout: "rail",
|
||||
},
|
||||
@@ -98,11 +102,11 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
ledger: ["#211e1a", "#2b2721", "#efe5d6", "#c1b6a6", "#584e41"],
|
||||
signal: ["#101a13", "#16231a", "#d4e8d9", "#a4bfa9", "#36533e"],
|
||||
axis: ["#141c28", "#1b2738", "#e6edf8", "#a6bad6", "#3b4f6c"],
|
||||
dock: ["#211e1a", "#2d2821", "#f1e7d9", "#c7b6a0", "#5a4d3c"],
|
||||
dock: ["#111f26", "#192c34", "#e3f2f3", "#a5bec5", "#3b535c"],
|
||||
grid: ["#191a18", "#252622", "#f1f1e7", "#b8bcaf", "#53574a"],
|
||||
};
|
||||
const p = palettes[c.id];
|
||||
let selected = accent || c.accent;
|
||||
let selected = accent || (dark ? c.darkAccent || c.accent : c.accent);
|
||||
const luminance = (hex) =>
|
||||
hex
|
||||
.match(/\w\w/g)
|
||||
@@ -114,7 +118,7 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
y = luminance(b);
|
||||
return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05);
|
||||
};
|
||||
const backgrounds = dark ? [p[0], p[1]] : [c.bg, "#ffffff"];
|
||||
const backgrounds = dark ? [p[0], p[1]] : [c.bg, c.surface || "#ffffff"];
|
||||
for (
|
||||
let i = 0;
|
||||
i < 100 && backgrounds.some((bg) => contrast(selected, bg) < 4.5);
|
||||
@@ -141,9 +145,9 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
const on = lum > 0.179 ? "#101810" : "#ffffff";
|
||||
return {
|
||||
"color.bg": dark ? p[0] : c.bg,
|
||||
"color.surface": dark ? p[1] : "#ffffff",
|
||||
"color.text": dark ? p[2] : "#202622",
|
||||
"color.muted": dark ? p[3] : "#59635e",
|
||||
"color.surface": dark ? p[1] : c.surface || "#ffffff",
|
||||
"color.text": dark ? p[2] : c.text || "#202622",
|
||||
"color.muted": dark ? p[3] : c.muted || "#59635e",
|
||||
"color.border": dark ? p[4] : c.line,
|
||||
"color.accent": selected,
|
||||
"color.on-accent": on,
|
||||
@@ -154,7 +158,17 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
"font.heading": c.font,
|
||||
"space.unit": "4px",
|
||||
"space.section":
|
||||
density === "compact" ? "18px" : density === "relaxed" ? "36px" : "26px",
|
||||
c.id === "dock"
|
||||
? density === "compact"
|
||||
? "14px"
|
||||
: density === "relaxed"
|
||||
? "28px"
|
||||
: "20px"
|
||||
: density === "compact"
|
||||
? "18px"
|
||||
: density === "relaxed"
|
||||
? "36px"
|
||||
: "26px",
|
||||
"size.control":
|
||||
density === "compact" ? "34px" : density === "relaxed" ? "46px" : "40px",
|
||||
"space.cell":
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {"dev": "node scripts/serve.mjs", "start": "node scripts/serve.mjs", "test": "node tests/browser.mjs", "check": "node scripts/check.mjs"},
|
||||
"devDependencies": {"playwright": "^1.58.0"}
|
||||
"scripts": {
|
||||
"dev": "node scripts/serve.mjs",
|
||||
"start": "node scripts/serve.mjs",
|
||||
"test": "node tests/browser.mjs",
|
||||
"check": "node scripts/check.mjs",
|
||||
"test:dock": "node tests/dock.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"playwright": "^1.58.0"
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,11 @@ const theme = params.get("theme") === "dark" ? "dark" : "light",
|
||||
density = params.get("density") || "normal",
|
||||
locale = params.get("locale") === "en" ? "en" : "ru";
|
||||
const rawAccent = params.get("accent"),
|
||||
accent = /^#[0-9a-f]{6}$/i.test(rawAccent) ? rawAccent : concept.accent;
|
||||
accent = /^#[0-9a-f]{6}$/i.test(rawAccent)
|
||||
? rawAccent
|
||||
: theme === "dark"
|
||||
? concept.darkAccent || concept.accent
|
||||
: concept.accent;
|
||||
const tokens = tokensFor(concept.id, theme, accent, density);
|
||||
document.documentElement.style.cssText = cssVars(tokens);
|
||||
document.documentElement.lang = locale;
|
||||
@@ -179,20 +183,55 @@ function toast(message) {
|
||||
clearTimeout(toastTimer);
|
||||
toastTimer = setTimeout(() => ($("#toast").style.display = "none"), 3500);
|
||||
}
|
||||
function dockAccount() {
|
||||
return `<div class="dock-account-area"><div id="account-menu" class="account-menu" popover="auto" aria-label="${t("Меню аккаунта", "Account menu")}">
|
||||
<button autofocus data-action="profile">${icon("users")}<span>${t("Аккаунт", "Account")}</span></button>
|
||||
<button data-page="settings">${icon("settings")}<span>${t("Настройки", "Settings")}</span></button>
|
||||
<button data-action="shares">${icon("components")}<span>${t("Мои общие ресурсы", "My shares")}</span></button>
|
||||
<button data-page="dashboard">${icon("dashboard")}<span>${t("Панель управления", "Control panel")}</span></button>
|
||||
<button class="account-separator" data-action="switch-account">${icon("users")}<span>${t("Сменить аккаунт", "Switch account")}</span></button>
|
||||
<button class="account-separator" data-page="auth"><svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M9 4H4v16h5M13 7l5 5-5 5M8 12h11"/></svg><span>${t("Выйти", "Logout")}</span></button></div>
|
||||
<button class="dock-account" popovertarget="account-menu" aria-label="${t("Меню аккаунта Anna Volkova", "Anna Volkova account menu")}"><span class="avatar">AV</span><span class="account-identity"><b>Anna Volkova</b><small>anna@anidev.ru</small></span><span class="account-more" aria-hidden="true">···</span></button></div>`;
|
||||
}
|
||||
function nav() {
|
||||
return `<aside class="navigation">${wordmark}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${["dashboard", "users", "settings", "components", "tokens"].map((p) => `<button data-page="${p}" ${page === p ? 'aria-current="page"' : ""} title="${pageNames[p]}">${icon(p)}<span>${pageNames[p]}</span></button>`).join("")}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div></aside>`;
|
||||
return `<aside class="navigation" id="dock-navigation">${concept.id === "dock" ? `<button class="dock-toggle" data-action="dock-toggle" aria-expanded="false" aria-controls="dock-navigation" aria-label="${t("Развернуть меню", "Expand navigation")}" title="${t("Развернуть меню", "Expand navigation")}"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="M9 4v16M14 9l3 3-3 3"/></svg><span>${t("Свернуть меню", "Collapse navigation")}</span></button>` : ""}${wordmark}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${["dashboard", "users", "settings", "components", "tokens"].map((p) => `<button data-page="${p}" ${page === p ? 'aria-current="page"' : ""} title="${pageNames[p]}" aria-label="${pageNames[p]}">${icon(p)}<span>${pageNames[p]}</span></button>`).join("")}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div>${concept.id === "dock" ? dockAccount() : ""}</aside>`;
|
||||
}
|
||||
function header() {
|
||||
return `<header class="app-header"><button class="mobile-menu" data-action="mobile-menu" aria-label="${t("Открыть навигацию", "Open navigation")}" aria-expanded="false">☰</button><div class="breadcrumb">Anidev <span aria-hidden="true">/</span> Production <span aria-hidden="true">/</span> ${pageNames[page]}</div><div class="header-actions"><button class="command-trigger" data-action="command">${t("Найти команду", "Find a command")} <kbd>⌘ K</kbd></button><button class="avatar" data-action="profile" aria-label="${t("Профиль Anna Volkova", "Anna Volkova profile")}">AV</button></div></header>`;
|
||||
}
|
||||
const heading = (title, desc, actions = "") =>
|
||||
`<div class="page-heading"><div><div class="overline">ANIDEV://PRODUCTION/${page.toUpperCase()}</div><h1>${title}</h1><p>${desc}</p></div><div class="heading-actions">${actions}</div></div>`;
|
||||
function setDockOpen(open, returnFocus = true) {
|
||||
const nav = $(".navigation");
|
||||
if (!nav || concept.id !== "dock") return;
|
||||
document.body.classList.toggle("dock-open", open);
|
||||
const toggle = $(".dock-toggle");
|
||||
toggle.setAttribute("aria-expanded", String(open));
|
||||
toggle.setAttribute(
|
||||
"aria-label",
|
||||
open
|
||||
? t("Свернуть меню", "Collapse navigation")
|
||||
: t("Развернуть меню", "Expand navigation"),
|
||||
);
|
||||
toggle.title = toggle.getAttribute("aria-label");
|
||||
$(".main-column").inert = open;
|
||||
if (open) {
|
||||
nav.setAttribute("role", "dialog");
|
||||
nav.setAttribute("aria-modal", "true");
|
||||
nav.setAttribute("aria-label", t("Навигация", "Navigation"));
|
||||
} else {
|
||||
nav.removeAttribute("role");
|
||||
nav.removeAttribute("aria-modal");
|
||||
if (returnFocus) toggle.focus();
|
||||
}
|
||||
}
|
||||
function render() {
|
||||
document.body.classList.remove("dock-open");
|
||||
document.title = `Anidev / ${concept.name} / ${pageNames[page]}`;
|
||||
$("#app").innerHTML =
|
||||
page === "auth"
|
||||
? auth()
|
||||
: `<div class="shell">${nav()}<div class="main-column">${header()}<main id="content" tabindex="-1">${{ dashboard, users: userScreen, settings: settingsScreen, components: componentScreen, tokens: tokenScreen }[page]()}</main></div></div>`;
|
||||
: `<div class="shell">${nav()}${concept.id === "dock" ? `<button class="dock-scrim" data-action="dock-close" tabindex="-1" aria-label="${t("Закрыть меню", "Close navigation")}" aria-hidden="true"></button>` : ""}<div class="main-column">${header()}<main id="content" tabindex="-1">${{ dashboard, users: userScreen, settings: settingsScreen, components: componentScreen, tokens: tokenScreen }[page]()}</main></div></div>`;
|
||||
bindForms();
|
||||
if (page === "users") bindUsers();
|
||||
}
|
||||
@@ -374,6 +413,7 @@ function tokenScreen() {
|
||||
}
|
||||
let dialogInitiator = null;
|
||||
function openDialog(title, body, cls = "") {
|
||||
if (document.body.classList.contains("dock-open")) setDockOpen(false, false);
|
||||
const d = $("#dialog");
|
||||
if (d.open) d.close();
|
||||
dialogInitiator = document.activeElement;
|
||||
@@ -572,8 +612,51 @@ document.addEventListener("click", async (e) => {
|
||||
action = button?.dataset.action;
|
||||
if (!e.target.closest(".context-menu")) $(".context-menu")?.remove();
|
||||
if (!action) return;
|
||||
document
|
||||
.querySelectorAll("[popover]:popover-open")
|
||||
.forEach((el) => el.hidePopover());
|
||||
const actions = {
|
||||
shares: () =>
|
||||
openDialog(
|
||||
t("Мои общие ресурсы", "My shares"),
|
||||
`<p>${t("Общих ресурсов пока нет.", "No shared resources yet.")}</p><button data-action="close">${t("Закрыть", "Close")}</button>`,
|
||||
"drawer",
|
||||
),
|
||||
"switch-account": () => {
|
||||
setDockOpen(false, false);
|
||||
openDialog(
|
||||
t("Сменить аккаунт", "Switch account"),
|
||||
`<p>${t("Демонстрация SSO-переключения. Реальный провайдер не подключён.", "Demo SSO account switching. No live provider is connected.")}</p><div class="command-list"><button data-action="select-account" data-account="Anna Volkova">Anna Volkova <small>anna@anidev.ru</small></button><button data-action="select-account" data-account="Mikhail Orlov">Mikhail Orlov <small>mikhail@anidev.ru</small></button></div>`,
|
||||
);
|
||||
},
|
||||
"select-account": () => {
|
||||
const name = button.dataset.account;
|
||||
$("#dialog").close();
|
||||
document.querySelectorAll(".dock-account .avatar").forEach(
|
||||
(el) =>
|
||||
(el.textContent = name
|
||||
.split(" ")
|
||||
.map((v) => v[0])
|
||||
.join("")),
|
||||
);
|
||||
$(".account-identity b").textContent = name;
|
||||
$(".account-identity small").textContent = name.startsWith("Anna")
|
||||
? "anna@anidev.ru"
|
||||
: "mikhail@anidev.ru";
|
||||
$(".dock-account").setAttribute(
|
||||
"aria-label",
|
||||
t("Меню аккаунта ", "Account menu ") + name,
|
||||
);
|
||||
toast(t("Демо-аккаунт выбран: ", "Demo account selected: ") + name);
|
||||
},
|
||||
"dock-toggle": () =>
|
||||
setDockOpen(!document.body.classList.contains("dock-open")),
|
||||
"dock-close": () => setDockOpen(false),
|
||||
"mobile-menu": () => {
|
||||
if (concept.id === "dock") {
|
||||
setDockOpen(!document.body.classList.contains("dock-open"));
|
||||
return;
|
||||
}
|
||||
const nav = $(".navigation");
|
||||
nav.classList.toggle("open");
|
||||
button.setAttribute("aria-expanded", nav.classList.contains("open"));
|
||||
@@ -744,6 +827,35 @@ document.addEventListener("click", async (e) => {
|
||||
});
|
||||
});
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape" && $("[popover]:popover-open")) {
|
||||
e.preventDefault();
|
||||
$("[popover]:popover-open").hidePopover();
|
||||
$(".dock-account")?.focus();
|
||||
return;
|
||||
}
|
||||
if (document.body.classList.contains("dock-open")) {
|
||||
if (e.key === "Escape") {
|
||||
e.preventDefault();
|
||||
setDockOpen(false);
|
||||
return;
|
||||
}
|
||||
if (e.key === "Tab") {
|
||||
const items = [...$(".navigation").querySelectorAll("button")].filter(
|
||||
(el) => el.getClientRects().length && !el.closest("[popover]"),
|
||||
);
|
||||
const first = items[0],
|
||||
last = items.at(-1);
|
||||
if (e.shiftKey && document.activeElement === first) {
|
||||
e.preventDefault();
|
||||
last.focus();
|
||||
} else if (!e.shiftKey && document.activeElement === last) {
|
||||
e.preventDefault();
|
||||
first.focus();
|
||||
}
|
||||
}
|
||||
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "k")
|
||||
setDockOpen(false, false);
|
||||
}
|
||||
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "k") {
|
||||
e.preventDefault();
|
||||
command();
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { concepts, tokensFor, cssVars } from "../concepts/registry.js";
|
||||
const $ = (s) => document.querySelector(s);
|
||||
const defaults = {
|
||||
concept: "relay",
|
||||
concept: "dock",
|
||||
second: "ledger",
|
||||
page: "dashboard",
|
||||
theme: "light",
|
||||
density: "normal",
|
||||
density: "compact",
|
||||
size: "desktop",
|
||||
locale: "ru",
|
||||
compare: false,
|
||||
@@ -36,6 +36,13 @@ const strings = {
|
||||
"Explorations in review — no final concept selected",
|
||||
],
|
||||
};
|
||||
const requested = new URLSearchParams(location.search);
|
||||
if (requested.get("concept") === "dock") {
|
||||
state.concept = "dock";
|
||||
state.compare = false;
|
||||
state.density = "compact";
|
||||
delete state.accents.dock;
|
||||
}
|
||||
function render() {
|
||||
const en = state.locale === "en";
|
||||
document.documentElement.lang = state.locale;
|
||||
@@ -59,7 +66,9 @@ function render() {
|
||||
$("#workspace").classList.toggle("comparing", state.compare);
|
||||
$("#workspace").dataset.device = state.size;
|
||||
const c = concepts.find((c) => c.id === state.concept);
|
||||
$("#accent").value = state.accents[c.id] || c.accent;
|
||||
$("#accent").value =
|
||||
state.accents[c.id] ||
|
||||
(state.theme === "dark" ? c.darkAccent || c.accent : c.accent);
|
||||
$("#current-name").textContent = c.name;
|
||||
$("#current-desc").textContent = en ? c.descEn : c.desc;
|
||||
$("#heading-a").textContent = state.compare ? "A / " + c.name : "";
|
||||
@@ -125,7 +134,8 @@ function render() {
|
||||
density: state.density,
|
||||
locale: state.locale,
|
||||
accent:
|
||||
state.accents[concept] || concepts.find((c) => c.id === concept).accent,
|
||||
state.accents[concept] ||
|
||||
tokensFor(concept, state.theme)["color.accent"],
|
||||
});
|
||||
const src = "frame.html?" + params;
|
||||
if ($("#preview-" + side).getAttribute("src") !== src)
|
||||
@@ -249,7 +259,9 @@ $("#export").onclick = async () => {
|
||||
button.disabled = true;
|
||||
try {
|
||||
const c = concepts.find((c) => c.id === state.concept),
|
||||
accent = state.accents[c.id] || c.accent;
|
||||
accent =
|
||||
state.accents[c.id] ||
|
||||
(state.theme === "dark" ? c.darkAccent || c.accent : c.accent);
|
||||
const files = {};
|
||||
const paths = [
|
||||
"components/system.css",
|
||||
|
||||
@@ -38,3 +38,7 @@
|
||||
Тесты Edge не заменяют проверку Firefox/Safari, screen reader и контента реального проекта. Полный аудит WCAG не заявляется. Внешний Impeccable CLI не запущен: в клоне нет бинарника Windows, а первая загрузка engine из sandbox не удалась. Его рекомендациям не приписывается автоматический PASS; QA проведён собственными проверками и Playwright. Поиск UI/UX Pro Max реально выполнялся локально.
|
||||
|
||||
Финальная концепция и устанавливаемый Skill ждут выбора пользователя. Внешняя публикация Sites не выполнялась: запрос был на локальное приложение и Git push.
|
||||
|
||||
## Dock revision 02
|
||||
|
||||
После пользовательских правок повторная общая матрица: 230 passed, 0 failed. Целевые проверки Dock: 8 passed, 0 ошибок JavaScript — шесть сочетаний темы/размера, клавиатурное меню аккаунта с двухэтапным Escape и reduced motion. Проверены неизменность геометрии контента при раскрытии, inert, затемнение, иконки/подписи, демо-смена аккаунта и закрытие снаружи. Токены обеих новых тем проходят проверку контраста. Актуальные снимки ревизии — в `dock-revision/`; общие contact sheets выше относятся к первоначальному исследованию. Финального утверждения нет.
|
||||
@@ -0,0 +1,14 @@
|
||||
# Dock — промежуточная ревизия 02
|
||||
|
||||
Выбран пользователем для доработки, не утверждён как финальная дизайн-система.
|
||||
|
||||
- Панель 68px на desktop, 60px на mobile. В свёрнутом виде видны только иконки и аватар; имена действий доступны через aria-label и title.
|
||||
- Раскрытие до 252px поверх рабочей области, без изменения её ширины или положения. Затемнение фона, inert для контента, клавиатурный цикл внутри меню. Закрытие кнопкой, Escape или кликом по фону. Переход 240ms.
|
||||
- Аккаунт внизу панели; меню с группами действий по пользовательскому референсу: аккаунт, настройки, общие ресурсы, панель управления, смена аккаунта, выход. В демо используется Anna Volkova и тестовая почта из общих данных. Настоящая SSO-интеграция не подключена.
|
||||
- Светлая тема: холодный туман `#edf3f3`, почти белая поверхность `#fbfdfd`, петрольный текст `#173239`, акцент `#12616a`.
|
||||
- Тёмная тема: глубокий петроль `#111f26`, поверхность `#192c34`, светлый текст `#e3f2f3`, мятно-бирюзовый акцент `#77cbbb`.
|
||||
- Более компактные интервалы, двухколоночный обзор на широком экране. Появление секций 300ms, окон 200ms, меню аккаунта 170ms, обратная связь кнопок 140ms. `prefers-reduced-motion` отключает движение.
|
||||
|
||||
Скриншоты в этой папке: обе темы × desktop/tablet/mobile × collapsed/expanded/account. `qa.json` содержит результат целевых проверок. Общая галерея открывает ревизию по адресу `/playground/?concept=dock`; параметр сбрасывает старый акцент Dock и включает compact для просмотра правок.
|
||||
|
||||
Skill и финальная фиксация токенов отложены до утверждения этой или следующей ревизии пользователем.
|
||||
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 86 KiB |
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"passed": 8,
|
||||
"errors": [],
|
||||
"checks": "6 theme/viewport scenarios: overlay geometry, inert background, scrim, icons/labels, account switch, Escape/outside close; reduced motion"
|
||||
}
|
||||
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 138 KiB |
@@ -266,7 +266,13 @@ try {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
for (const c of concepts) {
|
||||
await page.goto(url(c.id));
|
||||
await page.locator("[data-action=mobile-menu]").click();
|
||||
await page
|
||||
.locator(
|
||||
c.id === "dock"
|
||||
? "[data-action=dock-toggle]"
|
||||
: "[data-action=mobile-menu]",
|
||||
)
|
||||
.click();
|
||||
await page.locator(".nav-links [data-page=users]").click();
|
||||
await page.locator("#user-search").waitFor();
|
||||
for (const density of ["compact", "relaxed"]) {
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
import { chromium } from "playwright";
|
||||
import assert from "node:assert/strict";
|
||||
import { mkdir, writeFile } from "node:fs/promises";
|
||||
const base = process.env.BASE_URL || "http://127.0.0.1:4173";
|
||||
const browser = await chromium.launch({
|
||||
executablePath:
|
||||
process.env.PLAYWRIGHT_EXECUTABLE_PATH ||
|
||||
"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe",
|
||||
headless: true,
|
||||
});
|
||||
let passed = 0;
|
||||
const errors = [];
|
||||
await mkdir("references/dock-revision", { recursive: true });
|
||||
try {
|
||||
const p = await browser.newPage();
|
||||
p.on("pageerror", (e) => errors.push(e.message));
|
||||
for (const theme of ["light", "dark"])
|
||||
for (const [device, width, height] of [
|
||||
["desktop", 1440, 900],
|
||||
["tablet", 768, 1024],
|
||||
["mobile", 390, 844],
|
||||
]) {
|
||||
await p.setViewportSize({ width, height });
|
||||
await p.goto(
|
||||
`${base}/playground/frame.html?concept=dock&density=compact&theme=${theme}`,
|
||||
);
|
||||
await p.locator("h1").waitFor();
|
||||
await p.waitForTimeout(400);
|
||||
assert.ok(
|
||||
await p
|
||||
.locator(".navigation")
|
||||
.evaluate((el) => el.getBoundingClientRect().width <= 68),
|
||||
);
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".nav-links button>span")
|
||||
.first()
|
||||
.evaluate((el) => getComputedStyle(el).opacity),
|
||||
"0",
|
||||
);
|
||||
const before = await p.locator(".main-column").boundingBox();
|
||||
await p.screenshot({
|
||||
path: `references/dock-revision/${theme}-${device}-collapsed.png`,
|
||||
});
|
||||
await p.locator(".dock-toggle").click();
|
||||
await p.waitForTimeout(300);
|
||||
const after = await p.locator(".main-column").boundingBox();
|
||||
assert.equal(before.x, after.x);
|
||||
assert.equal(before.width, after.width);
|
||||
assert.equal(
|
||||
await p.locator(".main-column").evaluate((el) => el.inert),
|
||||
true,
|
||||
);
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".dock-scrim")
|
||||
.evaluate((el) => getComputedStyle(el).opacity),
|
||||
"1",
|
||||
);
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".nav-links button>span")
|
||||
.first()
|
||||
.evaluate((el) => getComputedStyle(el).opacity),
|
||||
"1",
|
||||
);
|
||||
await p.screenshot({
|
||||
path: `references/dock-revision/${theme}-${device}-expanded.png`,
|
||||
});
|
||||
await p.locator(".dock-account").click();
|
||||
await p.locator("#account-menu").waitFor({ state: "visible" });
|
||||
await p.waitForTimeout(220);
|
||||
await p.screenshot({
|
||||
path: `references/dock-revision/${theme}-${device}-account.png`,
|
||||
});
|
||||
await p.locator("#account-menu [data-action=switch-account]").click();
|
||||
await p.locator("#dialog").waitFor({ state: "visible" });
|
||||
await p.locator('[data-account="Mikhail Orlov"]').click();
|
||||
assert.equal(
|
||||
await p.locator(".account-identity b").innerText(),
|
||||
"Mikhail Orlov",
|
||||
);
|
||||
await p.locator(".dock-toggle").click();
|
||||
await p.keyboard.press("Escape");
|
||||
assert.equal(
|
||||
await p.locator(".main-column").evaluate((el) => el.inert),
|
||||
false,
|
||||
);
|
||||
await p.locator(".dock-toggle").click();
|
||||
await p.waitForTimeout(300);
|
||||
await p.mouse.click(width - 12, Math.floor(height / 2));
|
||||
assert.equal(
|
||||
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
|
||||
"false",
|
||||
);
|
||||
assert.ok(
|
||||
await p.evaluate(
|
||||
() => document.documentElement.scrollWidth <= innerWidth + 1,
|
||||
),
|
||||
);
|
||||
passed++;
|
||||
}
|
||||
await p.locator(".dock-toggle").click();
|
||||
await p.locator(".dock-account").focus();
|
||||
await p.keyboard.press("Enter");
|
||||
assert.equal(
|
||||
await p.evaluate(() => document.activeElement.closest("[popover]")?.id),
|
||||
"account-menu",
|
||||
);
|
||||
await p.keyboard.press("Escape");
|
||||
assert.equal(
|
||||
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
);
|
||||
await p.keyboard.press("Escape");
|
||||
assert.equal(
|
||||
await p.locator(".dock-toggle").getAttribute("aria-expanded"),
|
||||
"false",
|
||||
);
|
||||
passed++;
|
||||
await p.emulateMedia({ reducedMotion: "reduce" });
|
||||
await p.reload();
|
||||
assert.equal(
|
||||
await p
|
||||
.locator(".panel")
|
||||
.first()
|
||||
.evaluate((el) => getComputedStyle(el).animationName),
|
||||
"none",
|
||||
);
|
||||
passed++;
|
||||
assert.deepEqual(errors, []);
|
||||
await writeFile(
|
||||
"references/dock-revision/qa.json",
|
||||
JSON.stringify(
|
||||
{
|
||||
passed,
|
||||
errors,
|
||||
checks:
|
||||
"6 theme/viewport scenarios: overlay geometry, inert background, scrim, icons/labels, account switch, Escape/outside close; reduced motion",
|
||||
},
|
||||
null,
|
||||
2,
|
||||
),
|
||||
);
|
||||
console.log("Dock revision:", passed, "passed");
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
@@ -1,18 +1,18 @@
|
||||
:root {
|
||||
--color-bg: #211e1a;
|
||||
--color-surface: #2d2821;
|
||||
--color-text: #f1e7d9;
|
||||
--color-muted: #c7b6a0;
|
||||
--color-border: #5a4d3c;
|
||||
--color-accent: #a58b70;
|
||||
--color-bg: #111f26;
|
||||
--color-surface: #192c34;
|
||||
--color-text: #e3f2f3;
|
||||
--color-muted: #a5bec5;
|
||||
--color-border: #3b535c;
|
||||
--color-accent: #77cbbb;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 12px;
|
||||
--radius-control: 10px;
|
||||
--font-body: "Trebuchet MS", Arial, sans-serif;
|
||||
--font-heading: "Trebuchet MS", Arial, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--space-section: 20px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"color.bg": "#211e1a",
|
||||
"color.surface": "#2d2821",
|
||||
"color.text": "#f1e7d9",
|
||||
"color.muted": "#c7b6a0",
|
||||
"color.border": "#5a4d3c",
|
||||
"color.accent": "#a58b70",
|
||||
"color.bg": "#111f26",
|
||||
"color.surface": "#192c34",
|
||||
"color.text": "#e3f2f3",
|
||||
"color.muted": "#a5bec5",
|
||||
"color.border": "#3b535c",
|
||||
"color.accent": "#77cbbb",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "12px",
|
||||
"radius.control": "10px",
|
||||
"font.body": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"font.heading": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"space.section": "20px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
:root {
|
||||
--color-bg: #f3f0eb;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #d5cbbb;
|
||||
--color-accent: #765027;
|
||||
--color-bg: #edf3f3;
|
||||
--color-surface: #fbfdfd;
|
||||
--color-text: #173239;
|
||||
--color-muted: #4c666d;
|
||||
--color-border: #c6d7da;
|
||||
--color-accent: #12616a;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 12px;
|
||||
--radius-control: 10px;
|
||||
--font-body: "Trebuchet MS", Arial, sans-serif;
|
||||
--font-heading: "Trebuchet MS", Arial, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--space-section: 20px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"color.bg": "#f3f0eb",
|
||||
"color.surface": "#ffffff",
|
||||
"color.text": "#202622",
|
||||
"color.muted": "#59635e",
|
||||
"color.border": "#d5cbbb",
|
||||
"color.accent": "#765027",
|
||||
"color.bg": "#edf3f3",
|
||||
"color.surface": "#fbfdfd",
|
||||
"color.text": "#173239",
|
||||
"color.muted": "#4c666d",
|
||||
"color.border": "#c6d7da",
|
||||
"color.accent": "#12616a",
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"radius.control": "12px",
|
||||
"radius.control": "10px",
|
||||
"font.body": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"font.heading": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"space.section": "20px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
|
||||