Skip to content

Commit

Permalink
Migrated NeoIcon to tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
shashkovdanil committed Dec 1, 2023
1 parent 8a32d11 commit 3245680
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
23 changes: 6 additions & 17 deletions libs/ui/src/components/NeoIcon/NeoIcon.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
@import '../../scss/theme';

@import '@oruga-ui/oruga-next/src/scss/utilities/_expressions.scss';
@import '@oruga-ui/oruga-next/src/scss/utilities/_variables.scss';
@import '@oruga-ui/oruga-next/src/scss/utilities/_animations.scss';
@import '@oruga-ui/oruga-next/src/scss/utilities/_helpers.scss';
@import '@oruga-ui/oruga-next/src/scss/components/_icon.scss';

.o-icon--success {
@include ktheme() {
color: theme('k-green');
}
@apply text-k-green;
}

.o-icon--primary {
@include ktheme() {
color: theme('k-primary');
}
@apply text-k-primary;
}

.o-icon--k-grey {
@include ktheme() {
color: theme('k-grey');
}
@apply text-k-grey;
}


.o-icon--spin {
animation-name: icon-spin;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: var(--oruga-icon-spin-duration, 1.5s)
}
@apply animate-icon-spin;
}
4 changes: 4 additions & 0 deletions libs/ui/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ module.exports = {
lineHeight: {
4.5: '1.125rem',
},
animation: {
'icon-spin':
'icon-spin infinite linear var(--oruga-icon-spin-duration, 1.5s)',
},
},
},
plugins: [],
Expand Down

0 comments on commit 3245680

Please sign in to comment.