1.5.0 • Published 10 months ago

@groene-otter/oc2 v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Open Components v2

Docs later

Installation

npm i @groene-otter/oc2

Import main.css in your application, here are some options depending on your bundler:

  • @import "@groene-otter/oc2/main.css";
  • @import "npm:@groene-otter/oc2/main.css";
  • @import "/node_modules/@groene-otter/oc2/main.css";

That's it 😄

Getting started

Brand color

All you need to do is set a brand color. Go to the Usage-tab to have a preview of the components in your brand color. These options are from the color-scheme on Open Props. However, feel free to use any other color you like.

Border radius

If you want a straight corner look, simply set the default border radius to 0. Check the example below

Examples

These are the default values in Open Components.

html {
  --brand: var(--cyan-6);
  --default-radius: var(--radius-2);
}

Here's an example for a pink theme with straight corners.

html {
  --brand: var(--pink-6);
  --default-radius: 0;
}

Usage

To learn how to use the components, simply check out the Usage tab on the Open Components website where you can see them all in action with code samples as well.

Implemented components

  • Buttons
  • Inputs (including autocomplete)
  • Selects
  • Checkboxes / radios
  • Textareas
  • Icons
  • Tabs / tab-menu
  • Modals
  • Tooltips
  • Toasts

Future components

  • Progress bars?
  • Pills?
  • Suggestions are welcome! Please do make an issue 😄
1.5.0

10 months ago

1.4.0

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

12 months ago

1.0.1

12 months ago