Skip to content

Commit

Permalink
fix: badge bg #6 and add some colors
Browse files Browse the repository at this point in the history
  • Loading branch information
matifandy8 committed Jan 12, 2024
1 parent 57d3b80 commit 81fb0b2
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 8 deletions.
20 changes: 18 additions & 2 deletions dist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,15 @@ html {
opacity: 1;
text-align: left; }

.text-black {
color: #000000; }

.text-white {
color: #ffffff; }

.text-red {
color: #dc341e; }

.text-orange {
color: #ff5733; }

Expand Down Expand Up @@ -537,6 +546,15 @@ html {
.text-pale-yellow {
color: #fdfd96; }

.bg-black {
background-color: #000000; }

.bg-white {
background-color: #ffffff; }

.bg-red {
background-color: #dc341e; }

.bg-orange {
background-color: #ff5733; }

Expand Down Expand Up @@ -687,7 +705,6 @@ input.nb-checkbox {
padding: 5px;
border: 2px solid #000;
border-radius: 50px;
background-color: #40d39c;
box-shadow: 3px 3px 0 0 #000; }
.badge .badge-inner {
display: flex;
Expand All @@ -698,7 +715,6 @@ input.nb-checkbox {
border: 2px solid #000;
border-radius: 50px; }
.badge .badge-inner .badge-text {
color: #031926;
padding: 10px;
margin: 0; }

Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ <h3>Badge</h3>
Section presents a badge with text. It illustrates a user interface component
provided by NeoBrutalismCSS for badges.
</p>
<div class="badge">
<div class="badge bg-orange text-white">
<div class="badge-inner">
<p class="badge-text">Excellence</p>
</div>
Expand All @@ -267,7 +267,7 @@ <h3>Badge</h3>
<pre>
<button class="copy tooltip copy-button"><img src="assets/copy.svg" alt="copy"> <span class="tooltiptext">Copy to clipboard</span></button>
<code class="language-html" data-lang="html">
<span class="tag">&lt;div</span> <span class="class">class=</span><span class="name">"badge"</span><span class="tag">&gt;</span>
<span class="tag">&lt;div</span> <span class="class">class=</span><span class="name">"badge bg-orange"</span><span class="tag">&gt;</span>
<span class="tag">&lt;div</span> <span class="class">class=</span><span class="name">"badge-inner"</span><span class="tag">&gt;</span>
<span class="tag">&lt;p</span> <span class="class">class=</span><span class="name">"badge-text"</span><span class="tag">&gt;</span>Excellence<span class="tag">&lt;/p&gt;</span>
<span class="tag">&lt;/div&gt;</span>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neobrutalismcss",
"version": "0.5.1",
"version": "0.5.2",
"description": "NeoBrutalismCSS design framework that embraces the aesthetics of neo-brutalism in web",
"main": "dist/index.min.css",
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions src/scss/base/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$black: #000000;
$white: #ffffff;
$red: #dc341e;
$orange: #ff5733;
$blue: #0077b6;
Expand All @@ -12,6 +14,7 @@ $pale-cyan: #b9e7de;
$pale-yellow: #fdfd96;
$pale-yellow-light: #f8f894;

$hover-red: #a52a2a;
$hover-orange: #d64b2b;
$hover-blue: #005785;
$hover-green: #30ac7e;
Expand Down
2 changes: 0 additions & 2 deletions src/scss/components/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
padding: 5px;
border: 2px solid #000;
border-radius: 50px;
background-color: #40d39c;
box-shadow: 3px 3px 0 0 #000;

.badge-inner {
Expand All @@ -15,7 +14,6 @@
border: 2px solid #000;
border-radius: 50px;
.badge-text {
color: #031926;
padding: 10px;
margin: 0;
}
Expand Down
6 changes: 6 additions & 0 deletions src/scss/components/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
$text-colors: (
black: $black,
white: $white,
red: $red,
orange: $orange,
blue: $blue,
green: $green,
Expand All @@ -11,6 +14,9 @@ $text-colors: (
);

$bg-colors: (
black: $black,
white: $white,
red: $red,
orange: $orange,
blue: $blue,
green: $green,
Expand Down

0 comments on commit 81fb0b2

Please sign in to comment.