Installation

Install Syidax Core from public npm.

2. Link JavaScript and CSS#

Import CSS and register the component in your app’s JavaScript entry file.

JavaScript
import '@syidax/core/css/core';
import { defineCustomElement } from '@syidax/core/components/sy-button.js';

defineCustomElement();

Add this markup to your app HTML. Use sy-theme-dark for the dark theme.

HTML
<div class="sy-theme sy-theme-light">
  <sy-button variant="primary">Save</sy-button>
</div>