utensils
hi!
this is a simple svelte ui/style package called
utensils
install with
pnpm add -D @pierogis/utensils
and include
import '@pierogis/utensils/styles/pierogis.css';
in a top level layout script
components
a
Card
within a
Card
within a
Card
!
a
CardsGrid
within a
Card
within a
CardsGrid
!
a
Divider
can separate horizontally
or vertically
a
Section
section title
doesn't really do much
columnGap
rem
px
rowGap
rem
px
column
row
an
ImageDisplay
can definitely display an image wrapped in a border
width
rem
px
height
rem
px
a
Shine
can cover anything in an undulating sheen
(try hovering too)
use random length
max x length
min x length
max y length
min y length
use random offset
unhover opacity
blur
color
a
ThemeToggle
can force light or dark mode
(and defaults to the os setting)
Nest (at any level) in a
ThemeProvider
for functionality
an
Interactable
applies an outer box shadow on hover
and jiggles on mousedown
classes
.border
wraps anything with this cheesy two tone border
.inset
applies an inner box shadow
.shadow
applies an outer box shadow
.link-box
useful for making normal text (
span
,
a
)
appear like button/link box
(especially when used with a border)
.clickable
cursor and jiggle on mousedown
.border.inset.shadow.link-box
they work well when combined
.good / .bad
used for affirmative
and negative signals