youknowriad / blockbook

Build and Share WordPress Blocks in Isolation.
http://youknowriad.github.io/blockbook/
GNU General Public License v3.0
158 stars 17 forks source link

Support branding blockbook #4

Open youknowriad opened 4 years ago

youknowriad commented 4 years ago
fabiankaegy commented 4 years ago

@youknowriad I played around with this a bit today and if we moved the @import './reset.css'; before loading the blockbook we would already support overriding the css custom properties.

This already makes it possible to theme a lot. Just the logo would need to be added :) Maybe a slot fill / filter could be cool.

Screen Shot 2020-08-01 at 20 48 20

What do you think / have in mind for this?

youknowriad commented 4 years ago

yes, this could work but I feel we should offer a more friendly API (in addition to the CSS vars), maybe something like

import { setConfig } from 'blockbook-api';

setConfig({
  title: 'CoBlocks',
  color: 'red',
  url: ''
});

I think when we add this feature, we should also add something like "Powered by blockbook" somewhere.