Skip to main content
React Native Styled System

React Native Styled System

Deadly Simple Style Library

Pass design tokens as props,
build responsive layouts with arrays,
and customize every detail of your theme.

yarn add @react-native-styled-system/core @react-native-styled-system/util

Less boilerplate. More building.

Without Styled System

const Sample = () => {
const theme = useTheme();
const { width } = useWindowDimensions();

const padding = width >= 768 ? 24
: width >= 480 ? 16 : 8;
const direction = width >= 480
? 'row' : 'column';

return (
<View style={{
backgroundColor: theme.colors.red500,
borderRadius: theme.radii.lg,
padding,
flexDirection: direction,
}}>
<Text style={[
theme.typography.h1,
{ marginTop: theme.spaces[4] },
]}>
React Native
</Text>
</View>
);
};

With Styled System

const Sample = () => {
return (
<Box
bg={'red.500'}
radius={'lg'}
p={[2, 4, 6]}
flexDirection={['column', 'row']}
>
<Txt t={'h1'} mt={4}>
React Native
</Txt>
</Box>
);
};

Features

Token Props

Pass design tokens directly as component props. Colors, spacing, radii, typography — all resolved from your theme.

Type-Safe

Full TypeScript support with auto-generated theme typings. The CLI generates type augmentations from your theme file.

Built-in Tokens

Ships with a comprehensive color palette and semantic color tokens out of the box. Ready to use without configuration.

Fully Customizable

Swap themes on the fly, override any token, and merge multiple themes with createTheme. Light mode, dark mode, or your own variants.

New in v2.0

Built-in design tokens, semantic colors, responsive breakpoints, and theme utilities.

What's New