Utility families

Effects and transitions

Opacity, shadows, transitions, translation, scale, rotation and skew.

opacity

o:
Class CSS properties
o: opacity
  • Theme tokens: opacity
  • Arbitrary values: yes, in brackets
o:50
.o\:50 {
  opacity: 0.5;
}

box-shadow

sh:
Class CSS properties
sh: box-shadow
  • Theme tokens: shadow
  • Arbitrary values: yes, in brackets
sh:xl
.sh\:xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

transition

tr:
Value Declarations
tr:none transition-property: none
tr:all transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:colors transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:opacity transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:shadow transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:transform transition-property: transform, translate, scale, rotate; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:filter transition-property: filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:default transition-property: color, background-color, border-color, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms
tr:none
.tr\:none {
  transition-property: none;
}
tr:all
.tr\:all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

transition-duration

dur:
Class CSS properties
dur: transition-duration
  • Arbitrary values: yes, in brackets
dur:50
.dur\:50 {
  transition-duration: 50ms;
}

transition-timing-function

ease:
Class CSS properties
ease: transition-timing-function
  • Keywords: linear in out in-out
  • Arbitrary values: yes, in brackets
ease:linear
.ease\:linear {
  transition-timing-function: linear;
}

cursor

cur:
Class CSS properties
cur: cursor
  • Keywords: auto default pointer text move wait grab not-allowed
  • Arbitrary values: no
cur:auto
.cur\:auto {
  cursor: auto;
}

translate-x

tx:
Class CSS properties
tx: --jx-tx
  • Theme tokens: spacing
  • Keywords: full 1/2 auto
  • Arbitrary values: yes, in brackets
  • Negative values: yes
tx:full
.tx\:full {
  --jx-tx: 100%;
  translate: var(--jx-tx, 0) var(--jx-ty, 0);
}

@property --jx-tx {
  syntax: "*";
  inherits: false;
}
tx:8
.tx\:8 {
  --jx-tx: 2rem;
  translate: var(--jx-tx, 0) var(--jx-ty, 0);
}

@property --jx-tx {
  syntax: "*";
  inherits: false;
}

translate-y

ty:
Class CSS properties
ty: --jx-ty
  • Theme tokens: spacing
  • Keywords: full 1/2 auto
  • Arbitrary values: yes, in brackets
  • Negative values: yes
ty:full
.ty\:full {
  --jx-ty: 100%;
  translate: var(--jx-tx, 0) var(--jx-ty, 0);
}

@property --jx-ty {
  syntax: "*";
  inherits: false;
}
ty:8
.ty\:8 {
  --jx-ty: 2rem;
  translate: var(--jx-tx, 0) var(--jx-ty, 0);
}

@property --jx-ty {
  syntax: "*";
  inherits: false;
}

scale

sc:
Class CSS properties
sc: scale
  • Keywords: 0 50 75 90 95 100 105 110 125 150
  • Arbitrary values: yes, in brackets
sc:0
.sc\:0 {
  scale: 0;
}

rotate

rot:
Class CSS properties
rot: rotate
  • Keywords: none
  • Arbitrary values: yes, in brackets
  • Negative values: yes
rot:none
.rot\:none {
  rotate: none;
}
rot:50
.rot\:50 {
  rotate: 50deg;
}

skew

skx: sky:
Class CSS properties
skx: --jx-skew-x
sky: --jx-skew-y
  • Arbitrary values: yes, in brackets
  • Negative values: yes
skx:50
.skx\:50 {
  --jx-skew-x: 50deg;
  transform: skewX(var(--jx-skew-x, 0)) skewY(var(--jx-skew-y, 0));
}

@property --jx-skew-x {
  syntax: "*";
  inherits: false;
}
sky:4
.sky\:4 {
  --jx-skew-y: 4deg;
  transform: skewX(var(--jx-skew-x, 0)) skewY(var(--jx-skew-y, 0));
}

@property --jx-skew-y {
  syntax: "*";
  inherits: false;
}

transform-origin

origin:
Class CSS properties
origin: transform-origin
  • Keywords: center top bottom left right top-left top-right bottom-left bottom-right
  • Arbitrary values: yes, in brackets
origin:center
.origin\:center {
  transform-origin: center;
}