Restyle: align the docs with the DataJoint visual identity (palette, typography, logo) - #263
Restyle: align the docs with the DataJoint visual identity (palette, typography, logo)#263dimitri-yatsenko wants to merge 5 commits into
Conversation
- Consolidate all custom CSS into src/assets/stylesheets/extra.css: the stylesheet in src/.overrides/assets/stylesheets shared the same output path and was shadowed at build time, so its palette rules never shipped. One stylesheet now carries everything. - Light scheme: navy #171C39 header, blue #00A0DF links, orange #FF5113 as the single interactive accent, grey #808285 for secondary text only; body text navy. - Dark scheme (slate): same link/accent roles on a navy-tinted dark background (#161A21 family) matching the diagram dark theme. - Typography: Roboto 400 for headings (loaded via main.html), Roboto Slab 300 body, Source Code Pro code. - Header logo: replace the icon with the current mark (single path, currentColor) and color it DataJoint Blue via CSS; regenerate the favicon PNG from the same mark. - Retint dj-platform.svg off-palette blues to brand values. - Version admonitions/badges: retune coding colors (green/orange/red semantics kept, harmonized with the palette).
…joint-python#1544)
|
Regenerated all dj.Diagram figures with the new brand tier palette (datajoint-python#1544 branch renderer, theme
Verification:
Left untouched: |
MilagrosMarin
left a comment
There was a problem hiding this comment.
Confirmed the shadowing independently before anything else: the deployed gh-pages assets/stylesheets/extra.css is the 157-line docs_dir file, with zero data-md-color-scheme rules in it. The .overrides stylesheet really never shipped — good catch, and the consolidation is the right fix.
Also checked out: the three superseded hexes are gone from src/**; theme.font already supplies Roboto Slab and Source Code Pro so the main.html comment is accurate; Roboto is actually applied to h1–h6; the logo is a single path with no hardcoded fill; the favicon exists only under .overrides so there's no collision there (deployed hash matches); and the SVG retint is precisely #1a73e8→#00a0df, #334155→#171c39.
Two questions:
-
The eight social-icon rules weren't carried over. The deleted file colored the social icons via
html a[title="…"].md-social__link svg { color: var(--dj-primary) }for all eight platforms. Since they were shadowed, dropping them changes nothing on the rendered site — but they're the one bit of the shadowed file's intent that didn't make it into the consolidated version. Intentional? -
Light-mode link contrast. DataJoint Blue on white computes to 2.96:1, below WCAG AA's 4.5:1 for body-size text (dark scheme is fine at 5.89:1, and navy body text is 16.65:1). Since the custom scheme never shipped, live links have been on Material's defaults, so this is effectively a new contrast profile rather than a change to an existing one. Entirely a brand-palette call rather than an implementation issue — flagging it so it's a decision rather than a surprise.
…ce UI screenshots; dj-platform redrawn to brand; hand-authored figures retinted
|
Figure pass on
Both generated figures came from throwaway databases via the same regen setup (branch |
…) — provisional under dj-brand#22
|
Both questions answered, one with a commit:
Ready for re-review — the branch also gained the data-pipelines figure work since your pass (generated diagrams replacing the two UI screenshots, the dj-platform redraw, and the hand-authored retints), summarized in the comment above. |
… — a disconnected lookup taught nothing
|
One figure correction after review: |
Aligns docs.datajoint.com with the DataJoint visual identity — palette, typography, and logo.
What changed
Stylesheet consolidation (bug fix). The repo carried two stylesheets that both resolved to
assets/stylesheets/extra.cssin the built site; the one undersrc/.overrides/assets/stylesheets/was shadowed at build time, so the color-scheme rules there never actually shipped. All custom CSS now lives in a single file,src/assets/stylesheets/extra.css, and the shadowed file is removed.Palette.
datajoint): Navy#171C39header and body text, Blue#00A0DFlinks, Orange#FF5113as the single interactive accent (hover/focus/highlight), Grey#808285restricted to secondary text and rules.slate): same link and accent roles on a navy-tinted dark background (#161A21family) that matches the dark theme pipeline diagrams are rendered in, so embedded figures blend with the page.src/images/dj-platform.svgretinted from off-palette blues to brand values.Typography. Roboto 400 for headings (loaded via
main.html), Roboto Slab 300 for body, Source Code Pro for code — all open-licensed Google fonts. Emphasis remains bold-only.Logo and favicon. The header icon is replaced with the current DataJoint mark (single path, rendered via
currentColor) and the favicon is regenerated from the same artwork.Header treatment. The header stays navy. The mark renders through Material's
currentColoricon pipeline, so CSS colors it DataJoint Blue — the approved blue-sail-on-navy treatment — without touching the logo artwork.Version admonitions and badges. The green/orange/red added/changed/deprecated semantics are kept as coding colors, retuned to sit alongside the palette (the "changed" hue is now brand orange), and documented as such in a comment.
Verification
mkdocs buildpasses cleanly.site/for superseded hex values (#009DDC,#1A73E8,#9AA0B4): zero occurrences.Note
Pipeline figures already render in the matching diagram themes; they re-render automatically once datajoint/datajoint-python#1544 lands.