Nakodo 's stylesheet is 865 lines with no hex codes in it . It also has no z-index in it, at all. Every layering decision in the app is a Tailwind utility on an element, which means I can count them:
$ grep -rhno 'z-\[[^]]*\]\|\bz-[0-9]\+' src --include= "*.tsx" | sed 's/.*://' | sort | uniq -c 15 z-50 9 z-10 4 z-40 4 z-20 1 z- [ 5 ]
Enter fullscreen mode
Exit fullscreen mode
33 uses, five values, 21 files, in 72,683 lines of TypeScript. The ladder reads like this:
z-50 every overlay: dialog, alert dialog, sheet, popover, tooltip, dropdown, select content, and the support panel z-40 the app's sticky header, the support widget's button, and the backdrop that covers a phone screen when the support panel opens z-20 sticky action bars that float over a long list, and the hero's copy z-10 sticky filter toolbars, the select menu's scroll arrows, and two birds z-[5] the leaves
Enter fullscreen mode
Exit fullscreen mode
Five values, 10 apart, with a [5] wedged in because the leaf animation had to go over the…