SCSS widget library for Pobo Page Builder. Provides styled UI components for e-commerce product pages.
git clone git@github.com:pobo-builder/pobo-widget-sdk.git
cd pobo-widget-sdk
npm install# BEM components (recommended)
npm run watch:generic # http://localhost:8086
# Legacy components
npm run watch:standalone # http://localhost:8088
# Production build
npm run buildsrc/
├── generic/ # BEM components with CSS variables
│ ├── rc-*.scss # Widget components
│ ├── part/ # Shared partials
│ └── plugin/ # Plugin styles
├── utils/
│ └── native-variable.scss # CSS custom properties
├── custom/ # Client-specific styles
├── *.scss # Legacy components
├── editor.scss # Legacy entry point
└── generic.scss # BEM entry point
generic.html # BEM component examples
index.html # Legacy component examples
Located in src/generic/. Uses CSS custom properties with --pobo-* prefix for theming.
.rc-gallery-one {
padding: var(--pobo-gallery-one-padding);
// ...
}Located in src/. Uses hardcoded values.
.rc-gallery-one {
padding: 0;
// ...
}- Create a new branch:
git checkout -b "widget-[client]-[type]" origin/master-
Create SCSS file in
src/custom/with naming convention[client]-[widget-type].scss -
Import in
src/editor.scss:
@import "custom/[client]-[widget-type]";- Use BEM methodology with unique prefix:
.client-widget-name {
&__title {
font-size: 20px;
}
&__image {
width: 100%;
}
}Note: Do not use
.pb-*or.rc-*prefixes - these are reserved for Pobo core widgets.
- Start the proxy:
npm run proxy-
Copy the public URL (e.g.,
https://xxxx.ngrok.io) -
Find the CSS file path in browser dev tools
-
Add to Pobo at pobo.cz/app/asset:
@import "https://xxxx.ngrok.io/index.xxxxx.css";BSD-3-Clause