Web component built with lit
Install dependencies, run build command and dev server
$ npm install
Run multiple commands with concurrently. Or run command separately session.
$ npm start
$ npm run dev
$ npm run dev:server
Build distribution using Rollup
$ npm run build
$ npm install @demonmhon/dx-components
import '@demonmhon/dx-components';
import '@demonmhon/dx-components/dist/themes/themes.css';
<dx-button></dx-button>
Default theme is "light"
. You may set the prefferred theme with data-dx-theme
attribute in <html>
<html data-dx-theme="light">
<html data-dx-theme="dark">
document.documentElement.setAttribute('data-dx-theme', 'light');