CodePen: Responsive Dark Analytics Dashboard
A dark-theme analytics dashboard built without any framework - just semantic HTML, SCSS and plain JavaScript. What's in it Sidebar - the shadcn/ui sidebar mechanics (gap + fixed-container trick, offcanvas collapse, inset variant, mobile drawer) reimplemented in pure CSS with a small DOM/event state layer instead of React context. Collapses to a drawer below 768px. Charts - Chart.js 4: a…
A dark-themed analytics dashboard was created without relying on any frameworks, utilizing only semantic HTML, SCSS, and plain JavaScript. The dashboard comprises a sidebar that implements shadcn/ui mechanics using pure CSS, featuring a gap, fixed-container technique, offcanvas collapse, inset variant, and mobile drawer that collapses below 768px.
The charts featured include a multi-ring radial chart, a stacked bar chart, and a half-circle gauge, with center values being DOM elements sized in cqw to ensure they scale with their container. Animated statistics are driven by countUp.js, with each figure's final width reserved before animation starts to prevent neighboring badges or legends from shifting.
A real table is included, complete with custom-styled checkboxes, a functional select-all option (including indeterminate state), status badges, zebra rows, and horizontal scrolling on narrow screens. The project employs BEM naming, SCSS design tokens, and container queries for responsive grids. The design inspiration can be found at https://www.figma.com/community/file/1325597018063319916.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.