Skip to content

AI-native design editor. Open-source Figma alternative.

Style opacity range slider to match dark theme

Danila Poyarkov2e91959cc51a
diff --git a/src/components/PropertiesPanel.vue b/src/components/PropertiesPanel.vue
index d93e18c03..1ad4ab474 100644
--- a/src/components/PropertiesPanel.vue
+++ b/src/components/PropertiesPanel.vue
@@ -756,6 +756,28 @@ function colorHex(c: Color) {
.prop-input input[type='range'] {
flex: 1;
min-width: 0;
+ -webkit-appearance: none;
+ appearance: none;
+ height: 4px;
+ background: var(--border);
+ border-radius: 2px;
+ outline: none;
+ cursor: pointer;
+}
+
+.prop-input input[type='range']::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ appearance: none;
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: var(--text);
+ border: none;
+ cursor: pointer;
+}
+
+.prop-input input[type='range']::-webkit-slider-thumb:hover {
+ background: var(--accent, #3b82f6);
}
.prop-value {