Skip to content

Commit

Permalink
add bg-primary-color for lara #201
Browse files Browse the repository at this point in the history
  • Loading branch information
atakantepe committed May 4, 2024
1 parent c565c45 commit bac1025
Show file tree
Hide file tree
Showing 6 changed files with 1,049 additions and 1,024 deletions.
8 changes: 4 additions & 4 deletions presets/aura/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export default {
'border border-primary-color': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain
},
// Primary Text Button
{ 'text-primary-500 dark:text-primary-400': props.text && props.severity === null && !props.plain },
{ 'text-primary-color': props.text && props.severity === null && !props.plain },
// Primary Outlined Button
{ 'text-primary-500 border border-primary-500 hover:bg-primary-300/10': props.outlined && props.severity === null && !props.plain },
{ 'text-primary-color border border-primary-color': props.outlined && props.severity === null && !props.plain },

// Secondary Button
{
Expand Down Expand Up @@ -132,7 +132,7 @@ export default {
'focus:outline-none focus:outline-offset-0 focus:ring-1',

// Link
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': props.link },
{ 'focus:ring-primary-color': props.link },

// Plain
{ 'hover:bg-gray-600 hover:border-gray-600': props.plain && !props.outlined && !props.text },
Expand All @@ -141,7 +141,7 @@ export default {

// Primary
{ 'hover:bg-primary-hover-color hover:border-primary-hover-color': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain },
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': props.severity === null },
{ 'focus:ring-primary-color': props.severity === null },
// Text & Outlined Button
{ 'hover:bg-primary-300/10': (props.text || props.outlined) && props.severity === null && !props.plain },

Expand Down
12 changes: 5 additions & 7 deletions presets/aura/speeddial/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default {
// Shapes
'rounded-full',
'shadow-md',

// Link Button
{ 'text-primary-600 bg-transparent border-transparent': props.link },

Expand All @@ -44,9 +43,9 @@ export default {
'border border-primary-color': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain
},
// Primary Text Button
{ 'text-primary-500 dark:text-primary-400': props.text && props.severity === null && !props.plain },
{ 'text-primary-color': props.text && props.severity === null && !props.plain },
// Primary Outlined Button
{ 'text-primary-500 border border-primary-500 hover:bg-primary-300/10': props.outlined && props.severity === null && !props.plain },
{ 'text-primary-color border border-primary-color': props.outlined && props.severity === null && !props.plain },

// Secondary Button
{
Expand Down Expand Up @@ -129,7 +128,7 @@ export default {
'focus:outline-none focus:outline-offset-0 focus:ring-1',

// Link
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': props.link },
{ 'focus:ring-primary-color': props.link },

// Plain
{ 'hover:bg-gray-600 hover:border-gray-600': props.plain && !props.outlined && !props.text },
Expand All @@ -138,7 +137,7 @@ export default {

// Primary
{ 'hover:bg-primary-hover-color hover:border-primary-hover-color': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain },
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': props.severity === null },
{ 'focus:ring-primary-color': props.severity === null },
// Text & Outlined Button
{ 'hover:bg-primary-300/10': (props.text || props.outlined) && props.severity === null && !props.plain },

Expand Down Expand Up @@ -189,7 +188,6 @@ export default {

// Transitions
'transition duration-200 ease-in-out',
parent.state.d_visible ? 'rotate-45' : 'rotate-0',

// Misc
'cursor-pointer overflow-hidden select-none'
Expand All @@ -198,7 +196,7 @@ export default {
label: ({ props }) => ({
class: [
'duration-200',
'font-bold',
'font-medium',
{
'hover:underline': props.link
},
Expand Down
16 changes: 8 additions & 8 deletions presets/aura/splitbutton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default {
'border border-primary-color': !parent.props.link && parent.props.severity === null && !parent.props.text && !parent.props.outlined && !parent.props.plain
},
// Primary Text Button
{ 'text-primary-500 dark:text-primary-400': parent.props.text && parent.props.severity === null && !parent.props.plain },
{ 'text-primary-color': parent.props.text && parent.props.severity === null && !parent.props.plain },
// Primary Outlined Button
{ 'text-primary-500 border border-primary-500 hover:bg-primary-300/10': parent.props.outlined && parent.props.severity === null && !parent.props.plain },
{ 'text-primary-color border border-primary-color': parent.props.outlined && parent.props.severity === null && !parent.props.plain },

// Secondary Button
{
Expand Down Expand Up @@ -145,7 +145,7 @@ export default {
'focus:outline-none focus:outline-offset-0 focus:ring-1',

// Link
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': parent.props.link },
{ 'focus:ring-primary-color': parent.props.link },

// Plain
{ 'hover:bg-gray-600 hover:border-gray-600': parent.props.plain && !parent.props.outlined && !parent.props.text },
Expand All @@ -154,7 +154,7 @@ export default {

// Primary
{ 'hover:bg-primary-hover-color hover:border-primary-hover-color': !parent.props.link && parent.props.severity === null && !parent.props.text && !parent.props.outlined && !parent.props.plain },
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': parent.props.severity === null },
{ 'focus:ring-primary-color': parent.props.severity === null },
// Text & Outlined Button
{ 'hover:bg-primary-300/10': (parent.props.text || parent.props.outlined) && parent.props.severity === null && !parent.props.plain },

Expand Down Expand Up @@ -263,9 +263,9 @@ export default {
'border border-primary-color': !parent.props.link && parent.props.severity === null && !parent.props.text && !parent.props.outlined && !parent.props.plain
},
// Primary Text Button
{ 'text-primary-500 dark:text-primary-400': parent.props.text && parent.props.severity === null && !parent.props.plain },
{ 'text-primary-color': parent.props.text && parent.props.severity === null && !parent.props.plain },
// Primary Outlined Button
{ 'text-primary-500 border border-primary-500 hover:bg-primary-300/10': parent.props.outlined && parent.props.severity === null && !parent.props.plain },
{ 'text-primary-color border border-primary-color': parent.props.outlined && parent.props.severity === null && !parent.props.plain },

// Secondary Button
{
Expand Down Expand Up @@ -348,7 +348,7 @@ export default {
'focus:outline-none focus:outline-offset-0 focus:ring-1',

// Link
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': parent.props.link },
{ 'focus:ring-primary-color': parent.props.link },

// Plain
{ 'hover:bg-gray-600 hover:border-gray-600': parent.props.plain && !parent.props.outlined && !parent.props.text },
Expand All @@ -357,7 +357,7 @@ export default {

// Primary
{ 'hover:bg-primary-hover-color hover:border-primary-hover-color': !parent.props.link && parent.props.severity === null && !parent.props.text && !parent.props.outlined && !parent.props.plain },
{ 'focus:ring-primary-500 dark:focus:ring-primary-400': parent.props.severity === null },
{ 'focus:ring-primary-color': parent.props.severity === null },
// Text & Outlined Button
{ 'hover:bg-primary-300/10': (parent.props.text || parent.props.outlined) && parent.props.severity === null && !parent.props.plain },

Expand Down

0 comments on commit bac1025

Please sign in to comment.