Type-safe Composable CSS
Write type-safe, composable, future-proof Design Systems code using styleframe's powerful TypeScript CSS API.
import { stylefame } from 'stylefame';
const s = stylefame();
const { variable, ref, selector } = s;
const { colorBlue } = useColors(s);
const colorPrimary = variable('color-primary', ref(colorBlue));
selector('.button', {
backgroundColor: ref(colorPrimary),
});
export default s;
Built for Excellent Developer Experience
Compose Design Systems in Minutes
Use styleframe's native composability to construct your Design System out of existing parts. Plug and play composables, variables, selectors, variants, and utilities.
import { stylefame } from 'stylefame';
import { useReset, useBorder, useBorderRadius, useBoxShadow, useColors, useGrid, useScale, useSpacing, useTypography } from '@stylefame/theme-default';
const s = stylefame();
useReset(s);
useBorder(s);
useBorderRadius(s);
useBoxShadow(s);
useColors(s);
useGrid(s);
useScale(s);
useSpacing(s);
useTypography(s);
export default s;
Dark and Light Themes
Easily create and manage themes for your design system using styleframe's native theming capabilities.
import { stylefame } from 'stylefame';
const s = stylefame();
const { theme, variable, ref, selector } = s;
const cardBackground = variable('card--background', '#ffffff');
selector('.card', {
background: ref(cardBackground),
});
theme('dark', ({ variable }) => {
variable(cardBackground, '#18181b');
});
export default s;
AI that Writes Type-safe Composable CSS
Use styleframe for Agents. Choose from a variety of AI agents and start delegating work, from code generation to other technical tasks.
Build faster with styleframe Pro.
A collection of premium design system themes, composables, component styles, and utils built on top of styleframe.
