= ({
- backgroundColor = 'rgba(0, 0, 0, 0.3)',
+ backgroundColor = '#d1d5db',
blockHeight = 4,
justify = 'start',
numberOfBlocks = 1,
diff --git a/placeholders/Frame.tsx b/placeholders/Frame.tsx
index 6868118..ccc9274 100644
--- a/placeholders/Frame.tsx
+++ b/placeholders/Frame.tsx
@@ -4,7 +4,7 @@ const Frame: React.FC<{}> = ({ children }) => {
return (
ol li::before {
- background-color: #e5e7eb;
+ background-color: #d1d5db;
border-radius: 50%;
content: counter(ol-step-counter);
align-items: center;
diff --git a/styles/index.scss b/styles/index.scss
index 4225762..61d331f 100644
--- a/styles/index.scss
+++ b/styles/index.scss
@@ -19,6 +19,7 @@
@import './patterns/button-with-icon';
@import './patterns/card';
@import './patterns/centering';
+@import './patterns/chip';
@import './patterns/close-button';
@import './patterns/color-swatch';
@import './patterns/concave-corners';
diff --git a/styles/patterns/_accordion.scss b/styles/patterns/_accordion.scss
index ab999e2..eb25ff4 100644
--- a/styles/patterns/_accordion.scss
+++ b/styles/patterns/_accordion.scss
@@ -1,11 +1,11 @@
.accordion {
- border: 1px solid rgba(0, 0, 0, 0.3);
+ border: 1px solid #d1d5db;
border-radius: 4px;
height: 100%;
width: 100%;
}
.accordion__item:not(:last-child) {
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
}
.accordion__header {
align-items: center;
diff --git a/styles/patterns/_arrow-buttons.scss b/styles/patterns/_arrow-buttons.scss
index 34e0f57..136c1e2 100644
--- a/styles/patterns/_arrow-buttons.scss
+++ b/styles/patterns/_arrow-buttons.scss
@@ -14,29 +14,29 @@
.arrow-button--t {
/* Edges */
- border-left: 1px solid rgba(0, 0, 0, 0.3);
- border-top: 1px solid rgba(0, 0, 0, 0.3);
+ border-left: 1px solid #d1d5db;
+ border-top: 1px solid #d1d5db;
transform: translateY(25%) rotate(45deg);
}
.arrow-button--r {
/* Edges */
- border-right: 1px solid rgba(0, 0, 0, 0.3);
- border-top: 1px solid rgba(0, 0, 0, 0.3);
+ border-right: 1px solid #d1d5db;
+ border-top: 1px solid #d1d5db;
transform: translateX(-25%) rotate(45deg);
}
.arrow-button--b {
/* Edges */
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
- border-right: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
+ border-right: 1px solid #d1d5db;
transform: translateY(-25%) rotate(45deg);
}
.arrow-button--l {
/* Edges */
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
- border-left: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
+ border-left: 1px solid #d1d5db;
transform: translateX(25%) rotate(45deg);
}
diff --git a/styles/patterns/_avatar.scss b/styles/patterns/_avatar.scss
index 3c0f3e9..a4e347c 100644
--- a/styles/patterns/_avatar.scss
+++ b/styles/patterns/_avatar.scss
@@ -2,7 +2,7 @@
height: 8rem;
width: 8rem;
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
/* Rounded border */
border-radius: 50%;
diff --git a/styles/patterns/_badge.scss b/styles/patterns/_badge.scss
index 2205e70..9a19a0f 100644
--- a/styles/patterns/_badge.scss
+++ b/styles/patterns/_badge.scss
@@ -5,7 +5,7 @@
justify-content: center;
/* Colors */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
color: #fff;
/* Rounded border */
diff --git a/styles/patterns/_card.scss b/styles/patterns/_card.scss
index 61cc62d..273b565 100644
--- a/styles/patterns/_card.scss
+++ b/styles/patterns/_card.scss
@@ -3,11 +3,11 @@
flex-direction: column;
width: 100%;
height: 100%;
- border: 1px solid rgba(0, 0, 0, .3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
}
.card__cover {
- background: rgba(0, 0, 0, .3);
+ background: #d1d5db;
border-radius: 0.25rem;
height: 40%;
width: 100%;
diff --git a/styles/patterns/_chip.scss b/styles/patterns/_chip.scss
new file mode 100644
index 0000000..bfb310c
--- /dev/null
+++ b/styles/patterns/_chip.scss
@@ -0,0 +1,69 @@
+.chip {
+ /* Center the content */
+ align-items: center;
+ display: inline-flex;
+ justify-content: center;
+
+ /* Background color */
+ background-color: #d1d5db;
+
+ /* Rounded border */
+ border-radius: 9999px;
+
+ /* Spacing */
+ padding: 0.25rem 0.5rem;
+}
+
+.chip__content {
+ margin-right: 0.25rem;
+}
+
+.chip__button {
+ /* Reset */
+ background-color: transparent;
+ border-color: transparent;
+
+ /* Cursor */
+ cursor: pointer;
+
+ /* Size */
+ height: 1rem;
+ width: 1rem;
+
+ /* Used to position the inner */
+ position: relative;
+}
+
+.chip__button-line {
+ /* Background color */
+ background-color: #9ca3af;
+
+ /* Position */
+ position: absolute;
+
+ /* Size */
+ height: 1px;
+ width: 100%;
+}
+
+.chip__button-line--first {
+ /* Position */
+ left: 0px;
+ top: 50%;
+ transform: translate(0%, -50%) rotate(45deg);
+
+ /* Size */
+ height: 1px;
+ width: 100%;
+}
+
+.chip__button-line--second {
+ /* Position */
+ left: 50%;
+ top: 0px;
+ transform: translate(-50%, 0%) rotate(45deg);
+
+ /* Size */
+ height: 100%;
+ width: 1px;
+}
diff --git a/styles/patterns/_close-button.scss b/styles/patterns/_close-button.scss
index 2b5f19a..8b8cda6 100644
--- a/styles/patterns/_close-button.scss
+++ b/styles/patterns/_close-button.scss
@@ -16,7 +16,7 @@
.close-button__line {
/* Background color */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
/* Position */
position: absolute;
diff --git a/styles/patterns/_color-swatch.scss b/styles/patterns/_color-swatch.scss
index 203cecf..1c18b38 100644
--- a/styles/patterns/_color-swatch.scss
+++ b/styles/patterns/_color-swatch.scss
@@ -19,7 +19,7 @@
background-color: rgba(0, 0, 0, .2);
}
.swatch__item--3rd {
- background-color: rgba(0, 0, 0, .3);
+ background-color: #d1d5db;
}
.swatch__item--4th {
background-color: rgba(0, 0, 0, .4);
diff --git a/styles/patterns/_concave-corners.scss b/styles/patterns/_concave-corners.scss
index d289d7d..2160819 100644
--- a/styles/patterns/_concave-corners.scss
+++ b/styles/patterns/_concave-corners.scss
@@ -1,5 +1,5 @@
.concave-corners {
- background-color: rgba(0, 0, 0, .3);
+ background-color: #d1d5db;
/* Used to position the corners */
position: relative;
diff --git a/styles/patterns/_cookie-banner.scss b/styles/patterns/_cookie-banner.scss
index f7bbea7..b694eb5 100644
--- a/styles/patterns/_cookie-banner.scss
+++ b/styles/patterns/_cookie-banner.scss
@@ -1,5 +1,5 @@
.cookie-banner {
- border: 1px solid rgba(0,0,0,.3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
height: 100%;
@@ -10,7 +10,7 @@
}
.cookie-banner__content {
- border-top: 1px solid rgba(0,0,0,.3);
+ border-top: 1px solid #d1d5db;
/* Take available width */
flex: 1;
padding: 0 0.5rem;
diff --git a/styles/patterns/_corner-ribbon.scss b/styles/patterns/_corner-ribbon.scss
index 2c971c0..8414fce 100644
--- a/styles/patterns/_corner-ribbon.scss
+++ b/styles/patterns/_corner-ribbon.scss
@@ -1,6 +1,6 @@
.corner-ribbon {
position: relative;
- border: 1px solid rgba(0,0,0,.3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
height: 100%;
width: 100%;
@@ -34,7 +34,7 @@
transform: translate(-38px, -8px) rotate(-45deg);
/* Background color */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
/* Centerize the text content */
text-align: center;
diff --git a/styles/patterns/_curved-background.scss b/styles/patterns/_curved-background.scss
index f2e12fc..4f7b6c5 100644
--- a/styles/patterns/_curved-background.scss
+++ b/styles/patterns/_curved-background.scss
@@ -1,11 +1,11 @@
.curved-background {
- border: 1px solid rgba(0,0,0,.3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
height: 100%;
width: 100%;
}
.curved-background__curved {
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
border-bottom-left-radius: 50% 40%;
border-bottom-right-radius: 50% 40%;
diff --git a/styles/patterns/_diagonal-section.scss b/styles/patterns/_diagonal-section.scss
index a96b60d..67df6b1 100644
--- a/styles/patterns/_diagonal-section.scss
+++ b/styles/patterns/_diagonal-section.scss
@@ -20,5 +20,5 @@
transform: translate(0, -50%) skewY(-15deg);
/* Background color */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
}
\ No newline at end of file
diff --git a/styles/patterns/_docked-at-corner.scss b/styles/patterns/_docked-at-corner.scss
index 233bbea..88f9a97 100644
--- a/styles/patterns/_docked-at-corner.scss
+++ b/styles/patterns/_docked-at-corner.scss
@@ -2,7 +2,7 @@
position: relative;
height: 4rem;
width: 80%;
- border: 1px solid rgba(0, 0, 0, .3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
}
.docked-at-corner__docker {
diff --git a/styles/patterns/_dot-leader.scss b/styles/patterns/_dot-leader.scss
index 937c506..9cd57e0 100644
--- a/styles/patterns/_dot-leader.scss
+++ b/styles/patterns/_dot-leader.scss
@@ -9,7 +9,7 @@
.dot-leader__dots {
/* Bottom border */
- border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
+ border-bottom: 1px dotted #d1d5db;
/* Take remaining width */
flex: 1;
diff --git a/styles/patterns/_drop-area.scss b/styles/patterns/_drop-area.scss
index 469aa3e..ea81c86 100644
--- a/styles/patterns/_drop-area.scss
+++ b/styles/patterns/_drop-area.scss
@@ -9,6 +9,6 @@
justify-content: center;
/* Border */
- border: 0.25rem dashed rgba(0, 0, 0, 0.3);
+ border: 0.25rem dashed #d1d5db;
border-radius: 0.25rem;
}
\ No newline at end of file
diff --git a/styles/patterns/_drop-cap.scss b/styles/patterns/_drop-cap.scss
index 2800378..1185366 100644
--- a/styles/patterns/_drop-cap.scss
+++ b/styles/patterns/_drop-cap.scss
@@ -2,7 +2,7 @@
overflow: hidden;
}
.drop-cap:first-letter {
- border: 2px solid rgba(0, 0, 0, .3);
+ border: 2px solid #d1d5db;
/* Display at the left */
float: left;
diff --git a/styles/patterns/_feature-comparison.scss b/styles/patterns/_feature-comparison.scss
index 7e75009..ac1e503 100644
--- a/styles/patterns/_feature-comparison.scss
+++ b/styles/patterns/_feature-comparison.scss
@@ -3,7 +3,7 @@
display: flex;
/* Bottom border */
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
/* Spacing */
padding: 0.25rem 0;
diff --git a/styles/patterns/_fixed-at-corner.scss b/styles/patterns/_fixed-at-corner.scss
index 2e18fd3..667b4b0 100644
--- a/styles/patterns/_fixed-at-corner.scss
+++ b/styles/patterns/_fixed-at-corner.scss
@@ -1,7 +1,7 @@
.fixed-at-corner {
width: 100%;
height: 100%;
- border: 1px solid rgba(0, 0, 0, .3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
position: relative;
diff --git a/styles/patterns/_fixed-at-side.scss b/styles/patterns/_fixed-at-side.scss
index df96171..cdc8710 100644
--- a/styles/patterns/_fixed-at-side.scss
+++ b/styles/patterns/_fixed-at-side.scss
@@ -1,7 +1,7 @@
.fixed-at-side {
width: 100%;
height: 100%;
- border: 1px solid rgba(0, 0, 0, .3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
position: relative;
diff --git a/styles/patterns/_initial-avatar.scss b/styles/patterns/_initial-avatar.scss
index c234f53..075e68f 100644
--- a/styles/patterns/_initial-avatar.scss
+++ b/styles/patterns/_initial-avatar.scss
@@ -5,7 +5,7 @@
justify-content: center;
/* Colors */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
color: #fff;
/* Rounded border */
diff --git a/styles/patterns/_keyboard-shortcut.scss b/styles/patterns/_keyboard-shortcut.scss
index 534cdc9..feed3de 100644
--- a/styles/patterns/_keyboard-shortcut.scss
+++ b/styles/patterns/_keyboard-shortcut.scss
@@ -5,7 +5,7 @@
color: rgba(0, 0, 0, 0.7);
/* Bottom shadow */
- box-shadow: rgba(0, 0, 0, 0.3) 0px -4px 0px inset, rgba(0, 0, 0, 0.4) 0px 1px 1px;
+ box-shadow: #d1d5db 0px -4px 0px inset, rgba(0, 0, 0, 0.4) 0px 1px 1px;
/* Spacing */
padding: 0.25rem 0.5rem;
diff --git a/styles/patterns/_layered-card.scss b/styles/patterns/_layered-card.scss
index 281c848..7dfcf6a 100644
--- a/styles/patterns/_layered-card.scss
+++ b/styles/patterns/_layered-card.scss
@@ -7,7 +7,7 @@
}
.layered-card::before {
- background: rgba(0, 0, 0, 0.3);
+ background: #d1d5db;
content: '';
/* Position */
@@ -34,6 +34,6 @@
width: 100%;
z-index: 1;
- border: 1px solid rgba(0, 0, 0, .3);
+ border: 1px solid #d1d5db;
background: #FFF;
}
\ No newline at end of file
diff --git a/styles/patterns/_lined-paper.scss b/styles/patterns/_lined-paper.scss
index 8eaffc4..1d6e20a 100644
--- a/styles/patterns/_lined-paper.scss
+++ b/styles/patterns/_lined-paper.scss
@@ -1,6 +1,6 @@
.lined-paper {
/* Lined background */
- background-image: linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 0px);
+ background-image: linear-gradient(#d1d5db 1px, transparent 0px);
background-size: 100% 2em;
/*
diff --git a/styles/patterns/_notification.scss b/styles/patterns/_notification.scss
index 08acbe4..0331615 100644
--- a/styles/patterns/_notification.scss
+++ b/styles/patterns/_notification.scss
@@ -30,7 +30,7 @@
.notification__close-line {
/* Background color */
- background-color: rgba(0, 0, 0, 0.3);
+ background-color: #d1d5db;
/* Position */
position: absolute;
diff --git a/styles/patterns/_price-tag.scss b/styles/patterns/_price-tag.scss
index 16b1873..dee3ce6 100644
--- a/styles/patterns/_price-tag.scss
+++ b/styles/patterns/_price-tag.scss
@@ -1,5 +1,5 @@
:root {
- --price-tag-background: rgba(0, 0, 0, 0.3);
+ --price-tag-background: #d1d5db;
--price-tag-height: 2rem;
}
diff --git a/styles/patterns/_pricing-table.scss b/styles/patterns/_pricing-table.scss
index b51b7ea..40d3c3e 100644
--- a/styles/patterns/_pricing-table.scss
+++ b/styles/patterns/_pricing-table.scss
@@ -4,7 +4,7 @@
justify-content: center;
}
.pricing-table__column {
- border: 1px solid rgba(0, 0, 0, 0.3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
margin: 0 0.25rem;
padding: 0.25rem;
diff --git a/styles/patterns/_property-list.scss b/styles/patterns/_property-list.scss
index 32d55d9..4391a42 100644
--- a/styles/patterns/_property-list.scss
+++ b/styles/patterns/_property-list.scss
@@ -3,7 +3,7 @@
align-items: center;
display: flex;
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
/* Spacing */
margin: 0;
diff --git a/styles/patterns/_questions-and-answers.scss b/styles/patterns/_questions-and-answers.scss
index 5fd49f2..a4de586 100644
--- a/styles/patterns/_questions-and-answers.scss
+++ b/styles/patterns/_questions-and-answers.scss
@@ -2,7 +2,7 @@
width: 100%;
}
.questions-and-answers__item:not(:last-child) {
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
}
.questions-and-answers__header {
align-items: center;
diff --git a/styles/patterns/_ribbon.scss b/styles/patterns/_ribbon.scss
index 5174b77..1aeb216 100644
--- a/styles/patterns/_ribbon.scss
+++ b/styles/patterns/_ribbon.scss
@@ -34,13 +34,13 @@
.ribbon__side--l {
/* Position */
left: -1.5rem;
- border-color: rgba(0, 0, 0, .3) rgba(0, 0, 0, .3) rgba(0, 0, 0, .3) transparent;
+ border-color: #d1d5db #d1d5db #d1d5db transparent;
}
.ribbon__side--r {
/* Position */
right: -1.5rem;
- border-color: rgba(0, 0, 0, .3) transparent rgba(0, 0, 0, .3) rgba(0, 0, 0, .3);
+ border-color: #d1d5db transparent #d1d5db #d1d5db;
}
.ribbon__triangle {
diff --git a/styles/patterns/_separator.scss b/styles/patterns/_separator.scss
index 9780abf..b0d634a 100644
--- a/styles/patterns/_separator.scss
+++ b/styles/patterns/_separator.scss
@@ -28,7 +28,7 @@
}
.separator__separator {
- border-bottom: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom: 1px solid #d1d5db;
height: 1px;
width: 100%;
}
\ No newline at end of file
diff --git a/styles/patterns/_teardrop.scss b/styles/patterns/_teardrop.scss
index 418acfd..a747254 100644
--- a/styles/patterns/_teardrop.scss
+++ b/styles/patterns/_teardrop.scss
@@ -5,7 +5,7 @@
justify-content: center;
/* Border */
- border: 2px solid rgba(0, 0, 0, 0.3);
+ border: 2px solid #d1d5db;
border-radius: 0px 50% 50% 50%;
/* Angle at the top */
diff --git a/styles/patterns/_triangle-buttons.scss b/styles/patterns/_triangle-buttons.scss
index c4437e4..a082671 100644
--- a/styles/patterns/_triangle-buttons.scss
+++ b/styles/patterns/_triangle-buttons.scss
@@ -7,22 +7,22 @@
}
.triangle-buttons__triangle--t {
- border-color: transparent transparent rgba(0, 0, 0, 0.3);
+ border-color: transparent transparent #d1d5db;
border-width: 0 0.5rem 0.5rem;
}
.triangle-buttons__triangle--r {
- border-color: transparent transparent transparent rgba(0, 0, 0, 0.3);
+ border-color: transparent transparent transparent #d1d5db;
border-width: 0.5rem 0 0.5rem 0.5rem;
}
.triangle-buttons__triangle--b {
- border-color: rgba(0, 0, 0, 0.3) transparent transparent;
+ border-color: #d1d5db transparent transparent;
border-width: 0.5rem 0.5rem 0;
}
.triangle-buttons__triangle--l {
- border-color: transparent rgba(0, 0, 0, 0.3) transparent transparent;
+ border-color: transparent #d1d5db transparent transparent;
border-width: 0.5rem 0.5rem 0.5rem 0;
}
diff --git a/styles/patterns/_voting.scss b/styles/patterns/_voting.scss
index 9bc3598..4c2738e 100644
--- a/styles/patterns/_voting.scss
+++ b/styles/patterns/_voting.scss
@@ -1,5 +1,5 @@
.voting {
- border: 1px solid rgba(0, 0, 0, 0.3);
+ border: 1px solid #d1d5db;
border-radius: 0.25rem;
display: flex;
flex-direction: column;
@@ -33,12 +33,12 @@
}
.voting__triangle--up {
- border-color: transparent transparent rgba(0, 0, 0, 0.3);
+ border-color: transparent transparent #d1d5db;
border-width: 0 0.5rem 0.5rem;
}
.voting__triangle--down {
- border-color: rgba(0, 0, 0, 0.3) transparent transparent;
+ border-color: #d1d5db transparent transparent;
border-width: 0.5rem 0.5rem 0px;
}