grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Same Design for all blocks

Open froderf opened this issue 8 years ago • 4 comments

Hi @artf , this is not actually a bug but I would like to ask

if there is something like global design for every blocks.

for example all images has same border and border radius

What I want to do is

  1. Set global design that will apply on all blocks. e.g img, button, text, columns
  2. Global Design that is editable and will apply on blocks realtime.

froderf avatar Nov 30 '18 08:11 froderf

I think for the first Point you are searching for normal Components? https://grapesjs.com/docs/modules/Components.html#how-components-work

ProfSaputo avatar Nov 30 '18 12:11 ProfSaputo

I did look at the link but it doesn't have what I'm looking for but I really appreaciate your help.

What I'm looking for is something like this:

  1. I have a custom UI that generates this code below
img{
    border: 1px solid black;
    border-radius: 10px;
}
  1. Now I need this generated code to be applied on all images on the canvas.

Thank you. :)

froderf avatar Nov 30 '18 23:11 froderf

@froderf it's up to you how to create/maintain a Design System, you can import your classes and them by changing them you will change the design on any component with that class

artf avatar Dec 01 '18 16:12 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Dec 01 '19 16:12 lock[bot]