Git Product home page Git Product logo

Comments (5)

capndave avatar capndave commented on August 27, 2024 1

Ok I just changed the theme to "hg-layout-custom" and was then able to target .hg-button no problem. Thanks!

from simple-keyboard.

hodgef avatar hodgef commented on August 27, 2024 1

Hello @capndave,

Following up on my previous message, I've released a new option called "buttonTheme" (on 2.3.0).

You would pass it as such:

buttonTheme: [
    {
      class: "hg-red",
      buttons: "Q W E R T Y q w e r t y"
    },
    {
      class: "hg-highlight",
      buttons: "Q q"
    }
  ]

Then add the corresponding css:

.hg-button.hg-standardBtn.hg-red {
  background: rgb(255, 0, 0, 0.8);
  color: white;
}
			 
.hg-button.hg-standardBtn.hg-highlight {
  box-shadow: 0px 0px 40px 5px rgba(255, 255, 0, 0.5);
  z-index: 1;
}

And the output would look like this:
image

Edit simple-keyboard customization demo - npm

I'll get the readme updated shortly :)

Regards,
Francisco Hodge

from simple-keyboard.

hodgef avatar hodgef commented on August 27, 2024

Hello @capndave,

Glad you got it working!

There's definitely some improvements I would like to do in terms of customization. I put it as a todo in a "Roadmap" post:
https://github.com/hodgef/simple-keyboard/wiki/Roadmap

I think I'll start work on this and hopefully release an improvement in the next few hours. :)

Thanks for filing the issue, btw! If you see anything that you think should be improved, feel free to open a new issue.

Regards,
Francisco Hodge

from simple-keyboard.

capndave avatar capndave commented on August 27, 2024

from simple-keyboard.

hodgef avatar hodgef commented on August 27, 2024

from simple-keyboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.