DesignKit
Components, tokens, and design tools for the web.
Tonal palette
Stop 50: #edf5ff
Stop 100: #d6e8ff
Stop 200: #b9d4ff
Stop 300: #8eb5ff
Stop 400: #5d90ff
Stop 500: #2e63ff
Stop 600: #143ee3
Stop 700: #071bb5
Stop 800: #04028b
Stop 900: #02005d
Stop 950: #010034
50 500 950
Perceptual contrast
78 Aa
PassHarmony
Scale
Spring
Color
Space
Motion
Text
Analysis
Audit
Audit source CSS or rendered output against mathematical design principles
Target
Estimate interaction burden with Fitts, Hick-Hyman, steering, and touch occlusion
Saliency
Rank visual importance from a design document and inspect focus regions
Semantic analysis
Compare content similarity and grouping suggestions
Command-line tools
Run design calculations from the command line or in CI.
Install
npm install -g @dkcli/cliShow command help
dk --helpCommand examples
Design verification
dk perfect --seed "#295dff" --ratio perfect-fourth --motion snappyColor
Palette
dk palette "#3b82f6" --mode bothDistinct
dk distinct "#295dff" --harmony split-complementaryContrast
dk contrast "#fff" "#2563eb" --size 16Glass
dk glass --blur 16 --layers 2 --mode lightSpace
Layout
dk layout --container 960 --gap 24Compose
dk compose --frame 1440x900 --rects layout.jsonScale
dk scale --ratio golden --base 16Optical
dk optical icon --size 48Motion
Ease
dk ease --preset snappyJerk
dk jerk --duration 0.6 --samples 32Text
Typeset
dk typeset --font 18 --measure 620 --contrast 72Linebreak
dk linebreak --chars 22 --lines 3Analysis
Audit
dk audit --css=app.cssTarget
dk target --distance 320 --width 44 --choices 9 --modality touchSaliency
dk saliency --input hero.json --importance autoSemantic analysis
curl -X POST /api/dk/future/embedding-topology