Files
craft-libs/crates/theme/sizes
aiongg 1851f6984f Component constants: one-component values live in the component's file
A dimension that belongs to one component's own drawing is a documented
constant in that component's file; layout sizes stay semantic tokens, and
no size-preset token exists for one component (craft-framework.md 5.4).

- Spec: 5.4 rule 3 reworded; Appendix A, 4.6 (the component-token rung
  goes, no such tokens exist), 8.3, porting.md and the theme README agree.
- design-lint: literal-size/* treats a module- or impl-level const with a
  doc comment as a named value: a name that resolves to it is not flagged,
  and its initializer is its definition. Fn-local and undocumented consts
  and call-site literals stay flagged. Nine markers that only covered such
  consts are removed.
- Ruler ticks: size.ruler.tick.* leaves the size presets; kit.rs draws
  TICK_MID = 6 and TICK_MINOR = 3 points in every density, as the old
  library and the apps' rulers do. Comfortable ticks go back to 6 / 3
  (from 9 / 4.5); Compact is unchanged.
- size.scroll_fade becomes FADE_LENGTH in scroll_bar.rs, size.notice.width
  CARD_WIDTH in notice.rs, and size.story.* multiples of size.control.md
  in testing/stage.rs (15, 10 and 30 control heights: today's values in
  both densities). pointer_tip, checker, thumb.sample.*, the card gaps and
  icon.glyph_md stay tokens: each has more than one user.
2026-11-20 17:33:27 +00:00
..