Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions devbench/src/component/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export function SelectTest() {
return (
<DyvixSelect
animation={DYVIX_GLOBAL_ANIMATION.GLITCH}
// theme={DYVIX_GLOBAL_THEME.SINGULARITY}
theme="Blade"
placeholder={'number'}
background={'Red'}
dropdownBackground={'Red'}
className="ex-select"
type="select"
elements={[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}
Expand Down
31 changes: 31 additions & 0 deletions src/components/select/dependencies/style/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,37 @@
.dyvix-select-dropdown-industrial::-webkit-scrollbar-thumb {
background: #0a1429;
}
/* Blade Theme */
.dyvix-select-blade .dyvix-select-input-blade {
font-family: 'Geist';
border: 2px solid #374151;
border-radius: 8px;
background-color: #0a1429;
padding: 0.75rem;
color: #ffffff;
transition:
box-shadow ease-in-out 0.4s,
border-color ease-in-out 0.3s,
background-color ease-in-out 0.2s;
}
.dyvix-select-blade .dyvix-select-input-blade:hover {
border-color: #6a6a6a;
background-color: #101f39;
}
.dyvix-select-blade .dyvix-select-dropdown-blade {
margin-top: 0.5rem;
border: 1px solid #374151;
border-radius: 8px;
background-color: #0a1429;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
padding: 0.5rem;
}

.dyvix-select-blade .dyvix-select-dropdown-blade li:hover {
background: rgba(255, 69, 0, 0.15);
color: #ffffff;
cursor: pointer;
}
/* Ember Theme */
.dyvix-select-ember .dyvix-select-input-ember {
background: #0f0a08;
Expand Down
7 changes: 7 additions & 0 deletions src/components/select/dependencies/themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"dropdown-class": "dyvix-select-dropdown-industrial",
"default-animation": "fade"
},
{
"theme": "Blade",
"class": "dyvix-select-blade",
"input-class": "dyvix-select-input-blade",
"dropdown-class": "dyvix-select-dropdown-blade",
"default-animation": "drift"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to separate Blade and Ember theme registries.

},
{
"theme": "Ember",
"class": "dyvix-select-ember",
Expand Down