Issue #3326✓ SolvedOpened Mar 9, 2021by devtechk2 reactions

Canvas style css

Quick answerby artf2

You can use canvasCSS option if you don't want to use files.

Read full answer below ↓

Question

Hi guys instead of styling in the init in this way... it's possibile to use a scss file in canvas? canvas { style:['FILE.SCSS'] } or simple make it cleaner with a single init css? Thank you! myComponent.append(<style> body { background: rgb(204,204,204); } .footer { position: absolute; bottom: 5mm; width: auto; left: 5mm; right: 5mm; } .footer-container { padding: 7px 88px 7px 96px; } .footer-text:nth-child(2) { float:right; } .footer-text { font-size: 11px; } .logo-noovle img{ height: 41px; width: 211px; } .logo-placeholder img{ float: right; height: 68px; width: 191px; } .page { background:...

Answers (3)

👍 Most helpfulartfMar 21, 2021

You can use canvasCSS option if you don't want to use files.

devtechkMar 21, 2021

Thank you very much! This config file is gonna help me a lot!

GJSBlockMay 17, 2026

Thanks for reporting this, @devtechk. Great question about canvas style css. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operations can be achieved by li...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.