github.com/sbsoftware/crumble-material

No description declared in shard.yml.

1 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  crumble-material:
    github: sbsoftware/crumble-material
    version: ~> 0.7.0

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT

Dependencies

Runtime Dependencies

  • css>= 0.4.0github: sbsoftware/css.cr
  • crumble>= 0.26.0github: sbsoftware/crumble
  • to_html>= 1.2.1github: sbsoftware/to_html.cr
  • stimulus*github: sbsoftware/stimulus.cr
  • crumble-stimulus>= 0.3.0github: sbsoftware/crumble-stimulus

README

crumble-material

TODO: Write a description here

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      crumble-material:
        github: your-github-user/crumble-material
  2. Run shards install

Usage

require "crumble-material"

Include the shard stylesheets in your layout as usual. All CSS emitted by this shard is wrapped in @layer crumble-material.

If your app defines cascade layer order up front, declare the shard layer before your app overrides so local styles can win without selector hacks:

class AppStyle < CSS::Stylesheet
  layer_order :reset, :crumble_material, :app

  layer :app do
    rule ".my-component" do
      color :rebeccapurple
    end
  end
end

Place your own overrides in a layer ordered after :crumble_material, such as :app above.

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/your-github-user/crumble-material/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors