GithubHelp home page GithubHelp logo

interactbulma.jl's Introduction

InteractBulma

Build Status codecov.io

Package to create Bulma themes to style Interact apps with Bulma css.

To learn how to use Interact, check out the Interact documentation.

Theming instruction

InteractBulma provides a compile_theme function to create a theme (a CSS file) based on variables and overrides. Check out the Bulma documentation to learn what variables can be used and how.

The function compile_theme(output) has two optional keyword arguments (variables and overrides) with the path of the scss file you want to use to customize variables or to add overrides respectively. output=mktempdir() is the folder chosen to store the resulting css files (main.css and main_confined.css).

Example usage

Here we will use variables from the flatly theme:

using Interact
using InteractBulma: compile_theme, examplefolder
variables_file = joinpath(examplefolder, "flatly", "_variables.scss") # here you would use your own style
mytheme = compile_theme(variables = variables_file)
settheme!(mytheme)
button() # test the new looks of Interact widgets

interactbulma.jl's People

Contributors

juliatagbot avatar piever avatar ranjanan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

interactbulma.jl's Issues

rename to BulmaThemes?

As this package now provides mainly new custom themes, it may make sense to rename it to reflect that, so that import BulmaThemes would be the command to load the themes.

Handle booleans like strings

Sometimes I make a quick boolean array in an interact tool:

@manipulate for foo=[true,false]
  foo ? "fizz" : "buzz"
end

The problem is it treats true and false and numbers (i.e. with a slider)


Is there a way to handle them like strings (i.e. with toggle buttons)

screen shot 2018-08-02 at 2 49 35 pm

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.