All releases

0.9.1-alpha.35

Alpha

@xaui/native@0.9.1-alpha.35

Patch Changes

  • 806fa8d: Skeleton drops its variant

    It shipped with two — the neutral fill and that fill at half — sold as the two backgrounds a placeholder is drawn on. Measured against every surface, in both modes, the second is less visible than the first everywhere:

    surfacedefaultthe old secondary
    the page (light)1.2161.100
    a default Card (light)1.2691.119
    a secondary Card (light)1.0751.036
    the page (dark)1.3361.123
    a default Card (dark)1.1891.090
    a secondary Card (dark)1.0001.000

    So it was never the answer to "this block reads as a hole" — the full fill is the more visible of the two on the very surface that claim named. And on a secondary Card in dark mode both resolve to that surface's own #27272a and vanish, which is precisely the case the pair existed to cover: default and surfaceSecondary are the same colour there.

    A skeleton has to contrast with whatever sits under it, and a fixed token cannot know what that is — two frozen values were never going to cover three surfaces times two modes. The block paints default, the neutral fill the rest of the library uses for a secondary Button, and color is the way past it: honest about being a raw value rather than a name that promises a system.

    The recipe keeps a single-entry variantTokens all the same, because resolveTint maps the roles a variant declares and that mapping is what lets color land on the block.