adwavecss
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

ADWaveCSS

Adwaita/GTK inspired CSS for the web.

See examples here.

Usage

CSS styles are located in the dist/styles.css file. If used with esbuild or webpack and css loader or something similar it can be imported like this from a JavaScript file:

import "adwavecss/dist/styles.css";

Components

See docs for all components here.

JavaScript class name bindings

import ADWave from "adwavecss";

// Primary button
const button = document.createElement("button");
button.classList.add(ADWave.Button.button);
button.classList.add(ADWave.Button.primary);

// Switch
const switchElem = document.createElement("div");
const knob = document.createElement("div");
switchElem.classList.add(ADWave.Switch.switch);
knob.classList.add(ADWave.Switch.knob);
switchElem.appendChild(knob);

const toggleSwitch = () => {
  switchElem.classList.toggle(ADWave.Switch.active);
};

/adwavecss/

    Package Sidebar

    Install

    npm i adwavecss

    Weekly Downloads

    6

    Version

    0.1.1

    License

    none

    Unpacked Size

    111 kB

    Total Files

    7

    Last publish

    Collaborators

    • ncpa0cpl