-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from babylonlabs-io/tw-prefixes
feat: add tailwind prefixes
- Loading branch information
Showing
23 changed files
with
97 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
.bbn-avatar { | ||
@apply inline-flex items-center justify-center overflow-hidden; | ||
@apply b-inline-flex b-items-center b-justify-center b-overflow-hidden; | ||
|
||
&-img { | ||
@apply size-full object-cover object-center; | ||
@apply b-size-full b-object-cover b-object-center; | ||
} | ||
|
||
&-tiny { | ||
@apply size-[1.125rem]; | ||
@apply b-size-[1.125rem]; | ||
} | ||
|
||
&-small { | ||
@apply size-6; | ||
@apply b-size-6; | ||
} | ||
|
||
&-medium { | ||
@apply size-8; | ||
@apply b-size-8; | ||
} | ||
|
||
&-large { | ||
@apply size-10; | ||
@apply b-size-10; | ||
} | ||
|
||
&-circular { | ||
@apply rounded-full; | ||
@apply b-rounded-full; | ||
} | ||
|
||
&-rounded { | ||
@apply rounded; | ||
@apply b-rounded; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.bbn-avatar-group { | ||
@apply flex -space-x-2.5; | ||
@apply b-flex -b-space-x-2.5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
.bbn-btn { | ||
@apply rounded tracking-0.4 transition-colors duration-200; | ||
@apply b-rounded b-tracking-0.4 b-transition-colors b-duration-200; | ||
|
||
&-fluid { | ||
@apply w-full; | ||
@apply b-w-full; | ||
} | ||
|
||
&-contained { | ||
&.bbn-btn-primary { | ||
@apply bg-primary-light text-secondary-contrast hover:bg-primary-main disabled:bg-primary/12; | ||
@apply b-bg-primary-light b-text-secondary-contrast hover:b-bg-primary-main disabled:b-bg-primary/12; | ||
} | ||
|
||
&.bbn-btn-secondary { | ||
@apply bg-secondary-main text-secondary-contrast hover:bg-secondary-dark disabled:bg-primary/12; | ||
@apply b-bg-secondary-main b-text-secondary-contrast hover:b-bg-secondary-dark disabled:b-bg-primary/12; | ||
} | ||
} | ||
|
||
&-outlined { | ||
&.bbn-btn-primary { | ||
@apply border border-primary-light text-primary-main hover:border-primary hover:bg-primary/10; | ||
@apply b-border b-border-primary-light b-text-primary-main hover:b-border-primary hover:b-bg-primary/10; | ||
} | ||
|
||
&.bbn-btn-secondary { | ||
@apply border border-secondary-main text-secondary-main hover:border-secondary-light hover:bg-secondary-light/10; | ||
@apply b-border b-border-secondary-main b-text-secondary-main hover:b-border-secondary-light hover:b-bg-secondary-light/10; | ||
} | ||
} | ||
|
||
&-large { | ||
@apply h-10 px-6 text-base tracking-0.5; | ||
@apply b-h-10 b-px-6 b-text-base b-tracking-0.5; | ||
} | ||
|
||
&-medium { | ||
@apply h-9 px-4 text-sm tracking-0.5; | ||
@apply b-h-9 b-px-4 b-text-sm b-tracking-0.5; | ||
} | ||
|
||
&-small { | ||
@apply h-8 px-2.5 text-xs tracking-0.5; | ||
@apply b-h-8 b-px-2.5 b-text-xs b-tracking-0.5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.bbn-btn-icon { | ||
@apply inline-flex size-10 items-center justify-center rounded border border-current text-primary-light; | ||
@apply b-inline-flex b-size-10 b-items-center b-justify-center b-rounded b-border b-border-current b-text-primary-light; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.bbn-chip { | ||
@apply inline-flex items-center justify-center rounded-full bg-primary-contrast px-2.5 py-1 text-[0.5rem] leading-4 tracking-0.4 text-primary-light; | ||
@apply b-inline-flex b-items-center b-justify-center b-rounded-full b-bg-primary-contrast b-px-2.5 b-py-1 b-text-[0.5rem] b-leading-4 b-tracking-0.4 b-text-primary-light; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.bbn-backdrop { | ||
@apply fixed inset-0 z-40 flex items-center justify-center bg-primary/50 transition-opacity duration-500; | ||
@apply b-fixed b-inset-0 b-z-40 b-flex b-items-center b-justify-center b-bg-primary/50 b-transition-opacity b-duration-500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.bbn-dialog { | ||
@apply b-rounded b-border b-border-primary-light/20 b-bg-[#ffffff] b-p-6; | ||
|
||
&-wrapper { | ||
@apply b-fixed b-left-1/2 b-top-1/2 b-z-50 b-max-w-full -b-translate-x-1/2 -b-translate-y-1/2; | ||
} | ||
|
||
&-body { | ||
@apply custom-scrollbar b-min-h-0 b-flex-1 b-overflow-y-auto; | ||
} | ||
|
||
&-header { | ||
@apply b-flex b-items-center b-justify-between b-gap-2; | ||
} | ||
|
||
&-footer { | ||
@apply b-shrink-0; | ||
} | ||
|
||
&-mobile { | ||
@apply b-fixed b-inset-x-0 b-bottom-0 b-z-50 b-flex b-flex-col b-rounded-t-3xl b-bg-[#ffffff] b-px-4 b-pb-4 b-pt-6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
.bbn { | ||
&-h1 { | ||
@apply text-8xl leading-[7rem]; | ||
@apply b-text-8xl b-leading-[7rem]; | ||
} | ||
&-h2 { | ||
@apply text-6xl leading-[4.5rem]; | ||
@apply b-text-6xl b-leading-[4.5rem]; | ||
} | ||
&-h3 { | ||
@apply text-5xl leading-[3.5rem]; | ||
@apply b-text-5xl b-leading-[3.5rem]; | ||
} | ||
&-h4 { | ||
@apply text-[2.125rem] leading-[2.625rem] tracking-0.25; | ||
@apply b-text-[2.125rem] b-leading-[2.625rem] b-tracking-0.25; | ||
} | ||
&-h5 { | ||
@apply text-2xl; | ||
@apply b-text-2xl; | ||
} | ||
&-h6 { | ||
@apply text-xl leading-8 tracking-0.15; | ||
@apply b-text-xl b-leading-8 b-tracking-0.15; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
.bbn-toggle { | ||
@apply relative inline-block transition-colors duration-200; | ||
@apply b-relative b-inline-block b-transition-colors b-duration-200; | ||
|
||
&:not(&-disabled) { | ||
@apply text-primary-light hover:text-primary-main; | ||
@apply b-text-primary-light hover:b-text-primary-main; | ||
} | ||
|
||
&-disabled { | ||
@apply text-primary/12; | ||
@apply b-text-primary/12; | ||
} | ||
} | ||
|
||
.bbn-toggle-input { | ||
@apply absolute inset-0 z-[1] opacity-0; | ||
@apply b-absolute b-inset-0 b-z-[1] b-opacity-0; | ||
|
||
&:not(:disabled) { | ||
@apply cursor-pointer; | ||
@apply b-cursor-pointer; | ||
} | ||
|
||
&:disabled { | ||
@apply cursor-default; | ||
@apply b-cursor-default; | ||
} | ||
} | ||
|
||
.bbn-toggle-label { | ||
@apply inline-flex h-5 items-center gap-4; | ||
@apply b-inline-flex b-h-5 b-items-center b-gap-4; | ||
} | ||
|
||
.bbn-toggle-left { | ||
&.bbn-toggle-label { | ||
@apply flex-row; | ||
@apply b-flex-row; | ||
} | ||
} | ||
|
||
.bbn-toggle-right { | ||
&.bbn-toggle-label { | ||
@apply flex-row-reverse; | ||
@apply b-flex-row-reverse; | ||
} | ||
} |
Oops, something went wrong.