A lightweight CSS library for empty, loading, error, and success states.
Most UI libraries focus on structure — buttons, forms, layouts.
StateKit focuses on the parts that are often implemented late:
- Empty data screens
- Loading states
- Error handling
- First-time user flows
It provides a small set of consistent, reusable patterns for these cases.
- Empty state
- Empty search state
- Error state
- 404 page
- Success state
- Loading spinner
- Loading skeleton
- Onboarding state
Clone the repository:
git clone https://github.com/roynick365/statekitThen include:
<link rel="stylesheet" href="./src/statekit.css"><link rel="stylesheet" href="https://unpkg.com/statekit-ui/src/statekit.css">npm install statekit-uiimport 'statekit-ui/src/statekit.css';Each component is self-contained and can be used as-is.
<div class="sk-empty">
<h3>No data available</h3>
<p>Create your first item to get started.</p>
<button class="sk-btn">Create</button>
</div>https://roynick365.github.io/statekit/
Override CSS variables to match your setup:
:root {
--sk-accent: #2D5BE3;
--sk-text: #1A1917;
--sk-border: #E4E1D8;
}Initial release. Actively being improved.
- Additional state variants
- Dark mode support
- Accessibility improvements
- Framework wrappers (React)
Contributions and feedback are welcome.
Open an issue or submit a pull request.
MIT