An open API service indexing awesome lists of open source software.

https://github.com/zokioki/spectre_scss

Spectre.css assets bundled for Rails
https://github.com/zokioki/spectre_scss

Last synced: about 1 month ago
JSON representation

Spectre.css assets bundled for Rails

Awesome Lists containing this project

README

          

# Spectre.scss

[![Gem Version](https://badge.fury.io/rb/spectre_scss.svg)](https://badge.fury.io/rb/spectre_scss)

[Spectre](https://picturepan2.github.io/spectre/) is a lightweight, responsive and modern CSS framework. This gem packages the Sass version of Spectre's assets for drop-in use in Rails applications.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'spectre_scss'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install spectre_scss

## Usage

Once installed, add the following to your `application.scss`:

```scss
@import "spectre";
```

Or, import components as needed:

```scss
// Core variables and mixins
@import 'spectre/variables';
@import 'spectre/mixins';
@import 'spectre/utilities';

// Reset and dependencies
@import 'spectre/normalize';
@import 'spectre/base';

@import 'spectre/buttons';
@import 'spectre/navbar';
@import 'spectre/tables';
```

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).