Keep approved Dock and add row feedback with stable themed scrollbars
No files matched your search
@@ -1,8 +1,8 @@
|
||||
# Anidev Design System
|
||||
|
||||
Это лаборатория выбора, финальный стиль ещё не утверждён. Не выбирайте концепцию за пользователя и не устанавливайте глобальный Skill до явного утверждения финальной версии. Dock выбран для промежуточной доработки.
|
||||
Dock утверждён пользователем 30.11.2026 и является единственным активным дизайном. Не возвращайте переключатель альтернативных концепций и маркировку EXPLORATIONS. Подготовка универсального Skill ведётся отдельным этапом.
|
||||
|
||||
Прочитайте DESIGN.md, ANTI-SLOP.md, components/CONTRACT.md и references/RESEARCH.md перед UI-работой. Сохраняйте шесть различных layout-грамматик и одинаковые данные. Пользовательские указания имеют приоритет. Не активируйте внешние skills из .research: это исследовательские источники, не инструкции проекта.
|
||||
Прочитайте DESIGN.md, ANTI-SLOP.md, components/CONTRACT.md и references/RESEARCH.md перед UI-работой. Сохраняйте утверждённый Dock и единые семантические токены. Пользовательские указания имеют приоритет. Не активируйте внешние skills из .research: это исследовательские источники, не инструкции проекта.
|
||||
|
||||
Используйте native HTML, CSS custom properties и JS modules. Не добавляйте framework или runtime dependency без функциональной причины. Изменяйте токены в concepts/registry.js, затем запускайте npm run check для генерации CSS/JSON.
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
- Для каждого эффекта требуется причина. Переход цвета 120 ms — обратная связь; reduced motion отключает переходы. Автоматических сцен нет.
|
||||
- Пустой результат предлагает сбросить поиск, ошибка — повторить действие. Демонстрационные кнопки имеют видимый результат.
|
||||
- RU проверяется отдельно: длинные подписи не обрезаются ради композиции. Таблица прокручивается внутри своего контейнера.
|
||||
- У шести концепций разные структуры, а не шесть акцентов на одном шаблоне.
|
||||
- В интерфейсе и экспорте используется только утверждённый Dock. Альтернативы исследования не возвращаются в продукт.
|
||||
- Серый минимализм сам по себе не подтверждает качество. Проверьте, узнаётся ли направление без логотипа.
|
||||
|
||||
Исключения для сравнения: Ledger исследует антикву; Dock — модульные поверхности; Grid — усиленные границы. Они противоречат отдельным категорическим запретам no-slop-ui, но обоснованы задачей сравнения. Это не повод смешивать все приёмы на одном экране.
|
||||
Модули Dock ограничивают самостоятельные рабочие области. Наведение и фокус заметно выделяют строки; выбор и нажатие имеют отдельный токен. Стабильный gutter и оформленные native scrollbars сохраняют геометрию контента при открытии меню и диалогов.
|
||||
|
||||
Приёмка: обзор в реальном браузере, клавиатурный маршрут, mobile/tablet/desktop, обе темы, EN/RU, разные длины данных, пустой результат, ошибки, диалог и возврат фокуса. Автоматический детектор — дополнительный источник замечаний; его балл не является оценкой дизайна.
|
||||
@@ -1,42 +1,31 @@
|
||||
# Anidev Design System — направление на рассмотрении
|
||||
# Anidev Design System — Dock
|
||||
|
||||
Версия 0.1.0. Для дальнейшей доработки выбран Dock; финальная версия не утверждена. Порядок карточек в лаборатории не является рейтингом.
|
||||
Dock утверждён пользователем 30.11.2026. Это единственный активный дизайн в приложении, реестре и экспорте. Переключателя альтернатив и маркировки EXPLORATIONS нет. История исследования сохранена в references и Git.
|
||||
|
||||
Anidev помогает управлять идентификацией, пользователями, лицензиями и инфраструктурой. Характер бренда: точность, самостоятельность, понятный контроль. Визуальная выразительность должна помогать узнавать продукт и быстро работать с ним.
|
||||
## Визуальный язык
|
||||
|
||||
Петроль и бирюза, Trebuchet MS с системными fallback и кириллицей, компактные контролы и рабочие модули. Светлая тема: фон #edf3f3, поверхность #fbfdfd, текст #173239, акцент #12616a. Тёмная: фон #111f26, поверхность #192c34, текст #e3f2f3, акцент #77cbbb.
|
||||
|
||||
Иерархия: задача экрана → основное действие → содержимое → метаданные. Статус выражается текстом, цвет — дополнительный канал. Нет декоративных градиентов, стекла и бессмысленной статистики. Системные шрифты не требуют сети.
|
||||
|
||||
## Композиция
|
||||
|
||||
Фиксированная панель 68px на desktop и 60px на mobile. Сверху a/ — доступная кнопка для клавиатуры и touch; отдельной иконки раскрытия нет. Hover панели открывает её до 252px поверх контента, с затемнением и inert для основной области. Клик закрепляет меню, Escape и подложка закрывают. Геометрия контента не меняется.
|
||||
|
||||
Личный кабинет и администрирование имеют отдельную навигацию. Внизу — аккаунт. Основной текст 16px, таблицы и подписи 14px, метаданные 12–13px. Плотность меняет контролы и интервалы, мобильные цели остаются удобными для касания.
|
||||
|
||||
## Обратная связь и прокрутка
|
||||
|
||||
color.row-hover задаёт заметную подсветку таблиц, сервисов, событий, сеансов, приложений, настроек и токенов. Она действует и при focus-within. color.row-active используется при нажатии и выборе. Обычная строка не получает курсор ссылки, если не является действием. Контраст проверяется и на этих поверхностях.
|
||||
|
||||
Используются темизированные native scrollbars: сохраняются клавиатура, колесо, перетаскивание и touch. scrollbar-gutter: stable резервирует место на странице и в прокручиваемых компонентах. Скрытие полосы при открытии Dock не вызывает горизонтального скачка. Reduced motion отключает движение и переходы.
|
||||
|
||||
## Архитектура
|
||||
|
||||
1. `concepts/registry.js` — реестр направлений, генератор семантических токенов.
|
||||
2. `tokens/<concept>/{light,dark}.{json,css}` — переносимые значения. Генерируются `npm run check`.
|
||||
3. `components/system.css` — состояния и шесть грамматик компоновки; native HTML в `playground/frame.js` служит исполняемой спецификацией.
|
||||
4. `patterns/UX.md` — контракты поведения; `components/CONTRACT.md` — состояния и доступность.
|
||||
5. `playground/` — оболочка лаборатории и изолированные iframe. У каждого реальное responsive-окно. Две концепции используют общие фикстуры и независимое представление.
|
||||
- concepts/registry.js — только Dock и генератор токенов.
|
||||
- tokens/dock/ — JSON/CSS обеих тем. npm run check проверяет три плотности.
|
||||
- components/system.css — утверждённая компоновка и состояния.
|
||||
- components/account-pages.js, patterns/demo-identity.js — демонстрационный личный кабинет.
|
||||
- playground/ — экраны, темы, компоненты, токены и экспорт без выбора дизайна.
|
||||
|
||||
Production-адаптеры React/Vue/Svelte впоследствии должны сохранять семантические имена токенов и UX-контракт, а не копировать JS демонстрационного приложения. Backend в текущий объём не входит.
|
||||
|
||||
## Шесть концепций
|
||||
|
||||
| Концепция | Композиция и типографика | Подходящие сценарии | Что оценить |
|
||||
|---|---|---|---|
|
||||
| Relay | Постоянная левая навигация, ровный гротеск, двухколоночный обзор, разделители | Основные административные панели, SSO | Достаточен ли характер при высокой привычности |
|
||||
| Ledger | Узкий индекс, антиква в заголовках и показателях, последовательные широкие секции | Лицензии, кабинеты, документация | Уместность редакционного характера в частых операциях |
|
||||
| Signal | Верхняя компактная строка, моноширинный шрифт, плотные таблицы | Сеть, серверы, мониторинг | Читаемость RU, работа с длинными именами |
|
||||
| Axis | Цветовая навигационная полоса, горизонтальные разделы, широкая рабочая область | Многопродуктовая экосистема, публичный портал | Контраст и масштабирование числа разделов |
|
||||
| Dock | Узкая инструментальная панель, мягкая геометрия, изолированные рабочие модули | Персональные кабинеты и инструменты | Компромисс между уютом, узнаваемостью и плотностью |
|
||||
| Grid | Контрастная вертикальная навигация, непрерывная жёсткая сетка, сильные цифры | Инфраструктурный бренд, управление доступами | Визуальный вес рамок при длительной работе |
|
||||
|
||||
## Общие принципы
|
||||
|
||||
Иерархия: задача экрана → основное действие → содержимое → метаданные. Один основной акцент действия в рабочей области. Ошибки и статусы имеют текст, цвет — дополнительный канал.
|
||||
|
||||
Базовая единица 4 px. Управление плотностью меняет высоту контролов, ячеек и секционные промежутки. На мобильных интерактивные цели увеличиваются независимо от компактного режима. Основной текст 16 px, рабочие таблицы и подписи 14 px, вторичные метаданные 12–13 px. Signal использует 14 px как плотную операционную настройку. Шрифты системные, с кириллицей, без внешнего сетевого запроса. Иное семейство можно подключить локально после выбора направления и проверки лицензии.
|
||||
|
||||
Темы строятся семантически, а не инверсией. Текст, статус и акцент проверяются на 4.5:1. Пользовательский акцент нормализуется до читаемого значения, которое видно на экране токенов. Данные сохраняются локально, одинаковы для всех направлений. График — тестовая серия p95, с единицами и числовой альтернативой, не статистическое утверждение о продукте.
|
||||
|
||||
## Перед фиксацией
|
||||
|
||||
Пользователь выбирает концепцию либо конкретную комбинацию её свойств. Затем фиксируем типографику, лицензии локальных шрифтов, уровни токенов, компоненты и примеры новых/существующих проектов; формируем настоящий устанавливаемый Skill. До выбора `SKILL.md` — описание следующего этапа, не глобальная инструкция.
|
||||
|
||||
## Промежуточный Dock / revision 04
|
||||
|
||||
Развитие только галереи: личный кабинет с собственной навигацией, профиль/безопасность/устройства/приложения/оформление, лаборатория состояний Identity, роли и права в редакторе пользователя. Отдельная иконка раскрытия удалена; hover панели и доступная бренд-кнопка сохраняют управление. Промпт SSO используется как продуктовый контекст; его приложение и backend не меняются. Экспорт включает новые представления, демо-адаптер и документы. Палитры обеих тем экспортируются раздельно, явный пользовательский акцент сохраняется как override.
|
||||
SSO Service не изменяется, реальные почта, OAuth и WebAuthn не подключены. Универсальный Skill ещё не упакован; это отдельный следующий этап.
|
||||
@@ -1,60 +1,41 @@
|
||||
# Anidev Design System
|
||||
# Anidev Design System — Dock
|
||||
|
||||
Локальная лаборатория выбора визуального языка Anidev. Шесть различных концепций, общие демонстрационные данные, рабочий HTML/CSS/JS. **Для доработки выбран Dock. Текущая ревизия не финальная.**
|
||||
Утверждённый 30.11.2026 дизайн Anidev. В приложении и экспорте доступен только Dock: светлая/тёмная темы, компактная панель, личный кабинет, административные экраны и компоненты на HTML/CSS/JS.
|
||||
|
||||
## Запуск
|
||||
|
||||
Нужен Node.js 22+. Для просмотра не нужны npm и зависимости:
|
||||
Откройте Start-Gallery.cmd или выполните в этой папке:
|
||||
|
||||
```powershell
|
||||
git clone ssh://git@git.anidev.ru:222/AnidevSoft/anidev-design-system.git
|
||||
cd anidev-design-system
|
||||
node scripts/serve.mjs
|
||||
```
|
||||
|
||||
Открыть [http://127.0.0.1:4173](http://127.0.0.1:4173). Если порт занят: `$env:PORT='4174'; node scripts/serve.mjs`. Альтернатива без Node: `python -m http.server 4173`, затем `/playground/`. Прямой `file://` не поддерживается ES modules.
|
||||
Просмотр: [http://127.0.0.1:4173/playground/](http://127.0.0.1:4173/playground/). Нужен Node.js 22+, зависимости для просмотра не требуются. Альтернатива: `python -m http.server 4173 --bind 127.0.0.1`. Прямой file:// не поддерживает ES modules.
|
||||
|
||||
## Что смотреть
|
||||
## Возможности
|
||||
|
||||
Relay, Ledger, Signal, Axis, Dock, Grid отличаются навигацией, композицией обзора и авторизации, типографикой, границами и плотностью. Подробности — [DESIGN.md](DESIGN.md).
|
||||
Экраны, темы, EN/RU, акцент, плотность и Desktop/Tablet/Mobile. Библиотека компонентов, копирование JSON/CSS-токенов и ZIP-экспорт утверждённого дизайна. Старые настройки с другой концепцией автоматически переходят на Dock.
|
||||
|
||||
В галерее можно менять экран, светлую/тёмную тему, акцент, плотность и размер Desktop/Tablet/Mobile; сравнивать две концепции; переключать EN/RU; просматривать/копировать токены и выгружать ZIP выбранного кандидата. Акцент корректируется для читаемого контраста, итоговые значения видны в Tokens. Export не утверждает концепцию.
|
||||
Строки таблиц, сервисов, событий, сеансов, приложений и настроек имеют заметные hover/focus и состояния выбора. Полоса прокрутки оформлена под тему; место для неё резервируется, поэтому меню и диалоги не сдвигают контент.
|
||||
|
||||
Работают поиск, фильтры, сортировка, пагинация, приглашения с проверкой дублей, редактирование роли/статуса, массовая блокировка с подтверждением, CSV, формы настроек, вкладки, demo login/SSO/reset, меню, modal, drawer, tooltip, toast, контекстное меню и command palette (Ctrl/⌘K).
|
||||
Работают поиск, фильтры, пагинация, редактирование пользователей и доступов, диалоги, меню аккаунта и command palette. Панель раскрывается при наведении; a/ поддерживает клик, клавиатуру и touch.
|
||||
|
||||
Данные в localStorage общие для концепций; «Сбросить демо» на Users восстанавливает пользователей. Это демонстрация поведения, без backend, реальной отправки почты или OAuth. Пароль не сохраняется. Экспорт включает JSON/CSS обеих тем, исходники примера и UX-контракты, пригодные как основа интеграции в любой стек.
|
||||
Личный кабинет и состояния входа — демонстрации на тестовых данных. Сам SSO Service не изменяется; реальная авторизация, письма и Passkey не выполняются. Данные примера хранятся в sessionStorage вкладки; пароли и токены не сохраняются. Сброс — на экране состояний входа.
|
||||
|
||||
## Структура
|
||||
## Правила и проверка
|
||||
|
||||
`concepts/` — шесть направлений и генератор; `tokens/` — JSON/CSS; `components/` — CSS и контракт; `patterns/`, `layouts/` — UX и композиция; `playground/` — галерея; `references/` — исследование и QA; `prompts/` — сравнение; `scripts/` — сервер и проверки; `tests/` — Playwright.
|
||||
|
||||
## Проверка
|
||||
[Дизайн](DESIGN.md) · [Компоненты](components/CONTRACT.md) · [UX](patterns/UX.md) · [Identity](patterns/IDENTITY.md) · [Anti-slop](ANTI-SLOP.md).
|
||||
|
||||
```powershell
|
||||
npm install
|
||||
npm run check
|
||||
# отдельный терминал: node scripts/serve.mjs
|
||||
# При работающем сервере:
|
||||
npm test
|
||||
npm run test:dock
|
||||
npm run test:identity
|
||||
npm run test:approved
|
||||
```
|
||||
|
||||
Suite использует установленный Edge на Windows. Для другого Chromium задайте `PLAYWRIGHT_EXECUTABLE_PATH`; для preview на другом порте — `BASE_URL`. Сырые скриншоты и отчёт: `test-results/` (не коммитятся). Версионируемые обзорные изображения и результат: [references/QA.md](references/QA.md).
|
||||
Suite использует Edge на Windows или PLAYWRIGHT_EXECUTABLE_PATH. Для другого порта задайте BASE_URL. [QA](references/QA.md), [проверки утверждённого Dock](references/approved-dock/README.md).
|
||||
|
||||
## Исследование и следующий этап
|
||||
|
||||
[Источники, актуальность, лицензии и решения](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`.
|
||||
|
||||
Проектный контекст будущей SSO-интеграции получен из чата «Переработать настройки SSO»: [промпт SSO](prompts/SSO.md), [происхождение](prompts/README.md). Это справочный контекст, не подключённый backend.
|
||||
|
||||
## Dock / личный кабинет — revision 04
|
||||
|
||||
Новые демонстрационные экраны: Аккаунт, Безопасность, Устройства и сеансы, Приложения, Оформление, Состояния входа. Прямой просмотр: `/playground/?concept=dock&page=profile`. Отдельная иконка раскрытия убрана: панель открывается по наведению, а `a/` управляет ей с клавиатуры и touch.
|
||||
|
||||
Личный кабинет отделён от администрирования; в редакторе пользователя — роли SSO и права на приложения. Работают тестовые формы, фото, Passkey-примеры, подтверждения по почте без отправки, отзыв сеансов и сценарии недоступности/отказа. Это развитие галереи, настоящий SSO Service не изменён. [Описание контракта](patterns/IDENTITY.md) · [скриншоты и QA](references/identity/README.md).
|
||||
|
||||
Проверки: `npm test`, `npm run test:dock`, `npm run test:identity` при работающем сервере. Финальные токены и устанавливаемый Skill ждут утверждения дизайна.
|
||||
[Исследование и лицензии](references/RESEARCH.md) содержит историю выбора; другие концепции не включены в активные компоненты и токены. [Промпт SSO](prompts/SSO.md) — контекст будущей интеграции. Упаковка универсального Skill отслеживается отдельно в [SKILL.md](SKILL.md).
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
Статус: не сформирован и не установлен. Этот файл намеренно не объявляет готовый Agent Skill.
|
||||
|
||||
После выбора пользователем нужно прочитать актуальный skill-creator и создать `skills/anidev-design-system/SKILL.md` с корректным frontmatter и ссылками на утверждённые принципы, токены, типографику, правила компонентов, UX-паттерны, anti-slop, визуальные примеры и checklist. Триггер: “Use the Anidev Design System for this project.”
|
||||
Dock утверждён 30.11.2026. Следующим этапом нужно прочитать актуальный skill-creator и создать `skills/anidev-design-system/SKILL.md` с корректным frontmatter и ссылками на утверждённые принципы, токены, типографику, правила компонентов, UX-паттерны, anti-slop, визуальные примеры и checklist. Триггер: “Use the Anidev Design System for this project.”
|
||||
|
||||
План подключения: единый Git checkout → ссылка/junction в каталоге skills агента → обновление через `git pull --ff-only`, с зафиксированной версией в подключаемом проекте. Для Codex предусмотреть пользовательский каталог skills и проектный `.agents/skills`; другие агенты подключают тот же Markdown и ссылки на ресурсы. Не копировать все внешние skills в единый контекст. При несовместимой версии остановить миграцию и описать изменения.
|
||||
|
||||
До утверждения не устанавливать глобальный Skill: иначе первое направление в галерее может случайно стать стандартом для новых проектов.
|
||||
Устанавливаемый Skill пока не сформирован. Его подготовка и глобальная установка не являются частью правок прокрутки и hover. Единственный источник визуального языка теперь — утверждённый Dock.
|
||||
@@ -30,3 +30,5 @@ Hover и active — временные указательные состояни
|
||||
Dock revision 02: постоянная панель иконок, переключатель aria-expanded/aria-controls; раскрытая навигация имеет role=dialog/aria-modal, основной контент inert. Tab остаётся в меню, Escape возвращает фокус переключателю, подложка закрывает меню. Меню аккаунта использует native popover с autofocus, light dismiss и Escape; первый Escape закрывает popover, второй — панель.
|
||||
|
||||
Revision 04: отдельной иконки раскрытия Dock нет. Hover всей панели открывает меню; бренд-кнопка `a/` сохраняет aria-expanded/aria-controls, Enter/Space и touch. Личный кабинет и статусы Identity описаны в `patterns/IDENTITY.md`. Фото использует одинаковое object-fit: cover во всех представлениях. Смена состояния аккаунта закрывает открытый приватный диалог и скрывает прежний контент.
|
||||
|
||||
30.11.2026: утверждён только Dock. Строки таблиц, сервисов, событий, сеансов, настроек, приложений и токенов получают color.row-hover при наведении и focus-within; нажатие/выбор используют color.row-active. Курсор pointer не добавляется строке без действия. Текст остаётся читаемым на обоих состояниях. Root scrollbar-gutter: stable сохраняет ширину при блокировке фоновой прокрутки; native scrollbar оформлен через цвета темы, CSS scrollbar-color/width и WebKit fallback.
|
||||
@@ -902,246 +902,6 @@ dialog > p {
|
||||
color: var(--color-muted);
|
||||
margin-top: 28px;
|
||||
}
|
||||
/* Six compositions: semantic tokens are shared, layout grammar is not. */
|
||||
body[data-concept="ledger"] .shell {
|
||||
grid-template-columns: 155px 1fr;
|
||||
}
|
||||
body[data-concept="ledger"] .navigation {
|
||||
background: var(--color-bg);
|
||||
border-right: 0;
|
||||
padding: 30px 20px;
|
||||
}
|
||||
body[data-concept="ledger"] .nav-links {
|
||||
counter-reset: section;
|
||||
}
|
||||
body[data-concept="ledger"] .nav-links button {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: 13px;
|
||||
gap: 8px;
|
||||
}
|
||||
body[data-concept="ledger"] .nav-links button:before {
|
||||
counter-increment: section;
|
||||
content: counter(section, decimal-leading-zero);
|
||||
font:
|
||||
11px Consolas,
|
||||
monospace;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
body[data-concept="ledger"] .nav-icon {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="ledger"] .nav-links button[aria-current="page"] {
|
||||
background: none;
|
||||
}
|
||||
body[data-concept="ledger"] .app-header {
|
||||
margin: 0 28px;
|
||||
padding-inline: 0;
|
||||
border-bottom: 2px solid var(--color-text);
|
||||
}
|
||||
body[data-concept="ledger"] #content {
|
||||
padding: 32px 28px;
|
||||
}
|
||||
body[data-concept="ledger"] h1 {
|
||||
font-size: 38px;
|
||||
font-weight: normal;
|
||||
}
|
||||
body[data-concept="ledger"] h2 {
|
||||
font-size: 23px;
|
||||
font-weight: normal;
|
||||
}
|
||||
body[data-concept="ledger"] .dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
body[data-concept="ledger"] .services {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 22px;
|
||||
}
|
||||
body[data-concept="ledger"] .services .service {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
body[data-concept="ledger"] .service small {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="ledger"] .metric-value {
|
||||
font-size: 42px;
|
||||
}
|
||||
body[data-concept="ledger"] .metric-label {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
font-size: 11px;
|
||||
}
|
||||
body[data-concept="ledger"] .auth-brand {
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
border-right: 2px solid var(--color-text);
|
||||
}
|
||||
body[data-concept="ledger"] .auth-statement {
|
||||
font-size: 54px;
|
||||
}
|
||||
body[data-concept="ledger"] .auth-main {
|
||||
background: var(--color-bg);
|
||||
}
|
||||
body[data-concept="signal"] {
|
||||
font-size: 14px;
|
||||
}
|
||||
body[data-concept="signal"] .shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
body[data-concept="signal"] .navigation {
|
||||
padding: 13px 22px;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 26px;
|
||||
border-right: 0;
|
||||
}
|
||||
body[data-concept="signal"] .wordmark {
|
||||
font:
|
||||
bold 18px Consolas,
|
||||
monospace;
|
||||
}
|
||||
body[data-concept="signal"] .workspace-label,
|
||||
body[data-concept="signal"] .nav-bottom {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="signal"] .nav-links {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
body[data-concept="signal"] .nav-links button {
|
||||
font-size: 12px;
|
||||
min-height: 30px;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
body[data-concept="signal"] .nav-icon {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="signal"] .nav-links button[aria-current="page"]:before {
|
||||
content: ">";
|
||||
}
|
||||
body[data-concept="signal"] .app-header {
|
||||
min-height: 46px;
|
||||
padding-block: 8px;
|
||||
}
|
||||
body[data-concept="signal"] h1 {
|
||||
font-size: 23px;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
body[data-concept="signal"] .overline {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="signal"] .metrics {
|
||||
border: 1px solid var(--color-border);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
body[data-concept="signal"] .metric {
|
||||
padding: 12px 18px;
|
||||
}
|
||||
body[data-concept="signal"] .metric-value {
|
||||
font-size: 29px;
|
||||
}
|
||||
body[data-concept="signal"] .dashboard-grid {
|
||||
grid-template-columns: minmax(240px, 1.6fr) minmax(200px, 1fr);
|
||||
}
|
||||
body[data-concept="signal"] .service,
|
||||
body[data-concept="signal"] td,
|
||||
body[data-concept="signal"] th {
|
||||
padding-block: 8px;
|
||||
}
|
||||
body[data-concept="signal"] .health-line {
|
||||
border-block-style: dashed;
|
||||
}
|
||||
body[data-concept="signal"] .auth-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--color-bg);
|
||||
}
|
||||
body[data-concept="signal"] .auth-brand {
|
||||
background: none;
|
||||
color: var(--color-text);
|
||||
padding: 24px;
|
||||
width: 390px;
|
||||
max-width: 100%;
|
||||
}
|
||||
body[data-concept="signal"] .auth-statement {
|
||||
font:
|
||||
14px Consolas,
|
||||
monospace;
|
||||
margin: 18px 0;
|
||||
}
|
||||
body[data-concept="signal"] .auth-brand small {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="signal"] .auth-main {
|
||||
padding: 24px;
|
||||
border: 1px solid var(--color-border);
|
||||
width: 390px;
|
||||
max-width: calc(100% - 30px);
|
||||
}
|
||||
body[data-concept="axis"] .shell {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="axis"] .navigation {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 18px 32px;
|
||||
background: var(--color-accent);
|
||||
color: var(--color-on-accent);
|
||||
border: 0;
|
||||
}
|
||||
body[data-concept="axis"] .wordmark b {
|
||||
color: inherit;
|
||||
}
|
||||
body[data-concept="axis"] .nav-links {
|
||||
flex-direction: row;
|
||||
gap: 7px;
|
||||
}
|
||||
body[data-concept="axis"] .nav-links button {
|
||||
color: inherit;
|
||||
font-size: 14px;
|
||||
}
|
||||
body[data-concept="axis"] .nav-links button[aria-current="page"] {
|
||||
background: color-mix(in srgb, var(--color-on-accent) 16%, transparent);
|
||||
color: inherit;
|
||||
}
|
||||
body[data-concept="axis"] .workspace-label,
|
||||
body[data-concept="axis"] .nav-bottom,
|
||||
body[data-concept="axis"] .nav-icon {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="axis"] #content {
|
||||
max-width: 1250px;
|
||||
padding: 32px;
|
||||
}
|
||||
body[data-concept="axis"] .app-header {
|
||||
background: var(--color-surface);
|
||||
}
|
||||
body[data-concept="axis"] h1 {
|
||||
font-size: 30px;
|
||||
}
|
||||
body[data-concept="axis"] .metrics {
|
||||
border-bottom: 0;
|
||||
gap: 20px;
|
||||
}
|
||||
body[data-concept="axis"] .metric {
|
||||
border: 0;
|
||||
padding: 18px 22px;
|
||||
background: var(--color-surface);
|
||||
border-top: 3px solid var(--color-accent);
|
||||
}
|
||||
body[data-concept="axis"] .auth-layout {
|
||||
grid-template-columns: 1.2fr 1fr;
|
||||
}
|
||||
body[data-concept="axis"] .auth-brand {
|
||||
justify-content: flex-start;
|
||||
gap: 100px;
|
||||
}
|
||||
body[data-concept="dock"] .shell {
|
||||
grid-template-columns: 68px minmax(0, 1fr);
|
||||
padding: 12px;
|
||||
@@ -1244,105 +1004,6 @@ body[data-concept="dock"] .auth-main {
|
||||
width: 420px;
|
||||
max-width: 100%;
|
||||
}
|
||||
body[data-concept="grid"] .shell {
|
||||
grid-template-columns: 215px minmax(0, 1fr);
|
||||
}
|
||||
body[data-concept="grid"] .navigation {
|
||||
background: var(--color-text);
|
||||
color: var(--color-bg);
|
||||
padding: 26px 0;
|
||||
border: 0;
|
||||
}
|
||||
body[data-concept="grid"] .wordmark {
|
||||
padding: 0 22px;
|
||||
font-size: 28px;
|
||||
}
|
||||
body[data-concept="grid"] .wordmark b {
|
||||
color: inherit;
|
||||
}
|
||||
body[data-concept="grid"] .workspace-label {
|
||||
margin: 16px 22px 0;
|
||||
color: inherit;
|
||||
border-color: currentColor;
|
||||
}
|
||||
body[data-concept="grid"] .nav-links {
|
||||
gap: 0;
|
||||
}
|
||||
body[data-concept="grid"] .nav-links button {
|
||||
padding: 18px 22px;
|
||||
border-top: 1px solid color-mix(in srgb, var(--color-bg) 20%, transparent);
|
||||
color: inherit;
|
||||
}
|
||||
body[data-concept="grid"] .nav-links button[aria-current="page"] {
|
||||
background: var(--color-accent);
|
||||
color: var(--color-on-accent);
|
||||
}
|
||||
body[data-concept="grid"] .nav-bottom {
|
||||
color: inherit;
|
||||
padding: 22px;
|
||||
}
|
||||
body[data-concept="grid"] .app-header {
|
||||
border-bottom: 2px solid var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] #content {
|
||||
padding: 0;
|
||||
}
|
||||
body[data-concept="grid"] .page-heading {
|
||||
padding: 28px;
|
||||
margin: 0;
|
||||
}
|
||||
body[data-concept="grid"] h1 {
|
||||
text-transform: uppercase;
|
||||
font-size: 30px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
body[data-concept="grid"] .health-line {
|
||||
padding: 13px 28px;
|
||||
margin: 0;
|
||||
border-color: var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] .metrics {
|
||||
margin: 0;
|
||||
border-color: var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] .metric {
|
||||
padding: 23px 28px;
|
||||
border-color: var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] .metric-value {
|
||||
font-size: 46px;
|
||||
font-weight: bold;
|
||||
}
|
||||
body[data-concept="grid"] .dashboard-grid {
|
||||
gap: 0;
|
||||
border-bottom: 1px solid var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] .panel {
|
||||
padding: 26px;
|
||||
}
|
||||
body[data-concept="grid"] .panel + .panel {
|
||||
border-left: 1px solid var(--color-text);
|
||||
}
|
||||
body[data-concept="grid"] .activity {
|
||||
margin: 0;
|
||||
padding: 26px;
|
||||
}
|
||||
body[data-concept="grid"] .page-body {
|
||||
padding: 0 28px 28px;
|
||||
}
|
||||
body[data-concept="grid"] .auth-brand {
|
||||
background: var(--color-text);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
body[data-concept="grid"] .auth-statement {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
font-size: 48px;
|
||||
}
|
||||
body[data-concept="grid"] .auth-main {
|
||||
border: 18px solid var(--color-accent);
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.shell {
|
||||
grid-template-columns: 155px minmax(0, 1fr);
|
||||
@@ -1359,16 +1020,6 @@ body[data-concept="grid"] .auth-main {
|
||||
.settings-copy p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
body[data-concept="grid"] .shell {
|
||||
grid-template-columns: 155px minmax(0, 1fr);
|
||||
}
|
||||
body[data-concept="grid"] .panel + .panel {
|
||||
border-left: 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
body[data-concept="signal"] .dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.library {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -1381,31 +1032,20 @@ body[data-concept="grid"] .auth-main {
|
||||
.tokens-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
body[data-concept="axis"] .navigation {
|
||||
gap: 18px;
|
||||
padding: 18px;
|
||||
}
|
||||
.services {
|
||||
min-width: 0;
|
||||
}
|
||||
body[data-concept="ledger"] .services,
|
||||
body[data-concept="dock"] .services {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.shell,
|
||||
body[data-concept="ledger"] .shell,
|
||||
body[data-concept="grid"] .shell,
|
||||
body[data-concept="dock"] .shell {
|
||||
display: block;
|
||||
padding: 0;
|
||||
}
|
||||
.navigation,
|
||||
body[data-concept="ledger"] .navigation,
|
||||
body[data-concept="axis"] .navigation,
|
||||
body[data-concept="signal"] .navigation,
|
||||
body[data-concept="grid"] .navigation,
|
||||
body[data-concept="dock"] .navigation {
|
||||
position: static;
|
||||
width: auto;
|
||||
@@ -1423,9 +1063,7 @@ body[data-concept="grid"] .auth-main {
|
||||
.nav-bottom {
|
||||
display: none;
|
||||
}
|
||||
.nav-links,
|
||||
body[data-concept="signal"] .nav-links,
|
||||
body[data-concept="axis"] .nav-links {
|
||||
.nav-links {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -1433,8 +1071,7 @@ body[data-concept="grid"] .auth-main {
|
||||
display: flex;
|
||||
}
|
||||
.nav-links button,
|
||||
body[data-concept="dock"] .nav-links button,
|
||||
body[data-concept="grid"] .nav-links button {
|
||||
body[data-concept="dock"] .nav-links button {
|
||||
padding: 12px;
|
||||
font-size: 14px;
|
||||
flex-direction: row;
|
||||
@@ -1457,8 +1094,7 @@ body[data-concept="grid"] .auth-main {
|
||||
padding: 5px 9px;
|
||||
min-height: 32px;
|
||||
}
|
||||
.app-header,
|
||||
body[data-concept="ledger"] .app-header {
|
||||
.app-header {
|
||||
padding: 12px 18px;
|
||||
margin: 0;
|
||||
gap: 10px;
|
||||
@@ -1485,8 +1121,6 @@ body[data-concept="grid"] .auth-main {
|
||||
height: 27px;
|
||||
}
|
||||
#content,
|
||||
body[data-concept="ledger"] #content,
|
||||
body[data-concept="axis"] #content,
|
||||
body[data-concept="dock"] #content {
|
||||
padding: 22px 18px;
|
||||
}
|
||||
@@ -1496,10 +1130,7 @@ body[data-concept="grid"] .auth-main {
|
||||
gap: 15px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.page-heading h1,
|
||||
body[data-concept="axis"] h1,
|
||||
body[data-concept="ledger"] h1,
|
||||
body[data-concept="grid"] h1 {
|
||||
.page-heading h1 {
|
||||
font-size: 27px;
|
||||
}
|
||||
.page-heading p {
|
||||
@@ -1530,12 +1161,10 @@ body[data-concept="grid"] .auth-main {
|
||||
.metric-note {
|
||||
grid-column: 1/-1;
|
||||
}
|
||||
body[data-concept="dock"] .metrics,
|
||||
body[data-concept="axis"] .metrics {
|
||||
body[data-concept="dock"] .metrics {
|
||||
gap: 10px;
|
||||
}
|
||||
body[data-concept="dock"] .metric,
|
||||
body[data-concept="axis"] .metric {
|
||||
body[data-concept="dock"] .metric {
|
||||
padding: 15px;
|
||||
}
|
||||
.dashboard-grid {
|
||||
@@ -1557,8 +1186,7 @@ body[data-concept="grid"] .auth-main {
|
||||
.activity-row > span:last-child {
|
||||
grid-column: 2;
|
||||
}
|
||||
.auth-layout,
|
||||
body[data-concept="axis"] .auth-layout {
|
||||
.auth-layout {
|
||||
display: block;
|
||||
}
|
||||
.auth-brand {
|
||||
@@ -1566,9 +1194,7 @@ body[data-concept="grid"] .auth-main {
|
||||
padding: 25px;
|
||||
gap: 25px;
|
||||
}
|
||||
.auth-statement,
|
||||
body[data-concept="ledger"] .auth-statement,
|
||||
body[data-concept="grid"] .auth-statement {
|
||||
.auth-statement {
|
||||
font-size: 28px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
@@ -1604,36 +1230,9 @@ body[data-concept="grid"] .auth-main {
|
||||
.settings-layout {
|
||||
gap: 15px;
|
||||
}
|
||||
body[data-concept="ledger"] .services,
|
||||
body[data-concept="dock"] .services {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="signal"] .metric {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
body[data-concept="signal"] .dashboard-grid {
|
||||
display: block;
|
||||
}
|
||||
body[data-concept="signal"] .panel + .panel {
|
||||
margin-top: 24px;
|
||||
}
|
||||
body[data-concept="grid"] #content {
|
||||
padding: 0;
|
||||
}
|
||||
body[data-concept="grid"] .page-heading,
|
||||
body[data-concept="grid"] .panel,
|
||||
body[data-concept="grid"] .activity {
|
||||
padding: 22px 18px;
|
||||
}
|
||||
body[data-concept="grid"] .metric {
|
||||
padding: 14px 18px;
|
||||
}
|
||||
body[data-concept="grid"] .metric-value {
|
||||
font-size: 34px;
|
||||
}
|
||||
body[data-concept="grid"] .page-body {
|
||||
padding: 0 18px 22px;
|
||||
}
|
||||
.table-wrap {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -1651,9 +1250,6 @@ body[data-concept="grid"] .auth-main {
|
||||
max-width: 45%;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
body[data-concept="axis"] .auth-brand {
|
||||
gap: 20px;
|
||||
}
|
||||
.auth-form h1 {
|
||||
font-size: 25px;
|
||||
}
|
||||
@@ -1734,20 +1330,11 @@ table {
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
body[data-concept] .navigation:not(.open) {
|
||||
display: none;
|
||||
}
|
||||
body[data-concept="grid"] .compact-note {
|
||||
padding: 0 18px 22px;
|
||||
margin: 0;
|
||||
}
|
||||
body[data-concept="signal"] .navigation.open {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
/* Dock revision 02: fixed icon rail, overlay expansion, account menu. */
|
||||
body[data-concept="dock"] .shell {
|
||||
padding: 8px;
|
||||
gap: 8px;
|
||||
@@ -2093,11 +1680,9 @@ body[data-concept="dock"].dock-open .account-more {
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
body[data-concept="dock"] .header-actions > .avatar {
|
||||
display: none;
|
||||
}
|
||||
/* Account workspace: flat sections, shared native controls and compact rows. */
|
||||
.identity-body {
|
||||
max-width: 1100px;
|
||||
}
|
||||
@@ -2685,3 +2270,99 @@ body[data-concept="dock"] .identity-body {
|
||||
min-height: 60px;
|
||||
}
|
||||
}
|
||||
html {
|
||||
scrollbar-gutter: stable;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scroll-thumb) var(--scroll-track);
|
||||
--scroll-track: var(--color-bg);
|
||||
--scroll-thumb: color-mix(
|
||||
in srgb,
|
||||
var(--color-muted) 75%,
|
||||
var(--color-surface)
|
||||
);
|
||||
}
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scroll-thumb) var(--scroll-track);
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--scroll-track);
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--scroll-thumb);
|
||||
border: 2px solid var(--scroll-track);
|
||||
border-radius: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--color-accent);
|
||||
}
|
||||
::-webkit-scrollbar-corner {
|
||||
background: var(--scroll-track);
|
||||
}
|
||||
dialog,
|
||||
.table-wrap,
|
||||
.chart-data-scroll {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
:is(
|
||||
tbody tr,
|
||||
.service,
|
||||
.activity-row,
|
||||
.identity-setting-row,
|
||||
.identity-session,
|
||||
.identity-app,
|
||||
.token-row
|
||||
) {
|
||||
transition: background-color 120ms ease-out;
|
||||
}
|
||||
:is(
|
||||
tbody tr,
|
||||
.service,
|
||||
.activity-row,
|
||||
.identity-setting-row,
|
||||
.identity-session,
|
||||
.identity-app,
|
||||
.token-row
|
||||
):is(:hover, :focus-within) {
|
||||
background-color: var(--color-row-hover);
|
||||
}
|
||||
:is(
|
||||
tbody tr,
|
||||
.service,
|
||||
.activity-row,
|
||||
.identity-setting-row,
|
||||
.identity-session,
|
||||
.identity-app,
|
||||
.token-row
|
||||
):active {
|
||||
background-color: var(--color-row-active);
|
||||
}
|
||||
tbody tr:has(input[data-select]:checked),
|
||||
tbody tr:has(input[data-grant]:checked) {
|
||||
background-color: var(--color-row-active);
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
:is(
|
||||
tbody tr,
|
||||
.service,
|
||||
.activity-row,
|
||||
.identity-setting-row,
|
||||
.identity-session,
|
||||
.identity-app,
|
||||
.token-row
|
||||
) {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
}
|
||||
html:has(body[data-theme="dark"]) {
|
||||
color-scheme: dark;
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
# Кандидатные направления
|
||||
# Утверждённый дизайн
|
||||
|
||||
Имена, назначение, композиция, шрифт и палитры: `registry.js`. Описание различий: `../DESIGN.md`. Одни и те же экраны: `../playground/frame.js`.
|
||||
|
||||
Порядок Relay / Ledger / Signal / Axis / Dock / Grid — порядок просмотра, не рекомендация. Финальная концепция не выбрана.
|
||||
registry.js содержит только Dock, утверждённый 30.11.2026. Старые URL и настройки с другими именами используют Dock. История исследования — в Git и references/RESEARCH.md, без переключателя альтернатив в продукте.
|
||||
@@ -1,64 +1,4 @@
|
||||
export const concepts = [
|
||||
{
|
||||
id: "relay",
|
||||
name: "Relay",
|
||||
tag: "Инженерная ясность",
|
||||
en: "Engineering clarity",
|
||||
desc: "Левая навигация · нейтральная типографика · тонкие разделители",
|
||||
descEn: "Sidebar · neutral typography · fine dividers",
|
||||
accent: "#27634c",
|
||||
bg: "#f6f8f6",
|
||||
ink: "#203f31",
|
||||
line: "#ccd8cf",
|
||||
radius: "5px",
|
||||
font: "Arial, Helvetica, sans-serif",
|
||||
layout: "sidebar",
|
||||
},
|
||||
{
|
||||
id: "ledger",
|
||||
name: "Ledger",
|
||||
tag: "Редакционный порядок",
|
||||
en: "Editorial order",
|
||||
desc: "Индекс разделов · антиква · широкие строки",
|
||||
descEn: "Section index · serif headings · broad rows",
|
||||
accent: "#9b3c25",
|
||||
bg: "#f5f0e7",
|
||||
ink: "#4b3429",
|
||||
line: "#c9bca7",
|
||||
radius: "0px",
|
||||
font: 'Georgia, "Times New Roman", serif',
|
||||
layout: "editorial",
|
||||
},
|
||||
{
|
||||
id: "signal",
|
||||
name: "Signal",
|
||||
tag: "Операционная консоль",
|
||||
en: "Operations console",
|
||||
desc: "Строка команд · моноширинный шрифт · плотный журнал",
|
||||
descEn: "Command bar · monospace · dense log",
|
||||
accent: "#26754b",
|
||||
bg: "#eaf0e9",
|
||||
ink: "#214c31",
|
||||
line: "#b6cbbb",
|
||||
radius: "0px",
|
||||
font: 'Consolas, "Courier New", monospace',
|
||||
layout: "terminal",
|
||||
},
|
||||
{
|
||||
id: "axis",
|
||||
name: "Axis",
|
||||
tag: "Пространство продукта",
|
||||
en: "Product workspace",
|
||||
desc: "Верхняя навигация · крупные секции · цветовая полоса",
|
||||
descEn: "Top navigation · generous sections · color band",
|
||||
accent: "#285e9d",
|
||||
bg: "#f0f4fa",
|
||||
ink: "#173c68",
|
||||
line: "#c8d7ed",
|
||||
radius: "7px",
|
||||
font: '"Segoe UI", Arial, sans-serif',
|
||||
layout: "horizontal",
|
||||
},
|
||||
{
|
||||
id: "dock",
|
||||
name: "Dock",
|
||||
@@ -78,32 +18,12 @@ export const concepts = [
|
||||
font: '"Trebuchet MS", Arial, sans-serif',
|
||||
layout: "rail",
|
||||
},
|
||||
{
|
||||
id: "grid",
|
||||
name: "Grid",
|
||||
tag: "Структурный характер",
|
||||
en: "Structural character",
|
||||
desc: "Контрастная навигация · жёсткая сетка · рубленый ритм",
|
||||
descEn: "Contrast navigation · rigid grid · bold rhythm",
|
||||
accent: "#a53b21",
|
||||
bg: "#f6f5f1",
|
||||
ink: "#292a25",
|
||||
line: "#bfbfb1",
|
||||
radius: "0px",
|
||||
font: "Arial, Helvetica, sans-serif",
|
||||
layout: "grid",
|
||||
},
|
||||
];
|
||||
export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
const c = concepts.find((c) => c.id === id) || concepts[0];
|
||||
const dark = theme === "dark";
|
||||
const palettes = {
|
||||
relay: ["#151c19", "#1b2520", "#e4ece7", "#aabcb1", "#3c4e42"],
|
||||
ledger: ["#211e1a", "#2b2721", "#efe5d6", "#c1b6a6", "#584e41"],
|
||||
signal: ["#101a13", "#16231a", "#d4e8d9", "#a4bfa9", "#36533e"],
|
||||
axis: ["#141c28", "#1b2738", "#e6edf8", "#a6bad6", "#3b4f6c"],
|
||||
dock: ["#111f26", "#192c34", "#e3f2f3", "#a5bec5", "#3b535c"],
|
||||
grid: ["#191a18", "#252622", "#f1f1e7", "#b8bcaf", "#53574a"],
|
||||
};
|
||||
const p = palettes[c.id];
|
||||
let selected = accent || (dark ? c.darkAccent || c.accent : c.accent);
|
||||
@@ -118,7 +38,13 @@ 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, c.surface || "#ffffff"];
|
||||
const rowHover = dark ? "#27434b" : "#dcebed";
|
||||
const rowActive = dark ? "#2b4a53" : "#cde3e5";
|
||||
const backgrounds = [
|
||||
...(dark ? [p[0], p[1]] : [c.bg, c.surface || "#ffffff"]),
|
||||
rowHover,
|
||||
rowActive,
|
||||
];
|
||||
for (
|
||||
let i = 0;
|
||||
i < 100 && backgrounds.some((bg) => contrast(selected, bg) < 4.5);
|
||||
@@ -153,22 +79,14 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
||||
"color.on-accent": on,
|
||||
"color.danger": dark ? "#ffafa5" : "#a22923",
|
||||
"color.success": dark ? "#a2d3ab" : "#26623b",
|
||||
"color.row-hover": rowHover,
|
||||
"color.row-active": rowActive,
|
||||
"radius.control": c.radius,
|
||||
"font.body": c.id === "ledger" ? "Arial, Helvetica, sans-serif" : c.font,
|
||||
"font.body": c.font,
|
||||
"font.heading": c.font,
|
||||
"space.unit": "4px",
|
||||
"space.section":
|
||||
c.id === "dock"
|
||||
? density === "compact"
|
||||
? "14px"
|
||||
: density === "relaxed"
|
||||
? "28px"
|
||||
: "20px"
|
||||
: density === "compact"
|
||||
? "18px"
|
||||
: density === "relaxed"
|
||||
? "36px"
|
||||
: "26px",
|
||||
density === "compact" ? "14px" : density === "relaxed" ? "28px" : "20px",
|
||||
"size.control":
|
||||
density === "compact" ? "34px" : density === "relaxed" ? "46px" : "40px",
|
||||
"space.cell":
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
# Компоновки
|
||||
# Компоновка Dock
|
||||
|
||||
Грамматики находятся в `components/system.css`, селекторы `body[data-concept=…]`. Основной shell: navigation + main-column (header + content). Каждая концепция меняет структуру через Grid/Flex, сохраняя DOM-порядок чтения. Авторизация имеет отдельную композицию для каждого направления.
|
||||
Native shell: панель + основная колонка (header + content). Панель фиксирована, 68px на desktop и 60px на mobile; раскрывается до 252px поверх контента. Рабочая область сохраняет положение и ширину. Сверху — a/, отдельной иконки раскрытия нет. Личный и административный контексты используют собственные разделы.
|
||||
|
||||
- Relay: 190px sidebar, двухколоночный обзор.
|
||||
- Ledger: 155px индекс, широкая последовательность, крупная антиква.
|
||||
- Signal: командная полоса, компактный header и строки.
|
||||
- Axis: горизонтальная навигация и широкая рабочая область.
|
||||
- Dock: 110px rail, модули с мягкой геометрией.
|
||||
- Grid: 215px контрастный sidebar, непрерывная сетка разделов.
|
||||
1100px: dashboard в одну колонку. 900px: упрощаются профиль и сеансы. 600px: формы и метрики одноколоночные, таблицы в локальном горизонтальном scroll-контейнере. Превью использует реальный viewport iframe, включая 768px и 390px.
|
||||
|
||||
900px: сворачивается двухколоночный контент; 600px: навигация по кнопке меню, метрики в строки, формы в одну колонку. Таблицы сохраняют семантику в локальном скролл-контейнере. Mobile в лаборатории имеет фактический iframe viewport 390px; Tablet — максимум 768px; Desktop занимает доступную ширину. При сравнении окно сужается до ширины половины stage — это показано в панели размеров.
|
||||
Root scrollbar-gutter: stable резервирует место при коротком/длинном содержимом и блокировке фоновой прокрутки. Цвета native-трека и ползунка берутся из темы. Не заменять их самодельным div, теряющим native поведение.
|
||||
@@ -9,7 +9,8 @@
|
||||
"test": "node tests/browser.mjs",
|
||||
"check": "node scripts/check.mjs",
|
||||
"test:dock": "node tests/dock.mjs",
|
||||
"test:identity": "node tests/identity.mjs && node tests/totp-layout.mjs"
|
||||
"test:identity": "node tests/identity.mjs && node tests/totp-layout.mjs",
|
||||
"test:approved": "node tests/approved-dock.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"playwright": "^1.58.0"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Диалоги.** Инициирующая кнопка → осмысленный заголовок → форма → cancel/submit. Esc закрывает; фокус возвращается к инициатору. Опасное действие не выполняется открытием окна.
|
||||
|
||||
**Сравнение.** Выбрать A и B → одинаковый экран, тему, плотность и размер → оценить композицию → проверить компоненты и обе темы. Акцент каждого направления независим. Экспорт кандидата не фиксирует окончательный выбор.
|
||||
**Просмотр системы.** Dock — единственный утверждённый дизайн. Экран, тема, размер, акцент и плотность меняются в панели просмотра; выбора других концепций нет.
|
||||
|
||||
**Новый проект.** После утверждения: подключить выбранные токены и CSS, выбрать layout, переносить semantic HTML и поведение в свой стек. Проверить keyboard/mobile/EN/RU и состояния ошибок до интеграции backend.
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ button:disabled {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.version,
|
||||
.eyebrow {
|
||||
font:
|
||||
12px Consolas,
|
||||
@@ -133,117 +132,6 @@ h1 span {
|
||||
color: #aeb2b5;
|
||||
margin: 0 0 3px;
|
||||
}
|
||||
.concepts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 9px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.concept {
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
border-color: #393c3e;
|
||||
overflow: hidden;
|
||||
background: #1b1d1f;
|
||||
min-width: 0;
|
||||
}
|
||||
.concept[aria-pressed="true"] {
|
||||
border-color: #dcf8ad;
|
||||
box-shadow: 0 0 0 1px #dcf8ad;
|
||||
}
|
||||
.swatch {
|
||||
height: 72px;
|
||||
display: flex;
|
||||
padding: 12px;
|
||||
gap: 6px;
|
||||
background: var(--swatch-bg);
|
||||
position: relative;
|
||||
}
|
||||
.swatch:before {
|
||||
content: "";
|
||||
width: 20%;
|
||||
background: var(--swatch-ink);
|
||||
opacity: 0.18;
|
||||
}
|
||||
.swatch:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 34%;
|
||||
height: 5px;
|
||||
top: 19px;
|
||||
left: 35%;
|
||||
background: var(--swatch-ink);
|
||||
box-shadow:
|
||||
0 12px 0 var(--swatch-line),
|
||||
0 24px 0 var(--swatch-line);
|
||||
}
|
||||
.concept:nth-child(2) .swatch:before {
|
||||
width: 0;
|
||||
}
|
||||
.concept:nth-child(2) .swatch:after {
|
||||
height: 11px;
|
||||
width: 55%;
|
||||
left: 13%;
|
||||
top: 16px;
|
||||
box-shadow: 0 24px 0 var(--swatch-line);
|
||||
}
|
||||
.concept:nth-child(3) .swatch:after {
|
||||
height: 2px;
|
||||
box-shadow:
|
||||
0 8px 0 var(--swatch-ink),
|
||||
0 16px 0 var(--swatch-line),
|
||||
0 24px 0 var(--swatch-line);
|
||||
}
|
||||
.concept:nth-child(4) .swatch:before {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
}
|
||||
.concept:nth-child(4) .swatch:after {
|
||||
top: 35px;
|
||||
left: 15%;
|
||||
width: 30%;
|
||||
}
|
||||
.concept:nth-child(5) .swatch:before {
|
||||
width: 10%;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.concept:nth-child(5) .swatch:after {
|
||||
height: 26px;
|
||||
width: 28%;
|
||||
top: 27px;
|
||||
left: 30%;
|
||||
box-shadow: 40px 0 0 var(--swatch-line);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.concept:nth-child(6) .swatch:before {
|
||||
width: 33%;
|
||||
opacity: 1;
|
||||
}
|
||||
.concept:nth-child(6) .swatch:after {
|
||||
height: 20px;
|
||||
left: 48%;
|
||||
top: 25px;
|
||||
box-shadow: 0 0 0 1px var(--swatch-ink);
|
||||
}
|
||||
.concept-info {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 5px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.concept-info small {
|
||||
color: #a6aaad;
|
||||
font:
|
||||
12px Consolas,
|
||||
monospace;
|
||||
}
|
||||
.concept-caption {
|
||||
display: block;
|
||||
padding: 0 12px 13px;
|
||||
color: #a6aaad;
|
||||
font-size: 12px;
|
||||
}
|
||||
.lab {
|
||||
border: 1px solid #414447;
|
||||
border-radius: 7px;
|
||||
@@ -357,16 +245,6 @@ iframe {
|
||||
height: 900px;
|
||||
background: white;
|
||||
}
|
||||
.frame-heading {
|
||||
font:
|
||||
13px Consolas,
|
||||
monospace;
|
||||
margin: 0 0 10px;
|
||||
color: #d4d9dc;
|
||||
}
|
||||
.frame-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.workspace[data-device="tablet"] .frame-viewport {
|
||||
max-width: 768px;
|
||||
}
|
||||
@@ -376,9 +254,6 @@ iframe {
|
||||
.workspace[data-device="mobile"] iframe {
|
||||
height: 844px;
|
||||
}
|
||||
.workspace.comparing .preview-pane {
|
||||
min-width: 340px;
|
||||
}
|
||||
.stage-note {
|
||||
font-size: 12px;
|
||||
color: #afb4b7;
|
||||
@@ -422,12 +297,6 @@ footer > span:first-child {
|
||||
top: 5px;
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.concepts {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
.version {
|
||||
display: none;
|
||||
}
|
||||
.intro-copy {
|
||||
max-width: 250px;
|
||||
}
|
||||
@@ -463,18 +332,6 @@ footer > span:first-child {
|
||||
font-size: 13px;
|
||||
max-width: none;
|
||||
}
|
||||
.concepts {
|
||||
gap: 7px;
|
||||
}
|
||||
.concept-info {
|
||||
font-size: 14px;
|
||||
}
|
||||
.concept-caption {
|
||||
font-size: 11px;
|
||||
}
|
||||
.swatch {
|
||||
height: 62px;
|
||||
}
|
||||
.toolbar {
|
||||
padding: 12px;
|
||||
}
|
||||
@@ -499,17 +356,45 @@ footer > span:first-child {
|
||||
footer {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.workspace.comparing {
|
||||
flex-direction: column;
|
||||
}
|
||||
.workspace.comparing .preview-pane {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.stage-note {
|
||||
line-height: 1.5;
|
||||
}
|
||||
.concept-caption {
|
||||
min-height: 42px;
|
||||
}
|
||||
}
|
||||
:root {
|
||||
--scroll-track: #202426;
|
||||
--scroll-thumb: #7a898e;
|
||||
scrollbar-gutter: stable;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scroll-thumb) var(--scroll-track);
|
||||
}
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scroll-thumb) var(--scroll-track);
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--scroll-track);
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--scroll-thumb);
|
||||
border: 2px solid var(--scroll-track);
|
||||
border-radius: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #b4c6c3;
|
||||
}
|
||||
::-webkit-scrollbar-corner {
|
||||
background: var(--scroll-track);
|
||||
}
|
||||
.workspace {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
.intro {
|
||||
padding: 28px 0 24px;
|
||||
}
|
||||
.intro-copy {
|
||||
max-width: 42ch;
|
||||
}
|
||||
@@ -1,85 +1,67 @@
|
||||
import { concepts, tokensFor, cssVars } from "../concepts/registry.js";
|
||||
const $ = (s) => document.querySelector(s);
|
||||
const design = concepts[0];
|
||||
const defaults = {
|
||||
concept: "dock",
|
||||
second: "ledger",
|
||||
page: "dashboard",
|
||||
theme: "light",
|
||||
density: "compact",
|
||||
size: "desktop",
|
||||
locale: "ru",
|
||||
compare: false,
|
||||
accents: {},
|
||||
};
|
||||
let state = { ...defaults };
|
||||
let saved = {};
|
||||
try {
|
||||
state = {
|
||||
...defaults,
|
||||
...JSON.parse(localStorage.getItem("anidev.lab") || "{}"),
|
||||
};
|
||||
saved = JSON.parse(localStorage.getItem("anidev.lab") || "{}") || {};
|
||||
} catch {}
|
||||
const state = {
|
||||
...defaults,
|
||||
...Object.fromEntries(
|
||||
["page", "theme", "density", "size", "locale"].map((k) => [
|
||||
k,
|
||||
saved[k] || defaults[k],
|
||||
]),
|
||||
),
|
||||
accents: {},
|
||||
};
|
||||
if (/^#[0-9a-f]{6}$/i.test(saved.accents?.dock || ""))
|
||||
state.accents.dock = saved.accents.dock;
|
||||
const requested = new URLSearchParams(location.search);
|
||||
const pages = [...$("#page").options].map((o) => o.value);
|
||||
if (pages.includes(requested.get("page"))) state.page = requested.get("page");
|
||||
if (!pages.includes(state.page)) state.page = "dashboard";
|
||||
if (["light", "dark"].includes(requested.get("theme")))
|
||||
state.theme = requested.get("theme");
|
||||
if (!["light", "dark"].includes(state.theme)) state.theme = "light";
|
||||
if (!["compact", "normal", "relaxed"].includes(state.density))
|
||||
state.density = "compact";
|
||||
if (!["desktop", "tablet", "mobile"].includes(state.size))
|
||||
state.size = "desktop";
|
||||
if (!["ru", "en"].includes(state.locale)) state.locale = "ru";
|
||||
const strings = {
|
||||
page: ["Экран", "Page"],
|
||||
theme: ["Тема", "Theme"],
|
||||
accent: ["Акцент", "Accent"],
|
||||
density: ["Плотность", "Density"],
|
||||
viewport: ["Размер", "Viewport"],
|
||||
compare: ["Сравнить", "Compare"],
|
||||
second: ["Вторая концепция", "Second concept"],
|
||||
note: [
|
||||
"Демонстрационные данные · Изменения сохраняются только в этом браузере · Ctrl/⌘ K — команды",
|
||||
"Demo data · Changes are stored in this browser only · Ctrl/⌘ K — commands",
|
||||
],
|
||||
research: ["Исследование и решения", "Research & decisions"],
|
||||
status: [
|
||||
"Концепции на рассмотрении — финальная не выбрана",
|
||||
"Explorations in review — no final concept selected",
|
||||
],
|
||||
status: ["Dock · утверждённый дизайн", "Dock · approved design"],
|
||||
};
|
||||
const requested = new URLSearchParams(location.search);
|
||||
if (requested.get("concept") === "dock") {
|
||||
state.concept = "dock";
|
||||
state.compare = false;
|
||||
state.density = "compact";
|
||||
delete state.accents.dock;
|
||||
}
|
||||
if (
|
||||
[...document.querySelector("#page").options].some(
|
||||
(o) => o.value === requested.get("page"),
|
||||
)
|
||||
)
|
||||
state.page = requested.get("page");
|
||||
function render() {
|
||||
const en = state.locale === "en";
|
||||
document.documentElement.lang = state.locale;
|
||||
$("#concepts").innerHTML = concepts
|
||||
.map(
|
||||
(c, i) =>
|
||||
`<button class="concept" data-concept="${c.id}" aria-pressed="${c.id === state.concept}"><span class="swatch" style="--swatch-bg:${c.bg};--swatch-ink:${c.ink};--swatch-line:${c.line}"></span><span class="concept-info"><b>${c.name}</b><small>0${i + 1}</small></span><span class="concept-caption">${en ? c.en : c.tag}</span></button>`,
|
||||
)
|
||||
.join("");
|
||||
$("#second").innerHTML = concepts
|
||||
.map(
|
||||
(c) =>
|
||||
`<option value="${c.id}" ${c.id === state.second ? "selected" : ""}>${c.name}</option>`,
|
||||
)
|
||||
.join("");
|
||||
for (const key of ["page", "theme", "density"])
|
||||
$("#" + key).value = state[key];
|
||||
$("#compare").checked = state.compare;
|
||||
$("#compare-label").hidden = !state.compare;
|
||||
$("#pane-b").hidden = !state.compare;
|
||||
$("#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] ||
|
||||
(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 : "";
|
||||
$("#heading-b").textContent =
|
||||
"B / " + concepts.find((c) => c.id === state.second).name;
|
||||
state.accents.dock ||
|
||||
(state.theme === "dark" ? design.darkAccent : design.accent);
|
||||
$("#current-name").textContent = design.name;
|
||||
$("#current-desc").textContent = en ? design.descEn : design.desc;
|
||||
$("#dimensions").textContent = {
|
||||
desktop: en ? "Desktop / fluid" : "Desktop / по ширине",
|
||||
tablet: "768 × 900",
|
||||
@@ -95,12 +77,10 @@ function render() {
|
||||
.forEach((e) => (e.textContent = strings[e.dataset.i][en ? 1 : 0]));
|
||||
$("#locale").textContent = en ? "RU" : "EN";
|
||||
$("#export").textContent = en ? "Export system" : "Экспорт системы";
|
||||
$("h1").innerHTML = en
|
||||
? "One product.<br><span>Six perspectives.</span>"
|
||||
: "Один продукт.<br><span>Шесть точек зрения.</span>";
|
||||
$(".intro-copy").innerHTML = en
|
||||
? "Working interfaces for infrastructure.<br>Explore the character. Inspect the details.<br>You choose the final direction."
|
||||
: "Рабочие интерфейсы для инфраструктуры.<br>Исследуйте характер, проверьте детали.<br>Финальное направление выбираете вы.";
|
||||
$("h1").textContent = "Dock";
|
||||
$(".intro-copy").textContent = en
|
||||
? "The Anidev interface system. Components, states and working patterns."
|
||||
: "Система интерфейсов Anidev. Компоненты, состояния и рабочие сценарии.";
|
||||
const labels = en
|
||||
? [
|
||||
"Dashboard",
|
||||
@@ -142,43 +122,27 @@ function render() {
|
||||
: ["Обычная", "Компактная", "Свободная"]
|
||||
)[i]),
|
||||
);
|
||||
for (const side of ["a", "b"]) {
|
||||
if (side === "b" && !state.compare) continue;
|
||||
const concept = side === "a" ? state.concept : state.second;
|
||||
const params = new URLSearchParams({
|
||||
concept,
|
||||
page: state.page,
|
||||
theme: state.theme,
|
||||
density: state.density,
|
||||
locale: state.locale,
|
||||
});
|
||||
if (state.accents[concept]) params.set("accent", state.accents[concept]);
|
||||
const src = "frame.html?" + params;
|
||||
if ($("#preview-" + side).getAttribute("src") !== src)
|
||||
$("#preview-" + side).src = src;
|
||||
}
|
||||
const params = new URLSearchParams({
|
||||
concept: "dock",
|
||||
page: state.page,
|
||||
theme: state.theme,
|
||||
density: state.density,
|
||||
locale: state.locale,
|
||||
});
|
||||
if (state.accents.dock) params.set("accent", state.accents.dock);
|
||||
const src = "frame.html?" + params;
|
||||
if ($("#preview-a").getAttribute("src") !== src) $("#preview-a").src = src;
|
||||
try {
|
||||
localStorage.setItem("anidev.lab", JSON.stringify(state));
|
||||
} catch {}
|
||||
}
|
||||
$("#concepts").addEventListener("click", (e) => {
|
||||
const b = e.target.closest("[data-concept]");
|
||||
if (b) {
|
||||
state.concept = b.dataset.concept;
|
||||
render();
|
||||
}
|
||||
});
|
||||
for (const key of ["page", "theme", "density", "second"])
|
||||
for (const key of ["page", "theme", "density"])
|
||||
$("#" + key).addEventListener("change", (e) => {
|
||||
state[key] = e.target.value;
|
||||
render();
|
||||
});
|
||||
$("#accent").addEventListener("change", (e) => {
|
||||
state.accents[state.concept] = e.target.value;
|
||||
render();
|
||||
});
|
||||
$("#compare").addEventListener("change", (e) => {
|
||||
state.compare = e.target.checked;
|
||||
state.accents.dock = e.target.value;
|
||||
render();
|
||||
});
|
||||
document.querySelectorAll("[data-size]").forEach(
|
||||
@@ -192,6 +156,7 @@ $("#locale").onclick = () => {
|
||||
state.locale = state.locale === "ru" ? "en" : "ru";
|
||||
render();
|
||||
};
|
||||
|
||||
function notice(text) {
|
||||
$("#notice").textContent = text;
|
||||
$("#notice").style.display = "block";
|
||||
@@ -317,7 +282,7 @@ $("#export").onclick = async () => {
|
||||
files["selection.json"] = JSON.stringify(
|
||||
{
|
||||
version: "0.1.0",
|
||||
status: "candidate-export",
|
||||
status: "approved-design",
|
||||
concept: c.id,
|
||||
page: state.page,
|
||||
accent,
|
||||
@@ -340,7 +305,7 @@ $("#export").onclick = async () => {
|
||||
files["index.html"] =
|
||||
`<!doctype html><meta charset="utf-8"><title>Anidev ${c.name}</title><script>location.replace('playground/frame.html?${exportParams}')<\/script>`;
|
||||
files["README.md"] =
|
||||
`# Anidev / ${c.name}\nCandidate export, not final approval.\nServe this folder over HTTP (for example python -m http.server 8080).\nOpen index.html.\nUse tokens/light.css or tokens/dark.css and components/system.css in any framework.\nSemantic token JSON is the source of values.\nNo upstream implementation is bundled. Final Skill follows user concept selection.\n`;
|
||||
`# Anidev / ${c.name}\nApproved Dock design.\nServe this folder over HTTP (for example python -m http.server 8080).\nOpen index.html.\nUse tokens/light.css or tokens/dark.css and components/system.css in any framework.\nSemantic token JSON is the source of values.\nNo upstream implementation is bundled. Reusable Skill packaging is tracked separately.\n`;
|
||||
const url = URL.createObjectURL(zip(files)),
|
||||
a = document.createElement("a");
|
||||
a.href = url;
|
||||
@@ -349,8 +314,8 @@ $("#export").onclick = async () => {
|
||||
setTimeout(() => URL.revokeObjectURL(url), 30000);
|
||||
notice(
|
||||
state.locale === "ru"
|
||||
? "Экспортирована кандидатная система: " + c.name
|
||||
: "Candidate system exported: " + c.name,
|
||||
? "Экспортирована дизайн-система: " + c.name
|
||||
: "Design system exported: " + c.name,
|
||||
);
|
||||
} catch (e) {
|
||||
notice("Export error: " + e.message);
|
||||
@@ -363,10 +328,7 @@ render();
|
||||
addEventListener("message", (event) => {
|
||||
if (
|
||||
event.origin === location.origin &&
|
||||
[
|
||||
document.querySelector("#preview-a").contentWindow,
|
||||
document.querySelector("#preview-b").contentWindow,
|
||||
].includes(event.source) &&
|
||||
event.source === $("#preview-a").contentWindow &&
|
||||
event.data?.type === "anidev-theme" &&
|
||||
["light", "dark"].includes(event.data.theme)
|
||||
) {
|
||||
|
||||
@@ -3,18 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Anidev — Design laboratory</title>
|
||||
<title>Anidev — Design System</title>
|
||||
<link rel="stylesheet" href="gallery.css" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip" href="#workspace">К предпросмотру</a>
|
||||
<header class="mast">
|
||||
<a class="brand" href="./"
|
||||
><span class="mark">a/</span> anidev <span>design laboratory</span></a
|
||||
><span class="mark">a/</span> anidev <span>design system</span></a
|
||||
>
|
||||
<div class="mast-end">
|
||||
<span class="version">EXPLORATIONS / 0.1</span
|
||||
><button id="locale">EN</button
|
||||
<button id="locale">EN</button
|
||||
><button id="export" class="export">Экспорт системы</button>
|
||||
</div>
|
||||
</header>
|
||||
@@ -22,15 +21,13 @@
|
||||
<section class="intro">
|
||||
<div>
|
||||
<p class="eyebrow">ANIDEV DESIGN SYSTEM</p>
|
||||
<h1>Один продукт.<br /><span>Шесть точек зрения.</span></h1>
|
||||
<h1>Dock</h1>
|
||||
</div>
|
||||
<p class="intro-copy">
|
||||
Рабочие интерфейсы для инфраструктуры.<br />Исследуйте характер,
|
||||
проверьте детали.<br />Финальное направление выбираете вы.
|
||||
Система интерфейсов Anidev. Компоненты, состояния и рабочие сценарии.
|
||||
</p>
|
||||
</section>
|
||||
<section aria-label="Концепции" class="concepts" id="concepts"></section>
|
||||
<section class="lab" aria-label="Лаборатория">
|
||||
<section class="lab" aria-label="Дизайн-система Dock">
|
||||
<div class="toolbar">
|
||||
<label
|
||||
><span data-i="page">Экран</span
|
||||
@@ -74,18 +71,10 @@
|
||||
><button data-size="tablet" aria-pressed="false">Tablet</button
|
||||
><button data-size="mobile" aria-pressed="false">Mobile</button>
|
||||
</fieldset>
|
||||
<label class="compare"
|
||||
><input type="checkbox" id="compare" /><span data-i="compare"
|
||||
>Сравнить</span
|
||||
></label
|
||||
><label id="compare-label" hidden
|
||||
><span data-i="second">Вторая концепция</span
|
||||
><select id="second"></select
|
||||
></label>
|
||||
</div>
|
||||
<div class="stage-meta">
|
||||
<div>
|
||||
<span id="current-name">Relay</span><span id="current-desc"></span>
|
||||
<span id="current-name">Dock</span><span id="current-desc"></span>
|
||||
</div>
|
||||
<span id="dimensions">1440 × 900</span>
|
||||
</div>
|
||||
@@ -95,18 +84,8 @@
|
||||
<div class="frame-viewport">
|
||||
<iframe
|
||||
id="preview-a"
|
||||
title="Концепция A"
|
||||
src="frame.html?concept=relay"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="preview-pane" id="pane-b" hidden>
|
||||
<div class="frame-heading" id="heading-b"></div>
|
||||
<div class="frame-viewport">
|
||||
<iframe
|
||||
id="preview-b"
|
||||
title="Концепция B"
|
||||
src="about:blank"
|
||||
title="Anidev Dock"
|
||||
src="frame.html?concept=dock"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
@@ -120,9 +99,7 @@
|
||||
<span>ANIDEV / SYSTEMS WITH CHARACTER</span
|
||||
><a href="../references/RESEARCH.md" data-i="research"
|
||||
>Исследование и решения</a
|
||||
><span data-i="status"
|
||||
>Концепции на рассмотрении — финальная не выбрана</span
|
||||
>
|
||||
><span data-i="status">Dock · утверждённый дизайн</span>
|
||||
</footer>
|
||||
</main>
|
||||
<div id="notice" role="status"></div>
|
||||
|
||||
@@ -54,3 +54,9 @@
|
||||
10 проверок Dock адаптированы к корректному потоку смены аккаунта через форму входа и отсутствию отдельной иконки. Это Edge/Playwright и визуальная проверка скриншотов; не полный WCAG-аудит и не проверка настоящего SSO. Актуальные снимки новых экранов: `identity/`.
|
||||
|
||||
Дополнительно: в обеих темах на desktop/mobile проверено, что неверный TOTP не меняет геометрию диалога (4/4, `tests/totp-layout.mjs`). Распакованный ZIP содержит 22 файла, CRC проверен, профиль работает отдельно от галереи, а акценты обеих тем совпадают с их default-токенами.
|
||||
|
||||
## Утверждённый Dock / 30.11.2026
|
||||
|
||||
В активной системе остался один дизайн, EXPLORATIONS и сравнение удалены. Матрица общих проверок теперь охватывает только Dock: 50/50 (вместо шести исследовательских вариантов), Dock 10/10, Identity 94/94, геометрия TOTP 4/4. Дополнительные 24/24 проверки подтверждают миграцию старых настроек, видимую hover/focus-подсветку в обеих темах, отсутствие горизонтального сдвига при меню/диалоге, длинной/короткой странице и mobile.
|
||||
|
||||
Контраст текста проверяется также на row-hover и row-active. Native scrollbar оформлен цветами темы; stable gutter фиксирует геометрию. Старые скриншоты исследования выше являются историей выбора. Актуальные материалы: [approved-dock](approved-dock/README.md). Экспорт — только Dock, статус approved-design, CRC всех 22 файлов проверен.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Утверждённый Dock — 30.11.2026
|
||||
|
||||
Единственный активный дизайн — Dock. В галерее нет EXPLORATIONS, карточек других концепций и сравнения. Старые сохранённые настройки принудительно переходят на Dock. Исследовательские материалы в других папках references являются историей, не актуальными вариантами продукта.
|
||||
|
||||
Строки таблиц, сервисов, событий, настроек, сеансов, приложений и токенов имеют общие row-hover / row-active токены. Подсветка работает при наведении и клавиатурном фокусе. Выбранные чекбоксами строки сохраняют отдельное состояние. Контраст текста проверяется на всех этих поверхностях.
|
||||
|
||||
Используются оформленные native scrollbars. Стабильный gutter сохраняет ширину основной колонки при открытии/закрытии Dock и диалогов, а также при переключении короткого/длинного контента. Это проверено измерением bounding boxes в браузере, а не только чтением CSS.
|
||||
|
||||
`qa.json`: 24 целевые проверки. `rows-light-desktop.png` и `rows-dark-desktop.png` показывают подсветку, `gallery-mobile.png` — обновлённую галерею на 390px. Другие обязательные browser suite также прошли: core 50, Dock 10, Identity 94 и TOTP geometry 4. Проверялся Edge; полный аудит WCAG не заявляется.
|
||||
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"passed": 24,
|
||||
"failed": 0,
|
||||
"errors": [],
|
||||
"checks": "Dock-only migration; hover/focus rows; stable geometry across nav and dialog open/close and long/short pages; themed native scrollbars; mobile"
|
||||
}
|
||||
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2026-11-28T00:56:52.649Z",
|
||||
"date": "2026-11-30T16:40:51.065Z",
|
||||
"passed": 94,
|
||||
"failed": 0,
|
||||
"failures": [],
|
||||
|
||||
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 72 KiB |
@@ -1,16 +1,15 @@
|
||||
{
|
||||
"clientDate": "2026-11-28",
|
||||
"clientDate": "2026-11-30",
|
||||
"browser": "158.0.4370.45",
|
||||
"corePassed": 230,
|
||||
"design": "dock",
|
||||
"status": "approved",
|
||||
"corePassed": 50,
|
||||
"identityPassed": 94,
|
||||
"dockPassed": 10,
|
||||
"totpGeometryPassed": 4,
|
||||
"approvedDesignPassed": 24,
|
||||
"failed": 0,
|
||||
"errors": [],
|
||||
"standaloneExport": "passed",
|
||||
"exportFiles": 22,
|
||||
"zipCRC": "passed",
|
||||
"themeExportAccents": "passed",
|
||||
"tokenConfigurations": 36,
|
||||
"status": "intermediate Dock revision 04, gallery only"
|
||||
"tokenConfigurations": 6,
|
||||
"export": "Dock only; approved-design; 22 files; CRC verified"
|
||||
}
|
||||
@@ -1,8 +1,11 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile, mkdir, writeFile } from "node:fs/promises";
|
||||
import { concepts, tokensFor, cssVars } from "../concepts/registry.js";
|
||||
assert.equal(concepts.length, 6);
|
||||
assert.equal(new Set(concepts.map((c) => c.layout)).size, 6);
|
||||
assert.deepEqual(
|
||||
concepts.map((c) => c.id),
|
||||
["dock"],
|
||||
);
|
||||
assert.equal(concepts[0].layout, "rail");
|
||||
const luminance = (hex) =>
|
||||
hex
|
||||
.match(/\w\w/g)
|
||||
@@ -18,7 +21,12 @@ for (const c of concepts)
|
||||
for (const theme of ["light", "dark"])
|
||||
for (const density of ["compact", "normal", "relaxed"]) {
|
||||
const t = tokensFor(c.id, theme, undefined, density);
|
||||
for (const bg of ["color.bg", "color.surface"])
|
||||
for (const bg of [
|
||||
"color.bg",
|
||||
"color.surface",
|
||||
"color.row-hover",
|
||||
"color.row-active",
|
||||
])
|
||||
for (const fg of [
|
||||
"color.text",
|
||||
"color.muted",
|
||||
@@ -32,6 +40,26 @@ for (const c of concepts)
|
||||
);
|
||||
assert.ok(contrast(t["color.accent"], t["color.on-accent"]) >= 4.5);
|
||||
}
|
||||
for (const theme of ["light", "dark"])
|
||||
for (const accent of [
|
||||
"#ffcc00",
|
||||
"#000000",
|
||||
"#ffffff",
|
||||
"#27634c",
|
||||
"#ff0055",
|
||||
]) {
|
||||
const tokens = tokensFor("dock", theme, accent);
|
||||
for (const bg of [
|
||||
"color.bg",
|
||||
"color.surface",
|
||||
"color.row-hover",
|
||||
"color.row-active",
|
||||
])
|
||||
assert.ok(
|
||||
contrast(tokens["color.accent"], tokens[bg]) >= 4.5,
|
||||
`${theme}/${accent}/${bg} custom accent`,
|
||||
);
|
||||
}
|
||||
for (const c of concepts)
|
||||
for (const theme of ["light", "dark"]) {
|
||||
const tokens = tokensFor(c.id, theme);
|
||||
@@ -54,5 +82,5 @@ for (const file of [
|
||||
])
|
||||
assert.ok((await readFile(file, "utf8")).length > 100);
|
||||
console.log(
|
||||
"PASS: six layout grammars, 36 token sets, default text contrast, generated CSS/JSON.",
|
||||
"PASS: approved Dock, 6 token configurations, default text contrast, generated CSS/JSON.",
|
||||
);
|
||||
@@ -1,4 +1,5 @@
|
||||
import { chromium } from "playwright";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
const base = process.env.BASE_URL || "http://127.0.0.1:4173";
|
||||
const browser = await chromium.launch({
|
||||
executablePath:
|
||||
@@ -9,27 +10,19 @@ const browser = await chromium.launch({
|
||||
headless: true,
|
||||
});
|
||||
try {
|
||||
const page = await browser.newPage();
|
||||
for (const device of ["desktop", "mobile"])
|
||||
for (const theme of ["light", "dark"]) {
|
||||
const width = device === "desktop" ? 640 : 300,
|
||||
height = device === "desktop" ? 570 : 780;
|
||||
await page.setViewportSize({
|
||||
width: width * 3,
|
||||
height: (height + 35) * 2,
|
||||
});
|
||||
await page.setContent(
|
||||
`<style>*{box-sizing:border-box}body{margin:0;background:#303335;color:white;display:grid;grid-template-columns:repeat(3,${width}px);font:14px Arial}section{width:${width}px;height:${height + 35}px;padding:0 8px 8px}header{height:35px;padding:10px}img{width:100%;height:${height - 8}px;object-fit:contain;object-position:top;background:#202224}</style>${["relay", "ledger", "signal", "axis", "dock", "grid"].map((c) => `<section><header>${c.toUpperCase()} / ${theme} / ${device}</header><img src="${base}/test-results/screenshots/${c}-${theme}-${device}-dashboard.png"></section>`).join("")}`,
|
||||
);
|
||||
await page
|
||||
.locator("img")
|
||||
.evaluateAll((imgs) => Promise.all(imgs.map((i) => i.decode())));
|
||||
await page.screenshot({
|
||||
path: `references/concepts-${theme}-${device}.jpg`,
|
||||
type: "jpeg",
|
||||
quality: 90,
|
||||
});
|
||||
}
|
||||
await mkdir("references/approved-dock", { recursive: true });
|
||||
const page = await browser.newPage({
|
||||
viewport: { width: 1440, height: 390 },
|
||||
});
|
||||
await page.setContent(
|
||||
`<style>*{box-sizing:border-box}body{margin:0;display:flex;background:#18272d;color:white;font:14px Arial}section{width:720px}header{height:40px;padding:12px}img{display:block;width:720px;height:350px;object-fit:contain}</style>${["light", "dark"].map((theme) => `<section><header>ANIDEV DOCK / ${theme.toUpperCase()} / ROW HOVER</header><img src="${base}/references/approved-dock/rows-${theme}-desktop.png"></section>`).join("")}`,
|
||||
);
|
||||
await page
|
||||
.locator("img")
|
||||
.evaluateAll((images) =>
|
||||
Promise.all(images.map((image) => image.decode())),
|
||||
);
|
||||
await page.screenshot({ path: "references/approved-dock/preview.png" });
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
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,
|
||||
});
|
||||
const page = await browser.newPage({ viewport: { width: 1440, height: 700 } }),
|
||||
errors = [];
|
||||
page.on("pageerror", (e) => errors.push(e.message));
|
||||
let passed = 0;
|
||||
await mkdir("references/approved-dock", { recursive: true });
|
||||
const frame = (p, theme) =>
|
||||
`${base}/playground/frame.html?concept=dock&page=${p}&theme=${theme}&density=compact`;
|
||||
try {
|
||||
await page.goto(base + "/playground/");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.locator("#concepts,#compare,#second,#preview-b,.version")
|
||||
.count(),
|
||||
0,
|
||||
);
|
||||
assert.equal(
|
||||
/EXPLORATIONS|Relay|Ledger|Signal|Axis|Grid|Шесть точек|не выбрана/.test(
|
||||
await page.locator("body").innerText(),
|
||||
),
|
||||
false,
|
||||
);
|
||||
passed++;
|
||||
// A preference saved before approval must not restore an abandoned concept.
|
||||
await page.evaluate(() =>
|
||||
localStorage.setItem(
|
||||
"anidev.lab",
|
||||
JSON.stringify({
|
||||
concept: "ledger",
|
||||
second: "signal",
|
||||
compare: true,
|
||||
theme: "light",
|
||||
page: "users",
|
||||
locale: "ru",
|
||||
}),
|
||||
),
|
||||
);
|
||||
await page.reload();
|
||||
await page.frameLocator("#preview-a").locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body")
|
||||
.getAttribute("data-concept"),
|
||||
"dock",
|
||||
);
|
||||
passed++;
|
||||
for (const theme of ["light", "dark"]) {
|
||||
for (const [p, selector] of [
|
||||
["users", "tbody tr"],
|
||||
["dashboard", ".service"],
|
||||
["dashboard", ".activity-row"],
|
||||
["security", ".identity-setting-row"],
|
||||
["sessions", ".identity-session"],
|
||||
["applications", ".identity-app"],
|
||||
["tokens", ".token-row"],
|
||||
]) {
|
||||
await page.goto(frame(p, theme));
|
||||
await page.locator(selector).first().waitFor();
|
||||
await page.waitForTimeout(450);
|
||||
const row = page.locator(selector).first();
|
||||
await page.mouse.move(1430, 690);
|
||||
const rest = await row.evaluate(
|
||||
(el) => getComputedStyle(el).backgroundColor,
|
||||
);
|
||||
await row.hover();
|
||||
await page.waitForTimeout(180);
|
||||
const hover = await row.evaluate(
|
||||
(el) => getComputedStyle(el).backgroundColor,
|
||||
);
|
||||
assert.notEqual(
|
||||
hover,
|
||||
rest,
|
||||
`${theme}/${p}/${selector} hover; actual hover=${await row.evaluate((el) => el.matches(":hover"))}`,
|
||||
);
|
||||
assert.notEqual(hover, "rgba(0, 0, 0, 0)");
|
||||
passed++;
|
||||
if (p === "users") {
|
||||
await page.screenshot({
|
||||
path: `references/approved-dock/rows-${theme}-desktop.png`,
|
||||
});
|
||||
await row.locator("[data-edit]").focus();
|
||||
assert.equal(
|
||||
await row.evaluate((el) => getComputedStyle(el).backgroundColor),
|
||||
hover,
|
||||
);
|
||||
passed++;
|
||||
}
|
||||
}
|
||||
await page.goto(frame("profile", theme));
|
||||
await page.locator("#identity-profile").waitFor();
|
||||
await page.waitForTimeout(450);
|
||||
await page.evaluate(() => scrollTo(0, 160));
|
||||
const before = await page.locator(".main-column").boundingBox(),
|
||||
scroll = await page.evaluate(() => scrollY);
|
||||
assert.match(
|
||||
await page
|
||||
.locator("html")
|
||||
.evaluate((el) => getComputedStyle(el).scrollbarGutter),
|
||||
/stable/,
|
||||
);
|
||||
assert.notEqual(
|
||||
await page
|
||||
.locator("html")
|
||||
.evaluate((el) => getComputedStyle(el).scrollbarColor),
|
||||
"auto",
|
||||
);
|
||||
await page.locator(".dock-brand").hover();
|
||||
await page.waitForTimeout(300);
|
||||
const open = await page.locator(".main-column").boundingBox();
|
||||
assert.equal(open.x, before.x);
|
||||
assert.equal(open.width, before.width);
|
||||
assert.equal(await page.evaluate(() => scrollY), scroll);
|
||||
await page.keyboard.press("Escape");
|
||||
await page.mouse.move(1430, 690);
|
||||
await page.waitForTimeout(300);
|
||||
const closed = await page.locator(".main-column").boundingBox();
|
||||
assert.equal(closed.x, before.x);
|
||||
assert.equal(closed.width, before.width);
|
||||
passed++;
|
||||
// Native modal / scroll locking must not move the shell either.
|
||||
await page.goto(frame("users", theme));
|
||||
await page.locator("#user-search").waitFor();
|
||||
const baseBox = await page.locator(".main-column").boundingBox();
|
||||
await page.locator("[data-edit]").first().click();
|
||||
await page.waitForTimeout(300);
|
||||
const modalBox = await page.locator(".main-column").boundingBox();
|
||||
assert.equal(baseBox.x, modalBox.x);
|
||||
assert.equal(baseBox.width, modalBox.width);
|
||||
await page.keyboard.press("Escape");
|
||||
passed++;
|
||||
}
|
||||
await page.goto(frame("profile", "light"));
|
||||
await page.locator("#identity-profile").waitFor();
|
||||
const long = await page.locator(".main-column").boundingBox();
|
||||
await page.locator(".nav-links [data-page=applications]").click();
|
||||
await page.locator(".identity-app").first().waitFor();
|
||||
const short = await page.locator(".main-column").boundingBox();
|
||||
assert.equal(long.width, short.width);
|
||||
assert.equal(long.x, short.x);
|
||||
passed++;
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await page.goto(base + "/playground/");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
assert.ok(
|
||||
await page.evaluate(
|
||||
() => document.documentElement.scrollWidth <= innerWidth,
|
||||
),
|
||||
);
|
||||
await page.screenshot({
|
||||
path: "references/approved-dock/gallery-mobile.png",
|
||||
fullPage: true,
|
||||
});
|
||||
passed++;
|
||||
assert.deepEqual(errors, []);
|
||||
await writeFile(
|
||||
"references/approved-dock/qa.json",
|
||||
JSON.stringify(
|
||||
{
|
||||
passed,
|
||||
failed: 0,
|
||||
errors,
|
||||
checks:
|
||||
"Dock-only migration; hover/focus rows; stable geometry across nav and dialog open/close and long/short pages; themed native scrollbars; mobile",
|
||||
},
|
||||
null,
|
||||
2,
|
||||
),
|
||||
);
|
||||
console.log(`Approved Dock: ${passed} passed`);
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
@@ -32,8 +32,13 @@ try {
|
||||
await check("HTTP root and gallery", async () => {
|
||||
const r = await page.goto(base);
|
||||
assert.equal(r.status(), 200);
|
||||
await page.locator("#concepts button").first().waitFor();
|
||||
assert.equal(await page.locator("#concepts button").count(), 6);
|
||||
assert.equal(await page.locator("#concepts, #compare, #second").count(), 0);
|
||||
assert.equal(
|
||||
/EXPLORATIONS|Six perspectives|Шесть точек/.test(
|
||||
await page.locator("body").innerText(),
|
||||
),
|
||||
false,
|
||||
);
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
await page.screenshot({ path: "references/gallery.png", fullPage: true });
|
||||
});
|
||||
@@ -94,7 +99,7 @@ try {
|
||||
await check(
|
||||
"User search, filter, pagination, sorting, empty state",
|
||||
async () => {
|
||||
await page.goto(url("relay", "users"));
|
||||
await page.goto(url("dock", "users"));
|
||||
await page.locator("#user-search").fill("anna");
|
||||
assert.equal(await page.locator("tbody tr").count(), 1);
|
||||
await page.locator("#user-search").fill("no-such-person");
|
||||
@@ -136,7 +141,7 @@ try {
|
||||
await page.locator("[data-action=reset-users]").click();
|
||||
});
|
||||
await check("Settings persistence and keyboard tabs", async () => {
|
||||
await page.goto(url("grid", "settings"));
|
||||
await page.goto(url("dock", "settings"));
|
||||
await page.locator("input[name=name]").fill("Anidev Test");
|
||||
await page.locator("#settings-form button[type=submit]").click();
|
||||
await page.reload();
|
||||
@@ -157,7 +162,7 @@ try {
|
||||
assert.equal(await page.locator("#mfa").isChecked(), false);
|
||||
});
|
||||
await check("Auth native validation and demo sign in", async () => {
|
||||
await page.goto(url("axis", "auth"));
|
||||
await page.goto(url("dock", "auth"));
|
||||
await page.locator("input[name=email]").fill("test@example.com");
|
||||
await page.locator("input[name=password]").fill("short");
|
||||
await page.locator("#auth-form button[type=submit]").click();
|
||||
@@ -235,33 +240,27 @@ try {
|
||||
);
|
||||
}
|
||||
});
|
||||
await check(
|
||||
"Gallery controls, comparison and actual mobile viewport",
|
||||
async () => {
|
||||
await page.goto(base);
|
||||
await page.locator("[data-concept=ledger]").click();
|
||||
await page.locator("#theme").selectOption("dark");
|
||||
await page.locator("#density").selectOption("compact");
|
||||
await page.locator("#page").selectOption("users");
|
||||
await page.locator("[data-size=mobile]").click();
|
||||
await page.locator("#compare").check();
|
||||
await page.locator("#second").selectOption("signal");
|
||||
await page.frameLocator("#preview-b").locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body")
|
||||
.getAttribute("data-concept"),
|
||||
"ledger",
|
||||
);
|
||||
assert.ok(
|
||||
await page.locator("#preview-a").evaluate((e) => e.clientWidth <= 390),
|
||||
);
|
||||
await page.locator("#accent").fill("#ffcc00");
|
||||
await page.locator("#accent").dispatchEvent("change");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
},
|
||||
);
|
||||
await check("Approved Dock controls and actual mobile viewport", async () => {
|
||||
await page.goto(base);
|
||||
await page.locator("#theme").selectOption("dark");
|
||||
await page.locator("#density").selectOption("compact");
|
||||
await page.locator("#page").selectOption("users");
|
||||
await page.locator("[data-size=mobile]").click();
|
||||
await page.frameLocator("#preview-a").locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body")
|
||||
.getAttribute("data-concept"),
|
||||
"dock",
|
||||
);
|
||||
assert.ok(
|
||||
await page.locator("#preview-a").evaluate((e) => e.clientWidth <= 390),
|
||||
);
|
||||
await page.locator("#accent").fill("#ffcc00");
|
||||
await page.locator("#accent").dispatchEvent("change");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
});
|
||||
await check("Mobile navigation and density variants", async () => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
for (const c of concepts) {
|
||||
@@ -287,19 +286,19 @@ try {
|
||||
}
|
||||
await page.setViewportSize({ width: 1280, height: 900 });
|
||||
await page.goto(base);
|
||||
await page.locator("[data-concept=ledger]").click();
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
});
|
||||
await check("Export archive download", async () => {
|
||||
const download = page.waitForEvent("download");
|
||||
await page.locator("#export").click();
|
||||
const d = await download;
|
||||
await d.saveAs("test-results/anidev-export.zip");
|
||||
assert.match(d.suggestedFilename(), /anidev-ledger.zip/);
|
||||
assert.match(d.suggestedFilename(), /anidev-dock.zip/);
|
||||
});
|
||||
await check("Gallery mobile overflow", async () => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await page.goto(base);
|
||||
await page.locator("#concepts button").first().waitFor();
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
assert.ok(
|
||||
await page.evaluate(
|
||||
() => document.documentElement.scrollWidth <= innerWidth + 1,
|
||||
|
||||
@@ -322,10 +322,12 @@ try {
|
||||
await (await download).saveAs("test-results/identity-export.zip");
|
||||
});
|
||||
await check(
|
||||
"Identity change in comparison clears an open private dialog",
|
||||
"Identity change across frames clears an open private dialog",
|
||||
async () => {
|
||||
await p.goto(base + "/playground/?concept=dock&page=security");
|
||||
await p.locator("#compare").check();
|
||||
await p.setContent(
|
||||
`<iframe id="preview-a" style="width:48%;height:760px" src="${base}/playground/frame.html?concept=dock&page=security"></iframe><iframe id="preview-b" style="width:48%;height:760px" src="${base}/playground/frame.html?concept=dock&page=security"></iframe>`,
|
||||
);
|
||||
const first = p.frameLocator("#preview-a"),
|
||||
second = p.frameLocator("#preview-b");
|
||||
await second.locator("h1").waitFor();
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #141c28;
|
||||
--color-surface: #1b2738;
|
||||
--color-text: #e6edf8;
|
||||
--color-muted: #a6bad6;
|
||||
--color-border: #3b4f6c;
|
||||
--color-accent: #7195be;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 7px;
|
||||
--font-body: "Segoe UI", Arial, sans-serif;
|
||||
--font-heading: "Segoe UI", Arial, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#141c28",
|
||||
"color.surface": "#1b2738",
|
||||
"color.text": "#e6edf8",
|
||||
"color.muted": "#a6bad6",
|
||||
"color.border": "#3b4f6c",
|
||||
"color.accent": "#7195be",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "7px",
|
||||
"font.body": "\"Segoe UI\", Arial, sans-serif",
|
||||
"font.heading": "\"Segoe UI\", Arial, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "horizontal"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #f0f4fa;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #c8d7ed;
|
||||
--color-accent: #285e9d;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 7px;
|
||||
--font-body: "Segoe UI", Arial, sans-serif;
|
||||
--font-heading: "Segoe UI", Arial, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#f0f4fa",
|
||||
"color.surface": "#ffffff",
|
||||
"color.text": "#202622",
|
||||
"color.muted": "#59635e",
|
||||
"color.border": "#c8d7ed",
|
||||
"color.accent": "#285e9d",
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"radius.control": "7px",
|
||||
"font.body": "\"Segoe UI\", Arial, sans-serif",
|
||||
"font.heading": "\"Segoe UI\", Arial, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "horizontal"
|
||||
}
|
||||
@@ -8,6 +8,8 @@
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--color-row-hover: #27434b;
|
||||
--color-row-active: #2b4a53;
|
||||
--radius-control: 10px;
|
||||
--font-body: "Trebuchet MS", Arial, sans-serif;
|
||||
--font-heading: "Trebuchet MS", Arial, sans-serif;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"color.row-hover": "#27434b",
|
||||
"color.row-active": "#2b4a53",
|
||||
"radius.control": "10px",
|
||||
"font.body": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"font.heading": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--color-row-hover: #dcebed;
|
||||
--color-row-active: #cde3e5;
|
||||
--radius-control: 10px;
|
||||
--font-body: "Trebuchet MS", Arial, sans-serif;
|
||||
--font-heading: "Trebuchet MS", Arial, sans-serif;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"color.row-hover": "#dcebed",
|
||||
"color.row-active": "#cde3e5",
|
||||
"radius.control": "10px",
|
||||
"font.body": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
"font.heading": "\"Trebuchet MS\", Arial, sans-serif",
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #191a18;
|
||||
--color-surface: #252622;
|
||||
--color-text: #f1f1e7;
|
||||
--color-muted: #b8bcaf;
|
||||
--color-border: #53574a;
|
||||
--color-accent: #c37d6d;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 0px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Arial, Helvetica, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#191a18",
|
||||
"color.surface": "#252622",
|
||||
"color.text": "#f1f1e7",
|
||||
"color.muted": "#b8bcaf",
|
||||
"color.border": "#53574a",
|
||||
"color.accent": "#c37d6d",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "0px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Arial, Helvetica, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "grid"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #f6f5f1;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #bfbfb1;
|
||||
--color-accent: #a53b21;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 0px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Arial, Helvetica, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#f6f5f1",
|
||||
"color.surface": "#ffffff",
|
||||
"color.text": "#202622",
|
||||
"color.muted": "#59635e",
|
||||
"color.border": "#bfbfb1",
|
||||
"color.accent": "#a53b21",
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"radius.control": "0px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Arial, Helvetica, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "grid"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #211e1a;
|
||||
--color-surface: #2b2721;
|
||||
--color-text: #efe5d6;
|
||||
--color-muted: #c1b6a6;
|
||||
--color-border: #584e41;
|
||||
--color-accent: #bd7e6e;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 0px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Georgia, "Times New Roman", serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#211e1a",
|
||||
"color.surface": "#2b2721",
|
||||
"color.text": "#efe5d6",
|
||||
"color.muted": "#c1b6a6",
|
||||
"color.border": "#584e41",
|
||||
"color.accent": "#bd7e6e",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "0px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Georgia, \"Times New Roman\", serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "editorial"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #f5f0e7;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #c9bca7;
|
||||
--color-accent: #9b3c25;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 0px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Georgia, "Times New Roman", serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#f5f0e7",
|
||||
"color.surface": "#ffffff",
|
||||
"color.text": "#202622",
|
||||
"color.muted": "#59635e",
|
||||
"color.border": "#c9bca7",
|
||||
"color.accent": "#9b3c25",
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"radius.control": "0px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Georgia, \"Times New Roman\", serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "editorial"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #151c19;
|
||||
--color-surface: #1b2520;
|
||||
--color-text: #e4ece7;
|
||||
--color-muted: #aabcb1;
|
||||
--color-border: #3c4e42;
|
||||
--color-accent: #689283;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 5px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Arial, Helvetica, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#151c19",
|
||||
"color.surface": "#1b2520",
|
||||
"color.text": "#e4ece7",
|
||||
"color.muted": "#aabcb1",
|
||||
"color.border": "#3c4e42",
|
||||
"color.accent": "#689283",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "5px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Arial, Helvetica, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "sidebar"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #f6f8f6;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #ccd8cf;
|
||||
--color-accent: #27634c;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 5px;
|
||||
--font-body: Arial, Helvetica, sans-serif;
|
||||
--font-heading: Arial, Helvetica, sans-serif;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#f6f8f6",
|
||||
"color.surface": "#ffffff",
|
||||
"color.text": "#202622",
|
||||
"color.muted": "#59635e",
|
||||
"color.border": "#ccd8cf",
|
||||
"color.accent": "#27634c",
|
||||
"color.on-accent": "#ffffff",
|
||||
"color.danger": "#a22923",
|
||||
"color.success": "#26623b",
|
||||
"radius.control": "5px",
|
||||
"font.body": "Arial, Helvetica, sans-serif",
|
||||
"font.heading": "Arial, Helvetica, sans-serif",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "sidebar"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #101a13;
|
||||
--color-surface: #16231a;
|
||||
--color-text: #d4e8d9;
|
||||
--color-muted: #a4bfa9;
|
||||
--color-border: #36533e;
|
||||
--color-accent: #579574;
|
||||
--color-on-accent: #101810;
|
||||
--color-danger: #ffafa5;
|
||||
--color-success: #a2d3ab;
|
||||
--radius-control: 0px;
|
||||
--font-body: Consolas, "Courier New", monospace;
|
||||
--font-heading: Consolas, "Courier New", monospace;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"color.bg": "#101a13",
|
||||
"color.surface": "#16231a",
|
||||
"color.text": "#d4e8d9",
|
||||
"color.muted": "#a4bfa9",
|
||||
"color.border": "#36533e",
|
||||
"color.accent": "#579574",
|
||||
"color.on-accent": "#101810",
|
||||
"color.danger": "#ffafa5",
|
||||
"color.success": "#a2d3ab",
|
||||
"radius.control": "0px",
|
||||
"font.body": "Consolas, \"Courier New\", monospace",
|
||||
"font.heading": "Consolas, \"Courier New\", monospace",
|
||||
"space.unit": "4px",
|
||||
"space.section": "26px",
|
||||
"size.control": "40px",
|
||||
"space.cell": "13px",
|
||||
"motion.duration": "120ms",
|
||||
"layout.kind": "terminal"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
:root {
|
||||
--color-bg: #eaf0e9;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #202622;
|
||||
--color-muted: #59635e;
|
||||
--color-border: #b6cbbb;
|
||||
--color-accent: #26754b;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #a22923;
|
||||
--color-success: #26623b;
|
||||
--radius-control: 0px;
|
||||
--font-body: Consolas, "Courier New", monospace;
|
||||
--font-heading: Consolas, "Courier New", monospace;
|
||||
--space-unit: 4px;
|
||||
--space-section: 26px;
|
||||
--size-control: 40px;
|
||||
--space-cell: 13px;
|
||||
--motion-duration: 120ms;
|
||||
}
|
||||