Skip to content

style: prototype Trident token integration - #26110

Draft
dvdksn wants to merge 11 commits into
docker:mainfrom
dvdksn:codex/trident-tokens-prototype
Draft

dvdksn wants to merge 11 commits into
docker:mainfrom
dvdksn:codex/trident-tokens-prototype

Conversation

@dvdksn

@dvdksn dvdksn commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Description

Prototype the docs site with Trident tokens while keeping builds independent of the internal npm registry. Vendors the generated CSS from @docker/trident-tokens@2.0.0-beta.3, adds locally served Manrope fonts, and maps the existing header, navigation, article typography, cards, buttons, tabs, and callouts to semantic tokens in light and dark mode.

Article text uses Trident's primary foreground on a white light-mode reading surface and a dark reading surface that matches the sidebar. Subtle dividers separate navigation, inactive table-of-contents links are neutral, and inline code has quieter backgrounds and compact padding. Long inline paths wrap on mobile. The neutral header is a docs-specific adaptation of Trident's blue-gradient AppHeader; its logo remains visible after production minification. Trident's separate high-contrast mode stays inactive.

Home, Get started, Guides featured cards, and Manuals use one shared navigation-card partial, with page-specific grids and optional audience labels. Guides search results remain list rows. Navigation cards use compact 16px titles, 14px supporting descriptions, Trident's paper elevation 0 surface, and full-area links. Card borders and shadows follow Trident's surface material: a semantic border in both themes, a faint inset top-edge highlight in dark mode, and no visible shadow in light mode. Mixed decorative icons are removed so destinations share a consistent text layout. Tabs retain defined component surfaces, semantic borders, and hover/focus states. Article and Gordon code share Trident syntax roles, with theme-specific code surfaces. Gordon uses the header gradient and semantic input, message, feedback, and alert colors. Pagefind uses the same typeface, modal surface, result text, highlights, and focus colors.

The homepage uses a unified Trident canvas for the Gordon form, suggested questions, navigation cards, and release feed. The decorative background and scaling effects are removed, the input has an accessible label and submit button, and the cards and feed align to one content width. Existing Gordon question submission and release expansion behavior are preserved.

Includes snapshot checksums, a maintainer update script, and integration notes. This is a draft for visual review; components outside the documented mappings remain open for review.

The minified production Hugo build and scoped lint checks pass. Browser checks covered light/dark desktop and mobile layouts, tab switching, keyboard focus, homepage question/suggestion submission and release expansion, real Pagefind results, and Gordon message/code/rate-limit rendering. The six mapped syntax color roles exceed 4.5:1 on their code surfaces in both themes. Local Pagefind indexing fails with a native allocator error, so local browser checks used the deployed preview's index. Gordon responses were intercepted test data; live backend behavior was not tested.

Preview

Once Netlify finishes deploying:

Generated by Codex

@github-actions github-actions Bot added hugo Updates related to hugo area/tests labels Sep 16, 2026
@netlify

netlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 5982e36
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6aaab541298dcc000840a189
😎 Deploy Preview https://deploy-preview-26110--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests hugo Updates related to hugo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant