@surrealdb/ui
v1.0.51
Published
The SurrealDB UI Kit defines the design system and UI primitives for use throughout all frontend projects at SurrealDB.
Readme
@surrealdb/ui
The SurrealDB UI Kit defines the design system and UI primitives for use throughout all frontend projects at SurrealDB.
Getting Started
To install dependencies:
bun installStart the Storybook development server:
bun run storybook:devIcon tool
The icon tool is used to convert the SVG icons to a format that can be used in the UI Kit.
Requirements
- Install picosvg
- Export an SVG zip and locate it in the root of the project.
bun run iconsThis will generate the src/constants/icons.ts file.
Notes
Optimise pictos
mkdir -p out
for f in *.png; do
magick "$f" \
-resize 500x500 \
-background none \
-gravity center \
-extent 500x500 \
"out/${f%.*}.webp"
done