You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a token-by-token comparison table to USAGE.md so reviewers can
see exactly which Odoo 19 `$o-*` and Bootstrap variables every
`--dms-*` value falls back to, plus the rationale for places where we
deliberately diverge (smaller 56px tile, smaller 11px chip font,
hover-lift not present in Odoo core).
Authoritative reference for the comparison is upstream
`odoo/odoo@19.0:addons/web/static/src/scss/primary_variables.scss`
and `addons/web/static/src/views/kanban/kanban.variables.scss`. Odoo
does not publish a formal design-system document for 19.0, so we
inline the relevant tokens here for review convenience.
README.rst + the static description page are regenerated from
readme/*.md by oca-gen-addon-readme.
| Chip neutral text |`var(--o-gray-800, #495057)`|`$o-gray-800: #343a40`| We go one step lighter for chip contrast against the light bg |
69
+
| Subtitle muted text |`var(--o-gray-600, #6c757d)`|`$o-gray-600: #6c757d`| Exact |
70
+
| Title text |`var(--o-gray-900, #212529)`|`$o-gray-900: #212529`| Exact |
71
+
| Spine width |`3px`|`$o-kanban-color-border-width: 3px`| Exact match — same width Odoo uses for the user-set `highlight_color` border, so the two stack predictably |
72
+
| Card tile size |`56×56px`|`$o-kanban-image-width: 64px`| We're 12 % smaller for chip-row density; the kanban grid still aligns since both fit inside the 320px card |
73
+
| Chip font family |`var(--bs-font-monospace, monospace)`|`$o-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, ...`| Bootstrap variable that Odoo populates |
74
+
| Chip font size |`11px`|`$o-font-size-base-smaller: 12px`| We go one tier smaller for footer-chip density |
| Brand accent fallback |`var(--o-primary-500, #5b3bd6)`|`$o-community-color: #71639e`| Used only when no `--dms-accent` is set (e.g. unknown file extension) |
78
+
| Hover lift |`translateY(-1px)` + `box-shadow: 0 4px 18px rgba(0,0,0,.08)`| none in Odoo core | Added by us; Odoo 19's kanban cards have no hover-lift convention, so this is a deliberate enhancement |
79
+
80
+
The only token we introduce that has no Odoo counterpart is
81
+
`--dms-accent` itself — the per-record hashed tint. By design it's
82
+
opt-in (only applied to elements that carry the `o_dms_*` class
83
+
ancestry), so it doesn't bleed into Odoo core widgets.
84
+
85
+
Odoo doesn't publish a formal design-system document for 19.0 — the
86
+
authoritative source is `addons/web/static/src/scss/primary_variables.scss`
87
+
in `odoo/odoo@19.0`. The rationale for these specific tokens (e.g.
88
+
hashing into eight buckets rather than per-extension hard-coding for
89
+
directories, dropping the 64→56px tile size, monospace 11px chips) is
90
+
documented inline in `dms/static/src/scss/_dms_tokens.scss` and
0 commit comments