Skip to content

Commit

Permalink
Updated - include all colors as text-color classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiIgna committed Aug 5, 2021
1 parent 5e9d23c commit 702e16c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components.html
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ <h5 class="subtitle">Layered Design</h5>
<ul class="nicer-list">
<li><a href="#">Submenu</a></li>
<li><a href="#">Support</a></li>
<li><span class="badge badge-outline-dark js-version">v1.5.3</span></li>
<li><span class="badge badge-outline-dark js-version">v1.5.4</span></li>
</ul>
</div>
<div class="col-xs-6 col-md-3">
Expand Down
2 changes: 1 addition & 1 deletion dist/layered.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ <h5 class="subtitle">Layered Design</h5>
<ul class="nicer-list">
<li><a href="#">Submenu</a></li>
<li><a href="#">Support</a></li>
<li><span class="badge badge-outline-dark js-version">v1.5.3</span></li>
<li><span class="badge badge-outline-dark js-version">v1.5.4</span></li>
</ul>
</div>
<div class="col-xs-6 col-md-3">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layered/layered-design",
"version": "1.5.3",
"version": "1.5.4",
"description": "Layered design system, based on Bootstrap",
"style": "dist/layered.css",
"sass": "src/layered.scss",
Expand Down
22 changes: 21 additions & 1 deletion src/layered.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Layered Design System variables
@import 'variables';


// Bootstrap files
// @import '~bootstrap';
// OR
Expand All @@ -11,6 +10,10 @@
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";

$spacers: map-merge($spacers, (
6: $spacer * 4,
));

@import "~bootstrap/scss/mixins";
@import "~bootstrap/scss/utilities";

Expand All @@ -33,6 +36,23 @@ $utilities: map-merge(
)
);

$utilities: map-merge(
$utilities,
(
"color": map-merge(
map-get($utilities, "color"),
(
values: map-merge(
map-get(map-get($utilities, "color"), "values"),
(
$all-colors
),
),
),
),
)
);

// temp
.bg-primary-light {
background-color: $purple-300;
Expand Down

0 comments on commit 702e16c

Please sign in to comment.