Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support branding blockbook #4

Open
youknowriad opened this issue Jul 21, 2020 · 2 comments
Open

Support branding blockbook #4

youknowriad opened this issue Jul 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@youknowriad
Copy link
Owner

  • Defining Colors.
  • A custom logo.
  • A cover page maybe.
@youknowriad youknowriad added the enhancement New feature or request label Jul 21, 2020
@fabiankaegy
Copy link
Collaborator

@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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants