/dx-components

My <web-component> built with lit

Primary LanguageTypeScriptMIT LicenseMIT

DX Components

Web component built with lit

Development

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

Installation

$ npm install @demonmhon/dx-components

Usage

import '@demonmhon/dx-components';
import '@demonmhon/dx-components/dist/themes/themes.css';
<dx-button></dx-button>

Themes

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');