Skip to content

Commit

Permalink
feat: create tag plugin component (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Sacha Stafyniak <sacha@digisquad.io>
  • Loading branch information
bpsmartdesign and stafyniaksacha authored Jul 23, 2023
1 parent 2d75a08 commit 5faae35
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 0 deletions.
162 changes: 162 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2026,6 +2026,168 @@ export default withShurikenUI({
bgHover: 'black/20',
bgHoverDark: 'white/20',
},
tag: {
space: '3',
font: 'sans',
duration: '300',
tagSM: {
space: '1',
text: '[0.65rem]',
},
tagMD: {
space: '1.5',
text: 'xs',
},
rounded: {
smooth: 'md',
curved: 'lg',
full: 'full',
},
solid: {
default: {
text: 'muted-600',
textDark: 'muted-300',
bg: 'white',
bgDark: 'muted-800',
border: 'muted-300',
borderDark: 'muted-700',
shadow: 'xl',
shadowHover: 'xl',
},
muted: {
text: 'muted-500',
textDark: 'muted-200',
bg: 'muted-100',
bgDark: 'muted-800',
shadow: 'xl',
shadowHover: 'xl',
},
primary: {
text: 'white',
bg: 'primary-500',
bgDark: 'primary-500',
shadow: {
size: 'xl',
color: 'primary-500/30',
colorDark: 'primary-500/20',
},
shadowHover: {
size: 'xl',
color: 'primary-500/30',
colorDark: 'primary-500/20',
},
},
info: {
text: 'white',
bg: 'info-500',
bgDark: 'info-500',
shadow: {
size: 'xl',
color: 'info-500/30',
colorDark: 'info-500/20',
},
shadowHover: {
size: 'xl',
color: 'info-500/30',
colorDark: 'info-500/20',
},
},
success: {
text: 'white',
bg: 'success-500',
bgDark: 'success-500',
shadow: {
size: 'xl',
color: 'success-500/30',
colorDark: 'success-500/20',
},
shadowHover: {
size: 'xl',
color: 'success-500/30',
colorDark: 'success-500/20',
},
},
warning: {
text: 'white',
bg: 'warning-500',
bgDark: 'warning-500',
shadow: {
size: 'xl',
color: 'warning-500/30',
colorDark: 'warning-500/20',
},
shadowHover: {
size: 'xl',
color: 'warning-500/30',
colorDark: 'warning-500/20',
},
},
danger: {
text: 'white',
bg: 'danger-500',
bgDark: 'danger-500',
shadow: {
size: 'xl',
color: 'danger-500/30',
colorDark: 'danger-500/20',
},
shadowHover: {
size: 'xl',
color: 'danger-500/30',
colorDark: 'danger-500/20',
},
},
},
pastel: {
primary: {
bg: 'primary-500/20',
text: 'primary-500',
bgDark: 'primary-500/10',
},
info: {
bg: 'info-500/20',
text: 'info-500',
bgDark: 'info-500/10',
},
success: {
bg: 'success-500/20',
text: 'success-500',
bgDark: 'success-500/10',
},
warning: {
bg: 'warning-500/20',
text: 'warning-500',
bgDark: 'warning-500/10',
},
danger: {
bg: 'danger-500/20',
text: 'danger-500',
bgDark: 'danger-500/10',
},
},
outline: {
primary: {
border: 'primary-500',
text: 'primary-500',
},
info: {
border: 'info-500',
text: 'info-500',
},
success: {
border: 'success-500',
text: 'success-500',
},
warning: {
border: 'warning-500',
text: 'warning-500',
},
danger: {
border: 'danger-500',
text: 'danger-500',
},
},
},
text: {
textXS: 'xs',
textSM: 'sm',
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import switchThin from './switch-thin'
import switchBall from './switch-ball'
import textarea from './textarea'
import tooltip from './tooltip'
import tag from './tag'
import breadcrumb from './breadcrumb'

const components = [
Expand Down Expand Up @@ -65,6 +66,7 @@ const components = [
radio,
progressCircle,
slimscroll,
tag,
text,
switchThin,
switchBall,
Expand Down
Loading

0 comments on commit 5faae35

Please sign in to comment.