strata

signaturestrata original

Stack

The exploded design-system stack. Legend and 3D scene share one active layer.

01 / usage

import { Stack, StackLegend, StackScene } from '@mikestecker/strata'

import { Stack, StackLegend, StackScene } from '@mikestecker/strata'

const layers = [
  { name: 'tokens', description: 'color, type and spacing as data', pattern: 'dots' },
  { name: 'components', description: 'the React library', pattern: 'blocks' },
  { name: 'agents', description: 'where coding agents read the rules', pattern: 'signal' },
] as const

export default function StackDemo() {
  return (
    <Stack layers={layers}>
      <div style={{ display: 'flex', flexWrap: 'wrap', gap: 24, alignItems: 'center' }}>
        <div style={{ flex: '1 1 280px' }}>
          <StackLegend />
        </div>
        <div style={{ flex: '1 1 320px' }}>
          <StackScene />
        </div>
      </div>
    </Stack>
  )
}

02 / parts

  • Stack
  • StackLegend
  • StackScene

03 / keyboard

  • Legend rows are buttons: Tab to one to lift its layer.