Skip to content

Commit

Permalink
update font and lineheights for lara preset #201
Browse files Browse the repository at this point in the history
  • Loading branch information
atakantepe committed May 2, 2024
1 parent c992e49 commit ca97189
Show file tree
Hide file tree
Showing 23 changed files with 5,416 additions and 5,428 deletions.
86 changes: 43 additions & 43 deletions presets/aura/badgedirective/index.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
export default {
root: ({ context }) => ({
class: [
// Font
'font-bold font-sans',
'text-xs leading-5',

// Alignment
'flex items-center justify-center',
'text-center',

// Position
'absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 origin-top-right',

// Size
'm-0',
{
'p-0': context.nogutter || context.dot,
'px-2': !context.nogutter && !context.dot,
'min-w-[0.5rem] w-2 h-2': context.dot,
'min-w-[1.5rem] h-6': !context.dot
},

// Shape
{
'rounded-full': context.nogutter || context.dot,
'rounded-[10px]': !context.nogutter && !context.dot
},

// Color
'text-white dark:text-surface-900',
{
'bg-primary-500 dark:bg-primary-400': !context.info && !context.success && !context.warning && !context.danger && !context.help && !context.secondary,
'bg-surface-500 dark:bg-surface-400': context.secondary,
'bg-green-500 dark:bg-green-400': context.success,
'bg-blue-500 dark:bg-blue-400': context.info,
'bg-orange-500 dark:bg-orange-400': context.warning,
'bg-purple-500 dark:bg-purple-400': context.help,
'bg-red-500 dark:bg-red-400': context.danger
}
]
})
};
export default {
root: ({ context }) => ({
class: [
// Font
'font-bold',
'text-xs leading-5',

// Alignment
'flex items-center justify-center',
'text-center',

// Position
'absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 origin-top-right',

// Size
'm-0',
{
'p-0': context.nogutter || context.dot,
'px-2': !context.nogutter && !context.dot,
'min-w-[0.5rem] w-2 h-2': context.dot,
'min-w-[1.5rem] h-6': !context.dot
},

// Shape
{
'rounded-full': context.nogutter || context.dot,
'rounded-[10px]': !context.nogutter && !context.dot
},

// Color
'text-white dark:text-surface-900',
{
'bg-primary-500 dark:bg-primary-400': !context.info && !context.success && !context.warning && !context.danger && !context.help && !context.secondary,
'bg-surface-500 dark:bg-surface-400': context.secondary,
'bg-green-500 dark:bg-green-400': context.success,
'bg-blue-500 dark:bg-blue-400': context.info,
'bg-orange-500 dark:bg-orange-400': context.warning,
'bg-purple-500 dark:bg-purple-400': context.help,
'bg-red-500 dark:bg-red-400': context.danger
}
]
})
};
252 changes: 126 additions & 126 deletions presets/aura/colorpicker/index.js
Original file line number Diff line number Diff line change
@@ -1,126 +1,126 @@
export default {
root: ({ props }) => ({
class: [
// Display
'inline-block',

// Misc
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
]
}),
input: {
class: [
// Font
'font-sans text-base ',

// Spacing
'm-0',
'p-0',

//Size
'w-6 h-6',

// Shape
'rounded-md',

// Colors
'bg-surface-0 dark:bg-surface-900',
'border border-surface-300 dark:border-surface-700',

// States
'hover:border-surface-400 dark:hover:border-surface-600',
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',

// Transition
'transition-colors duration-200',

// Misc
'cursor-pointer'
]
},
panel: ({ props }) => ({
class: [
// Position & Size
{
'relative h-[166px] w-[193px]': props.inline,
'absolute h-[166px] w-[193px]': !props.inline
},

// Shape
'shadow-md border',

// Colors
'bg-surface-800 dark:bg-surface-900 border-surface-600 dark:border-surface-700'
]
}),
selector: {
class: [
// Position
'absolute top-[8px] left-[8px]',

// Size
'h-[150px] w-[150px]'
]
},
color: {
class: [
// Size
'h-[150px] w-[150px]'
],
style: 'background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)'
},
colorhandle: {
class: [
'absolute',

// Shape
'rounded-full border border-solid',

// Size
'h-[10px] w-[10px]',

// Spacing
'-ml-[5px] -mt-[5px]',

// Colors
'border-white',

// Misc
'cursor-pointer opacity-85'
]
},
hue: {
class: [
// Position
'absolute top-[8px] left-[167px]',

// Size
'h-[150px] w-[17px]',

// Opacity
'opacity-85'
],
style: 'background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)'
},
huehandle: {
class: [
// Position
'absolute left-0 -ml-[2px] -mt-[5px]',

// Size
'h-[10px] w-[21px]',

// Shape
'border-solid border-2',

// Misc
'cursor-pointer opacity-85'
]
},
transition: {
enterFromClass: 'opacity-0 scale-y-[0.8]',
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
leaveToClass: 'opacity-0'
}
};
export default {
root: ({ props }) => ({
class: [
// Display
'inline-block',

// Misc
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
]
}),
input: {
class: [
// Font
'text-base leading-none',

// Spacing
'm-0',
'p-0',

//Size
'w-6 h-6',

// Shape
'rounded-md',

// Colors
'bg-surface-0 dark:bg-surface-900',
'border border-surface-300 dark:border-surface-700',

// States
'hover:border-surface-400 dark:hover:border-surface-600',
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',

// Transition
'transition-colors duration-200',

// Misc
'cursor-pointer'
]
},
panel: ({ props }) => ({
class: [
// Position & Size
{
'relative h-[166px] w-[193px]': props.inline,
'absolute h-[166px] w-[193px]': !props.inline
},

// Shape
'shadow-md border',

// Colors
'bg-surface-800 dark:bg-surface-900 border-surface-600 dark:border-surface-700'
]
}),
selector: {
class: [
// Position
'absolute top-[8px] left-[8px]',

// Size
'h-[150px] w-[150px]'
]
},
color: {
class: [
// Size
'h-[150px] w-[150px]'
],
style: 'background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)'
},
colorhandle: {
class: [
'absolute',

// Shape
'rounded-full border border-solid',

// Size
'h-[10px] w-[10px]',

// Spacing
'-ml-[5px] -mt-[5px]',

// Colors
'border-white',

// Misc
'cursor-pointer opacity-85'
]
},
hue: {
class: [
// Position
'absolute top-[8px] left-[167px]',

// Size
'h-[150px] w-[17px]',

// Opacity
'opacity-85'
],
style: 'background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)'
},
huehandle: {
class: [
// Position
'absolute left-0 -ml-[2px] -mt-[5px]',

// Size
'h-[10px] w-[21px]',

// Shape
'border-solid border-2',

// Misc
'cursor-pointer opacity-85'
]
},
transition: {
enterFromClass: 'opacity-0 scale-y-[0.8]',
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
leaveToClass: 'opacity-0'
}
};
7 changes: 2 additions & 5 deletions presets/aura/paginator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ export default {
input: {
class: [
//Font
'font-sans',
'leading-5',
'leading-[normal]',

// Display
'block',
Expand Down Expand Up @@ -332,7 +331,6 @@ export default {
'relative',

//Font
'font-sans',
'leading-none',

// Display
Expand Down Expand Up @@ -405,8 +403,7 @@ export default {
input: {
class: [
//Font
'font-sans',
'leading-5',
'leading-[normal]',

// Display
'block',
Expand Down

0 comments on commit ca97189

Please sign in to comment.