0.2.10 • Published 2 years ago
@parc3l/components v0.2.10
The Parcel Component Library is a collection of flexible, opinonated React components used as the basis for our SDK and White Label Theming System.
Features
- 🎨 Simple Theming – Configure a single JSON object and integrate your design system seamlessly throughout all components.
- ⚡️ Powerful Primitives – Every basic component you need to build a beautiful marketplace—Buttons, Cards, Modals, Toats, and more.
- 📖 Comprehensive Testing - Test isolated components with a pre-configured Storybook development server.
Local Development
Follow a few easy steps to start testing:
- Run
yarn
inside thecomponent-library
directory. - Run
yarn dev
to start a Storybook instance.
Create a New Theme
- Navigate to
src/themes
. - Duplicate
darkTheme
orlightTheme
. - Replace existing color codes with your own design system.
Modifying spacing
- Navigate to
src/themes
. - Duplicate
commonTheme
. - Replace
space
variables with your desired spacing system.
Adding a New Theme to the Storybook Toolbar
- Create a new theme (see above).
- In
.storybook/preview.js
, add your theme name toglobalTypes.theme.toolbar.items
. - In
.storybook/useTheme.js
: a. Import your new theme:import { ..., yourTheme } from ../src/themes
. b. Add the following lineconst YourTheme = createTheme(yourTheme);
. - Add
yourThemeName
class name to the logic inuseTheme.js
. - In
styles/styles.css
, include your desired background color for the[data-theme='yourThemeName']
tag.
Example:
[data-theme='light'] {
background-color: #ffffff;
}
0.2.10
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago