sass-material-colors 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/CONTRIBUTING.md +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +106 -0
- data/Rakefile +2 -0
- data/lib/sass-material-colors.rb +29 -0
- data/lib/sass-material-colors/version.rb +3 -0
- data/sass-material-colors.gemspec +23 -0
- data/sass/_sass-material-colors-classes.scss +12 -0
- data/sass/_sass-material-colors-function.scss +5 -0
- data/sass/_sass-material-colors-map.scss +313 -0
- data/sass/_sass-material-colors-placeholders.scss +12 -0
- data/sass/_sass-material-colors.scss +2 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: de3abd8c69ba01fa0e71bbba549ba5413bc1f473
|
4
|
+
data.tar.gz: 77b5ccddb7f140575118900567095edb367b3647
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f3171649f1d24bb68e7d7fc476bb7bae8bb4485bd7fee102d872d00aa5dc2aa403c740f6c24177f38ccadc0cedbc8276ea02c4cb7347a70eac535daa901f9538
|
7
|
+
data.tar.gz: d5833a44dea418175cf760b7be46d9d2b15aba9fbf6f1e0dac9db7d36d293afc4a66efc6269bb38954882c1af7dd27611fb2e0a0a261e00f1bdcc4e67c58bb42
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Contributing to Sass Material Colors
|
2
|
+
|
3
|
+
1. Fork it ( https://github.com/minusfive/sass-material-colors/fork )
|
4
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
5
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
6
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
7
|
+
5. Create a new Pull Request
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 minusfive
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
# Sass Material Colors
|
2
|
+
|
3
|
+
This gem makes it easy to use Google's [Material Design color palette](http://www.google.com/design/spec/style/color.html#color-color-palette) on your project.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
$ gem 'sass-material-colors'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
$ gem install sass-material-colors
|
23
|
+
```
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Import the colors map + function to your project:
|
28
|
+
|
29
|
+
```sass
|
30
|
+
// Sass
|
31
|
+
@import 'sass-material-colors'
|
32
|
+
```
|
33
|
+
|
34
|
+
This will automatically import a `$material-colors` [Sass map](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#maps) containing all the color names and values found in Google's [palette](http://www.google.com/design/spec/style/color.html#color-color-palette), and the handy [`material-color` function](#the-material-color-function), which allows you to easily reference any color in the `$material-colors` map from your Sass or Scss stylesheets.
|
35
|
+
|
36
|
+
Optionally, you can import a list of predefined [placeholder selectors](#predefined-sass-placeholder-selectors) and/or [classes](#predefined-classes) to your stylesheets.
|
37
|
+
|
38
|
+
### The `material-color` Function
|
39
|
+
|
40
|
+
The `material-color` function allows you to easily reference any color in the `_sass-material-colors-map.scss` file in your styles:
|
41
|
+
|
42
|
+
```sass
|
43
|
+
// Sass
|
44
|
+
.my-cool-element
|
45
|
+
color: material-color(cyan, 400)
|
46
|
+
background: material-color(blue-grey, 600)
|
47
|
+
```
|
48
|
+
|
49
|
+
The `material-color` function takes 2 arguments:
|
50
|
+
|
51
|
+
- `$color-name` **(Required)**: Lower-case, dasherized color name from Google's [palette](http://www.google.com/design/spec/style/color.html#color-color-palette) (e.g. `pink`, `amber`, `blue-grey`, `deep-orange`, etc.)
|
52
|
+
- `$color-variant` _(optional)_ [Default value: `500`]: Lower-case color variant number/code from Google's [palette](http://www.google.com/design/spec/style/color.html#color-color-palette) (e.g. `300`, `200`, `a100`, `a400`, etc.)
|
53
|
+
|
54
|
+
### Predefined Sass Placeholder Selectors
|
55
|
+
|
56
|
+
You can include a list of [extendable](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#extend) Sass [placeholder selectors](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#placeholder_selectors_) in your project by importing the `sass-material-colors-placeholders` [file](sass/_sass-material-colors-placeholders.scss) into your Sass/Scss:
|
57
|
+
|
58
|
+
```sass
|
59
|
+
// Sass
|
60
|
+
@import `sass-material-colors-placeholders`
|
61
|
+
```
|
62
|
+
|
63
|
+
This will add a `%color-...` and `%bg-color-...` [placeholder selector](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#placeholder_selectors_) for each color name and variant found in Google's [palette](http://www.google.com/design/spec/style/color.html#color-color-palette) to your project, which you can then extend in your stylesheets like so:
|
64
|
+
|
65
|
+
```sass
|
66
|
+
// Sass
|
67
|
+
.my-cool-element
|
68
|
+
@extend %color-cyan-400
|
69
|
+
@extend %bg-color-blue-grey-600
|
70
|
+
```
|
71
|
+
|
72
|
+
### Predefined Classes
|
73
|
+
|
74
|
+
You can include a list of predefined classes in your project by importing the `sass-material-colors-classes` [file](sass/_sass-material-colors-classes.scss) into your Sass/Scss:
|
75
|
+
|
76
|
+
```sass
|
77
|
+
// Sass
|
78
|
+
@import `sass-material-colors-classes`
|
79
|
+
```
|
80
|
+
|
81
|
+
This will add a `.color-...` and `.bg-color-...` class for each color name and variant found in Google's [palette](http://www.google.com/design/spec/style/color.html#color-color-palette) to your stylesheets, which you can then use directly in your markup like so:
|
82
|
+
|
83
|
+
```html
|
84
|
+
<!-- HTML -->
|
85
|
+
<div class='my-cool-element color-cyan-400 bg-color-blue-grey-600'></div>
|
86
|
+
```
|
87
|
+
|
88
|
+
## TO-DO
|
89
|
+
- [ ] Add tests
|
90
|
+
- [ ] Make it bower friendly
|
91
|
+
|
92
|
+
## Contributing
|
93
|
+
|
94
|
+
See [CONTRIBUTING](CONTRIBUTING.md).
|
95
|
+
|
96
|
+
## License
|
97
|
+
|
98
|
+
See [LICENSE](LICENSE.md).
|
99
|
+
|
100
|
+
## Special Thanks
|
101
|
+
|
102
|
+
To [nilskaspersson/Google-Material-UI-Color-Palette](https://github.com/nilskaspersson/Google-Material-UI-Color-Palette) for the inspiration on using a Sass map for the colors, and a map function to retrieve them.
|
103
|
+
|
104
|
+
To [twbs/bootstrap-sass](https://github.com/twbs/bootstrap-sass) as a reference for this gem.
|
105
|
+
|
106
|
+
And to Google for their [Material Design spec](http://www.google.com/design/spec/material-design/introduction.html).
|
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require "sass-material-colors/version"
|
2
|
+
|
3
|
+
module SassMaterialColors
|
4
|
+
class << self
|
5
|
+
# Inspired by Bootstrap Sass, inspired in turn by Kaminari
|
6
|
+
def load!
|
7
|
+
configure_sass
|
8
|
+
end
|
9
|
+
|
10
|
+
# Paths
|
11
|
+
def gem_path
|
12
|
+
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
|
13
|
+
end
|
14
|
+
|
15
|
+
def sass_path
|
16
|
+
File.join gem_path, 'sass'
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def configure_sass
|
22
|
+
require 'sass'
|
23
|
+
|
24
|
+
::Sass.load_paths << sass_path
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
::SassMaterialColors.load!
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sass-material-colors/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sass-material-colors"
|
8
|
+
spec.version = SassMaterialColors::VERSION
|
9
|
+
spec.authors = ["minusfive"]
|
10
|
+
spec.email = ["mail@minusfive.com"]
|
11
|
+
spec.summary = %q{Google's Material Design colors for Sass/Scss}
|
12
|
+
spec.description = %q{An easy way to use Google's Material Design colors in your Sass/Scss project}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.4"
|
23
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@import 'sass-material-colors-map';
|
2
|
+
|
3
|
+
@each $color-name, $color-variants in $material-colors {
|
4
|
+
@each $color-variant, $hex-value in $color-variants {
|
5
|
+
.color-#{"" + $color-name}-#{$color-variant} {
|
6
|
+
color: #{$hex-value}
|
7
|
+
}
|
8
|
+
.bg-color-#{"" + $color-name}-#{$color-variant} {
|
9
|
+
background-color: #{$hex-value}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,313 @@
|
|
1
|
+
// Inspired by https://github.com/nilskaspersson/Google-Material-UI-Color-Palette/
|
2
|
+
$material-colors: (
|
3
|
+
red: (
|
4
|
+
50: #ffebee,
|
5
|
+
100: #ffcdd2,
|
6
|
+
200: #ef9a9a,
|
7
|
+
300: #e57373,
|
8
|
+
400: #ef5350,
|
9
|
+
500: #f44336,
|
10
|
+
600: #e53935,
|
11
|
+
700: #d32f2f,
|
12
|
+
800: #c62828,
|
13
|
+
900: #b71c1c,
|
14
|
+
a100: #ff8a80,
|
15
|
+
a200: #ff5252,
|
16
|
+
a400: #ff1744,
|
17
|
+
a700: #d50000
|
18
|
+
),
|
19
|
+
|
20
|
+
pink: (
|
21
|
+
50: #fce4ec,
|
22
|
+
100: #f8bbd0,
|
23
|
+
200: #f48fb1,
|
24
|
+
300: #f06292,
|
25
|
+
400: #ec407a,
|
26
|
+
500: #e91e63,
|
27
|
+
600: #d81b60,
|
28
|
+
700: #c2185b,
|
29
|
+
800: #ad1457,
|
30
|
+
900: #880e4f,
|
31
|
+
a100: #ff80ab,
|
32
|
+
a200: #ff4081,
|
33
|
+
a400: #f50057,
|
34
|
+
a700: #c51162
|
35
|
+
),
|
36
|
+
|
37
|
+
purple: (
|
38
|
+
50: #f3e5f5,
|
39
|
+
100: #e1bee7,
|
40
|
+
200: #ce93d8,
|
41
|
+
300: #ba68c8,
|
42
|
+
400: #ab47bc,
|
43
|
+
500: #9c27b0,
|
44
|
+
600: #8e24aa,
|
45
|
+
700: #7b1fa2,
|
46
|
+
800: #6a1b9a,
|
47
|
+
900: #4a148c,
|
48
|
+
a100: #ea80fc,
|
49
|
+
a200: #e040fb,
|
50
|
+
a400: #d500f9,
|
51
|
+
a700: #aa00ff
|
52
|
+
),
|
53
|
+
|
54
|
+
deep-purple: (
|
55
|
+
50: #ede7f6,
|
56
|
+
100: #d1c4e9,
|
57
|
+
200: #b39ddb,
|
58
|
+
300: #9575cd,
|
59
|
+
400: #7e57c2,
|
60
|
+
500: #673ab7,
|
61
|
+
600: #5e35b1,
|
62
|
+
700: #512da8,
|
63
|
+
800: #4527a0,
|
64
|
+
900: #311b92,
|
65
|
+
a100: #b388ff,
|
66
|
+
a200: #7c4dff,
|
67
|
+
a400: #651fff,
|
68
|
+
a700: #6200ea
|
69
|
+
),
|
70
|
+
|
71
|
+
indigo: (
|
72
|
+
50: #e8eaf6,
|
73
|
+
100: #c5cae9,
|
74
|
+
200: #9fa8da,
|
75
|
+
300: #7986cb,
|
76
|
+
400: #5c6bc0,
|
77
|
+
500: #3f51b5,
|
78
|
+
600: #3949ab,
|
79
|
+
700: #303f9f,
|
80
|
+
800: #283593,
|
81
|
+
900: #1a237e,
|
82
|
+
a100: #8c9eff,
|
83
|
+
a200: #536dfe,
|
84
|
+
a400: #3d5afe,
|
85
|
+
a700: #304ffe
|
86
|
+
),
|
87
|
+
|
88
|
+
blue: (
|
89
|
+
50: #e3f2fd,
|
90
|
+
100: #bbdefb,
|
91
|
+
200: #90caf9,
|
92
|
+
300: #64b5f6,
|
93
|
+
400: #42a5f5,
|
94
|
+
500: #2196f3,
|
95
|
+
600: #1e88e5,
|
96
|
+
700: #1976d2,
|
97
|
+
800: #1565c0,
|
98
|
+
900: #0d47a1,
|
99
|
+
a100: #82b1ff,
|
100
|
+
a200: #448aff,
|
101
|
+
a400: #2979ff,
|
102
|
+
a700: #2962ff
|
103
|
+
),
|
104
|
+
|
105
|
+
light-blue: (
|
106
|
+
50: #e1f5fe,
|
107
|
+
100: #b3e5fc,
|
108
|
+
200: #81d4fa,
|
109
|
+
300: #4fc3f7,
|
110
|
+
400: #29b6f6,
|
111
|
+
500: #03a9f4,
|
112
|
+
600: #039be5,
|
113
|
+
700: #0288d1,
|
114
|
+
800: #0277bd,
|
115
|
+
900: #01579b,
|
116
|
+
a100: #80d8ff,
|
117
|
+
a200: #40c4ff,
|
118
|
+
a400: #00b0ff,
|
119
|
+
a700: #0091ea
|
120
|
+
),
|
121
|
+
|
122
|
+
cyan: (
|
123
|
+
50: #e0f7fa,
|
124
|
+
100: #b2ebf2,
|
125
|
+
200: #80deea,
|
126
|
+
300: #4dd0e1,
|
127
|
+
400: #26c6da,
|
128
|
+
500: #00bcd4,
|
129
|
+
600: #00acc1,
|
130
|
+
700: #0097a7,
|
131
|
+
800: #00838f,
|
132
|
+
900: #006064,
|
133
|
+
a100: #84ffff,
|
134
|
+
a200: #18ffff,
|
135
|
+
a400: #00e5ff,
|
136
|
+
a700: #00b8d4
|
137
|
+
),
|
138
|
+
|
139
|
+
teal: (
|
140
|
+
50: #e0f2f1,
|
141
|
+
100: #b2dfdb,
|
142
|
+
200: #80cbc4,
|
143
|
+
300: #4db6ac,
|
144
|
+
400: #26a69a,
|
145
|
+
500: #009688,
|
146
|
+
600: #00897b,
|
147
|
+
700: #00796b,
|
148
|
+
800: #00695c,
|
149
|
+
900: #004d40,
|
150
|
+
a100: #a7ffeb,
|
151
|
+
a200: #64ffda,
|
152
|
+
a400: #1de9b6,
|
153
|
+
a700: #00bfa5
|
154
|
+
),
|
155
|
+
|
156
|
+
green: (
|
157
|
+
50: #e8f5e9,
|
158
|
+
100: #c8e6c9,
|
159
|
+
200: #a5d6a7,
|
160
|
+
300: #81c784,
|
161
|
+
400: #66bb6a,
|
162
|
+
500: #4caf50,
|
163
|
+
600: #43a047,
|
164
|
+
700: #388e3c,
|
165
|
+
800: #2e7d32,
|
166
|
+
900: #1b5e20,
|
167
|
+
a100: #b9f6ca,
|
168
|
+
a200: #69f0ae,
|
169
|
+
a400: #00e676,
|
170
|
+
a700: #00c853
|
171
|
+
),
|
172
|
+
|
173
|
+
light-green: (
|
174
|
+
50: #f1f8e9,
|
175
|
+
100: #dcedc8,
|
176
|
+
200: #c5e1a5,
|
177
|
+
300: #aed581,
|
178
|
+
400: #9ccc65,
|
179
|
+
500: #8bc34a,
|
180
|
+
600: #7cb342,
|
181
|
+
700: #689f38,
|
182
|
+
800: #558b2f,
|
183
|
+
900: #33691e,
|
184
|
+
a100: #ccff90,
|
185
|
+
a200: #b2ff59,
|
186
|
+
a400: #76ff03,
|
187
|
+
a700: #64dd17
|
188
|
+
),
|
189
|
+
|
190
|
+
lime: (
|
191
|
+
50: #f9fbe7,
|
192
|
+
100: #f0f4c3,
|
193
|
+
200: #e6ee9c,
|
194
|
+
300: #dce775,
|
195
|
+
400: #d4e157,
|
196
|
+
500: #cddc39,
|
197
|
+
600: #c0ca33,
|
198
|
+
700: #afb42b,
|
199
|
+
800: #9e9d24,
|
200
|
+
900: #827717,
|
201
|
+
a100: #f4ff81,
|
202
|
+
a200: #eeff41,
|
203
|
+
a400: #c6ff00,
|
204
|
+
a700: #aeea00
|
205
|
+
),
|
206
|
+
|
207
|
+
yellow: (
|
208
|
+
50: #fffde7,
|
209
|
+
100: #fff9c4,
|
210
|
+
200: #fff59d,
|
211
|
+
300: #fff176,
|
212
|
+
400: #ffee58,
|
213
|
+
500: #ffeb3b,
|
214
|
+
600: #fdd835,
|
215
|
+
700: #fbc02d,
|
216
|
+
800: #f9a825,
|
217
|
+
900: #f57f17,
|
218
|
+
a100: #ffff8d,
|
219
|
+
a200: #ffff00,
|
220
|
+
a400: #ffea00,
|
221
|
+
a700: #ffd600
|
222
|
+
),
|
223
|
+
|
224
|
+
amber: (
|
225
|
+
50: #fff8e1,
|
226
|
+
100: #ffecb3,
|
227
|
+
200: #ffe082,
|
228
|
+
300: #ffd54f,
|
229
|
+
400: #ffca28,
|
230
|
+
500: #ffc107,
|
231
|
+
600: #ffb300,
|
232
|
+
700: #ffa000,
|
233
|
+
800: #ff8f00,
|
234
|
+
900: #ff6f00,
|
235
|
+
a100: #ffe57f,
|
236
|
+
a200: #ffd740,
|
237
|
+
a400: #ffc400,
|
238
|
+
a700: #ffab00
|
239
|
+
),
|
240
|
+
|
241
|
+
orange: (
|
242
|
+
50: #fff3e0,
|
243
|
+
100: #ffe0b2,
|
244
|
+
200: #ffcc80,
|
245
|
+
300: #ffb74d,
|
246
|
+
400: #ffa726,
|
247
|
+
500: #ff9800,
|
248
|
+
600: #fb8c00,
|
249
|
+
700: #f57c00,
|
250
|
+
800: #ef6c00,
|
251
|
+
900: #e65100,
|
252
|
+
a100: #ffd180,
|
253
|
+
a200: #ffab40,
|
254
|
+
a400: #ff9100,
|
255
|
+
a700: #ff6d00
|
256
|
+
),
|
257
|
+
|
258
|
+
deep-orange: (
|
259
|
+
50: #fbe9e7,
|
260
|
+
100: #ffccbc,
|
261
|
+
200: #ffab91,
|
262
|
+
300: #ff8a65,
|
263
|
+
400: #ff7043,
|
264
|
+
500: #ff5722,
|
265
|
+
600: #f4511e,
|
266
|
+
700: #e64a19,
|
267
|
+
800: #d84315,
|
268
|
+
900: #bf360c,
|
269
|
+
a100: #ff9e80,
|
270
|
+
a200: #ff6e40,
|
271
|
+
a400: #ff3d00,
|
272
|
+
a700: #dd2c00
|
273
|
+
),
|
274
|
+
|
275
|
+
brown: (
|
276
|
+
50: #efebe9,
|
277
|
+
100: #d7ccc8,
|
278
|
+
200: #bcaaa4,
|
279
|
+
300: #a1887f,
|
280
|
+
400: #8d6e63,
|
281
|
+
500: #795548,
|
282
|
+
600: #6d4c41,
|
283
|
+
700: #5d4037,
|
284
|
+
800: #4e342e,
|
285
|
+
900: #3e2723
|
286
|
+
),
|
287
|
+
|
288
|
+
grey: (
|
289
|
+
50: #fafafa,
|
290
|
+
100: #f5f5f5,
|
291
|
+
200: #eeeeee,
|
292
|
+
300: #e0e0e0,
|
293
|
+
400: #bdbdbd,
|
294
|
+
500: #9e9e9e,
|
295
|
+
600: #757575,
|
296
|
+
700: #616161,
|
297
|
+
800: #424242,
|
298
|
+
900: #212121
|
299
|
+
),
|
300
|
+
|
301
|
+
blue-grey: (
|
302
|
+
50: #eceff1,
|
303
|
+
100: #cfd8dc,
|
304
|
+
200: #b0bec5,
|
305
|
+
300: #90a4ae,
|
306
|
+
400: #78909c,
|
307
|
+
500: #607d8b,
|
308
|
+
600: #546e7a,
|
309
|
+
700: #455a64,
|
310
|
+
800: #37474f,
|
311
|
+
900: #263238
|
312
|
+
)
|
313
|
+
);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@import 'sass-material-colors-map';
|
2
|
+
|
3
|
+
@each $color-name, $color-variants in $material-colors {
|
4
|
+
@each $color-variant, $hex-value in $color-variants {
|
5
|
+
%color-#{"" + $color-name}-#{$color-variant} {
|
6
|
+
color: #{$hex-value}
|
7
|
+
}
|
8
|
+
%bg-color-#{"" + $color-name}-#{$color-variant} {
|
9
|
+
background-color: #{$hex-value}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass-material-colors
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- minusfive
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.4'
|
41
|
+
description: An easy way to use Google's Material Design colors in your Sass/Scss
|
42
|
+
project
|
43
|
+
email:
|
44
|
+
- mail@minusfive.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- CONTRIBUTING.md
|
51
|
+
- Gemfile
|
52
|
+
- LICENSE.txt
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- lib/sass-material-colors.rb
|
56
|
+
- lib/sass-material-colors/version.rb
|
57
|
+
- sass-material-colors.gemspec
|
58
|
+
- sass/_sass-material-colors-classes.scss
|
59
|
+
- sass/_sass-material-colors-function.scss
|
60
|
+
- sass/_sass-material-colors-map.scss
|
61
|
+
- sass/_sass-material-colors-placeholders.scss
|
62
|
+
- sass/_sass-material-colors.scss
|
63
|
+
homepage: ''
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 2.4.2
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: Google's Material Design colors for Sass/Scss
|
87
|
+
test_files: []
|