2.0.4 • Published 1 month ago

@mozilla/lilypad-ui v2.0.4

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
1 month ago

lilypad

React Component Library

Alt text

Installation

npm:

npm install @mozilla/lilypad-ui

yarn:

yarn add @mozilla/lilypad-ui

Getting started with Lilypad

Here is an example of a basic app using Lilypad's Button component:

import * as React from 'react';
import { Button } from '@mozilla/lilypad-ui';

function App() {
  return (
    <Button category="primary_solid" icon="alert-circle" text="click me!!" />
  );
}

Storybook

click here!

Adding Styles

@import '@mozilla/lilypad-ui/dist/styles/theme.scss';
  // Set to Light Theme,
  // Note: if a "data-theme" is not set on <main> it will default the "light" theme
 <main data-theme="light"></main>

 // Set to Dark Theme
 <main data-theme="dark"></main>

 // Get theme from users settings "dark" or "light"
 <main data-theme={themeFromUserSettings}></main>

This will also let you access all of the great utility classes here utility.scss.

Feel free to override these CSS variables with your own colors!

License

This project is licensed under the terms of the Mozilla Public License 2.0.

2.0.3

1 month ago

2.0.4

1 month ago

2.0.2

5 months ago

2.0.1

7 months ago

2.0.0

9 months ago

1.8.6

11 months ago

1.8.5

12 months ago

1.8.4

12 months ago

1.8.3

1 year ago

1.7.9

1 year ago

1.7.8

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.7

1 year ago

1.7.6

1 year ago