@keenmate/web-multiselect 1.0.0-rc05 → 1.0.0-rc06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -9
- package/dist/multiselect.js +1049 -771
- package/dist/multiselect.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/scss/_css-variables.scss +377 -0
- package/src/scss/main.scss +2 -0
package/README.md
CHANGED
|
@@ -750,15 +750,32 @@ You can customize the component using CSS variables even with just a `<script>`
|
|
|
750
750
|
|
|
751
751
|
### Available CSS Variables
|
|
752
752
|
|
|
753
|
-
The component exposes
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
753
|
+
The component exposes **150+ CSS custom properties** defined at the `:host` level, making them inspectable and overridable. Below are the **50+ most commonly customized variables** organized by category.
|
|
754
|
+
|
|
755
|
+
#### Inspecting Variables in DevTools
|
|
756
|
+
|
|
757
|
+
All CSS custom properties are now defined at the `:host` level in the compiled CSS, making them visible in browser DevTools:
|
|
758
|
+
|
|
759
|
+
1. Open DevTools (F12) and select the `<multi-select>` element
|
|
760
|
+
2. In the **Styles** panel, look for the `:host` selector
|
|
761
|
+
3. You'll see all 150+ variables with their default values
|
|
762
|
+
4. Edit values live to preview changes instantly
|
|
763
|
+
|
|
764
|
+
**CSS variables work with Shadow DOM** because they inherit through the shadow boundary. This means you can customize the component from outside:
|
|
765
|
+
|
|
766
|
+
```html
|
|
767
|
+
<style>
|
|
768
|
+
/* These variables will penetrate into the Shadow DOM */
|
|
769
|
+
multi-select {
|
|
770
|
+
--ml-accent-color: #10b981; /* Changes primary color */
|
|
771
|
+
--ml-input-border-radius: 0.5rem; /* Rounds input corners */
|
|
772
|
+
}
|
|
773
|
+
</style>
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
For the complete list of all available CSS variables, see:
|
|
777
|
+
- [_css-variables.scss](./src/scss/_css-variables.scss) - All 150+ CSS custom properties at `:host` level
|
|
778
|
+
- [_variables.scss](./src/scss/_variables.scss) - Foundation SCSS variables (colors, spacing, typography)
|
|
762
779
|
|
|
763
780
|
#### Colors
|
|
764
781
|
|