Docs later
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 😄
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.
If you want a straight corner look, simply set the default border radius to 0. Check the example below
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;
}
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.
- Buttons
- Inputs (including autocomplete)
- Selects
- Checkboxes / radios
- Textareas
- Icons
- Tabs / tab-menu
- Modals
- Tooltips
- Toasts
- Progress bars?
- Pills?
- Suggestions are welcome! Please do make an issue 😄