soidesmax
START HERE

Installation & setup

Requirements, commands and the first steps for this template.

Version 1.0.0

Unzip, then open demo/index.html in a browser to see every piece live, switch accents and read the design tokens. For a working starter, open examples/vanilla/starter.html - a thermostat-style panel that uses every component and event.

Link the CSS and the script. The script initialises every component on the page automatically:

Add a dial and a readout. The dial writes its value to the element in data-output:

Recolour the whole kit with one variable, or a preset on any element:
:root { --dk-accent: #ff7a2f; }
<html data-dk-accent="violet">

The other pieces follow the same pattern - copy the markup for the piece you need from the README (LED, meter, fader, key switch, rail selector, scene cards, status chips, command field, readout) and the script wires it up. The dial takes data-min, data-max, data-step, data-value and --dk-size; the meter follows a dial with data-source="#my-dial"; the fader is a native input type="range" inside .dk-fader.

Listen to everything with one listener:
document.addEventListener('dk:change', (e) => {
  e.target;   // the component
    e.detail;   // dial: { value }   key/chip: { pressed }   rail/scenes: { index, value }
    });

    React - use examples/react/DeckDial.jsx. Load the kit once (import "./deck.css" and load deck.js with data-manual so it does not auto-init), then render the dial and let React own the state:
    const [level, setLevel] = useState(64);
    <DeckDial value={level} onChange={setLevel} label="Master level" />

    For components added later (for example after AJAX), call Deck.init(container) - safe to call again. To stop auto-initialisation entirely, add data-manual to the script tag and call Deck.init() or Deck.dial() yourself. Full API (Deck.dial, Deck.group, Deck.meter), the token table and browser support are in the included README.md. Optional: the demo uses Unbounded and Manrope from Google Fonts - the kit falls back to system fonts without them.
USE IT IN YOUR PROJECTIncluded stack: HTML + CSS + JavaScript + React

Follow the included README first. These steps apply to the technologies listed for this product.

  1. Open the included HTML page and identify the markup for the section you need.
  2. Link the supplied CSS and JavaScript files, preserving the demo’s loading order.
  3. Copy its images and other assets with the same relative paths; test interactions and mobile layout.
A CLOSER LOOK

About this product

Deck UI Kit is a set of machined, dark, glowing controls for dashboards, audio tools, smart-home panels, settings screens and landing pages. The kit has nine pieces: rotary dial, key switch, rail selector, fader + level meter, scene cards, status chips, command field, LED and readout.

One CSS file and one JS file, no dependencies - about 9 KB CSS and 8 KB JS minified. Every class starts with dk-, so the kit will not clash with your existing styles. Change one variable to recolour the whole kit: set --dk-accent (default #ff7a2f) on :root, or drop a preset on any element with data-dk-accent="ember", "violet", "cyan" or "lime". The kit is designed for dark interfaces.

Every piece is a real control, not a picture: the rotary dial drags, scrolls with the mouse wheel and answers arrow keys, Page Up/Down, Home/End (hold Shift for x5); the fader is a native range input, so input/change events and forms work as normal; the rail selector slides a puck between options; scene cards and chips toggle with a lit LED; the command field answers to Ctrl + K (Cmd + K on Mac). Every interactive component fires one bubbling dk:change event, so a single listener on document hears the whole kit.

Accessibility is built in: real buttons, role="slider", radiogroup and aria-pressed, keyboard control, focus rings and reduced-motion support. The React wrapper covers the dial (DeckDial.jsx: value, onChange, min, max, step, size, label) - for any other piece, render the markup and call Deck.init() in useEffect.

What is inside: dist/deck.css and .min.css, dist/deck.js and .min.js, demo/index.html (full showcase with accent switcher and design tokens), examples/vanilla/starter.html (a thermostat-style panel using every component and event), examples/react/DeckDial.jsx, and 4 theme preview images (starter cyan, hero ember, kit violet, full page). Works in Chrome and Edge 111+, Safari 16.2+ and Firefox 113+.

Included screens / pages

  • Kit previews (previews folder)

UI interactions

  • Card deck layouts
  • Theme previews (cyan / ember / violet)

What you get

  • dist/deck.css
  • dist/deck.min.css
  • dist/deck.js
  • dist/deck.min.js
  • examples/react/DeckDial.jsx
  • previews (4 theme images)
  • README.md
  • LICENSE.txt (v2)
  • examples/vanilla/starter.html

Integrations

Frontend UI only. Link dist files or import the React components; no backend.

FAQ

Do I need React to use this?

No. The dist CSS/JS works on its own; the React wrapper is an extra for React projects.

What does the license allow?

License v2: buy once, use for unlimited end products - your own projects and projects you build for clients. No distribution, resale, source sharing, or use as a competing template/UI kit. Full v2 text is included as LICENSE.txt in the sold ZIP.

Version 1.0.0 · Updated

BEFORE YOU GET STARTED

License & Support

One license. Unlimited projects.

One purchase covers unlimited end products for you and your clients. Customize the design and code, and use it in commercial projects.

You may not share, resell or redistribute the template or its source.

Updates
All v1.x updates included.
Support
Bugs and setup, within 2 business days.
Full license terms
**License** One purchase of this template covers **unlimited end products** — your own projects and projects you build for clients. You may use it in commercial client work, change the design and code, and ship it as part of your products, as many times as you like. The license belongs to the buyer (one person or one company). People working for the buyer on the buyer's projects may use it under the same license. You may not redistribute, resell, share, or sublicense the template itself or its source files, in whole or in part — whether standalone, bundled with other files, free, or paid. You may not use it to create a template, UI kit, or component library that competes with this product. **Updates:** all v1.x updates are free — re-download the latest files from your purchase email whenever a new version is released. **Support:** bug fixes and setup help within 2 business days, via [email protected]. The terms above are the terms in force at the time of your purchase and stay valid for that purchase, even if the license terms change later.
Read Template License v2