Giter Site home page Giter Site logo

Comments (3)

jenil avatar jenil commented on May 22, 2024

There is a build process to generate the bulmaswatch.min.css files but there is customization for each theme which needs manual CSS changes.

from bulmaswatch.

piever avatar piever commented on May 22, 2024

I managed to reproduce the css build step locally. It turns out that to include extensions in the theme, you can simply add (in your main.scss), after:

@import bulma

the required extensions, for example:

@import 'bulma-switch/dist/bulma-switch.sass';

If you don't mind the slightly increased css side that results from this, maybe it would even be possible to include these extensions by default in the theme css (or maybe to have two versions, extensions and no extensions).

However, while in some cases it works smoothly but in other cases there are unit measure conflicts. For example, if I compile Minty with the "toggle-switch" Bulma extension, I get:

sass styles/main.scss styles/main.css
Error: Incompatible units rem and px.
  $paddle-height: $switch-height - ($switch-paddle-offset * 2)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  vendors/bulma-extensions/bulma-switch/dist/bulma-switch.sass 14:19  switch-size()
  vendors/bulma-extensions/bulma-switch/dist/bulma-switch.sass 148:3  @import
  styles/main.scss 43:9                                               root stylesheet

I'm not sure if it's an issue with the theme or the extension. Maybe the theme is changing unit of measure of some bulma quantites?

from bulmaswatch.

jenil avatar jenil commented on May 22, 2024

I think have CSS built for extensions separately only makes senses, so I'm going to this issue for now.

from bulmaswatch.

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.