@grasshop/ui
v0.1.2
Published
A platform-agnostic design system and theme engine
Maintainers
Readme
@grasshop/ui
A platform-agnostic design system and theme engine that works across any JavaScript/TypeScript environment.
Features
- 🎨 Customizable design tokens
- 🌗 Light and dark mode support (and everything in between 😉)
- 🌐 Framework agnostic
- 🔄 Runtime theme updates
- 🎯 Type-safe theme configuration
- 📱 Platform independent
Installation
# npm
npm install @grasshop/ui
# yarn
yarn add @grasshop/ui
# pnpm
pnpm add @grasshop/uiQuick Start
// React/React Native example
import { ThemeProvider, useTheme } from '@grasshop/ui';
function App() {
return (
<ThemeProvider>
<YourApp />
</ThemeProvider>
);
}
// Use in any framework
import { theme } from '@grasshop/ui';
const backgroundColor = theme.styles.colors.background;
const fontSize = theme.styles.typography.sizes.base;Documentation
Framework Examples
License
MIT © Grasshop
