Advanced StyleSheets, the Native way.
Style React Native apps with precision and control
By Bibliolab
Fluffle is the official successor to NativeSass.
- π
NativeSassis now deprecated - π All new development happens in Fluffle
- π If you are using NativeSass, migration is strongly recommended
Fluffle is a complete evolution of NativeSass, with improved architecture, better performance, and a clearer developer experience.
Fluffle is a styling library for React Native that brings advanced styling capabilities inspired by Sass and CSS, while fully respecting the native React Native paradigm.
It allows you to write styles that are:
- More expressive
- More maintainable
- More scalable
Without abandoning the native StyleSheet approach.
React Native styling can become repetitive and hard to scale. Fluffle solves that by introducing powerful abstractions:
- π§© Nested styles (like Sass)
- π Reusable style patterns
- π― Cleaner and more readable code
- π
remunits for scalable design - π± Built specifically for React Native (not a CSS hack)
const styles = StyleSheet.create({
card: {
padding: 16,
backgroundColor: '#fff',
borderRadius: 12,
},
cardHeader: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 12,
},
cardAvatar: {
width: 48,
height: 48,
borderRadius: 24,
marginRight: 12,
},
cardName: {
fontSize: 18,
fontWeight: '700',
color: '#111',
},
cardUsername: {
fontSize: 14,
color: '#666',
},
cardActions: {
flexDirection: 'row',
marginTop: 16,
},
cardButton: {
paddingVertical: 10,
paddingHorizontal: 14,
borderRadius: 8,
marginRight: 8,
},
cardButtonPrimary: {
backgroundColor: '#2563eb',
},
cardButtonSecondary: {
backgroundColor: '#e5e7eb',
},
cardButtonTextPrimary: {
color: '#fff',
fontWeight: '600',
},
cardButtonTextSecondary: {
color: '#111',
fontWeight: '600',
},
});const styles = create({
card: {
padding: '1rem',
backgroundColor: '#fff',
borderRadius: '0.75rem',
header: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: '0.75rem',
avatar: {
width: '3rem',
height: '3rem',
borderRadius: '1.5rem',
marginRight: '0.75rem',
},
name: {
fontSize: '1.125rem',
fontWeight: '700',
color: '#111',
},
username: {
fontSize: '0.875rem',
color: '#666',
},
},
actions: {
flexDirection: 'row',
marginTop: '1rem',
button: {
paddingVertical: '0.625rem',
paddingHorizontal: '0.875rem',
borderRadius: '0.5rem',
marginRight: '0.5rem',
text: { fontWeight: '600' },
primary: {
backgroundColor: '#2563eb',
text: { color: '#fff' },
},
secondary: {
backgroundColor: '#e5e7eb',
text: { color: '#111' },
},
},
},
},
});To use Fluffle in your project, just run this command from your terminal if you're using npm:
npm install react-native-fluffleOr use the following if you're using yarn or pnpm:
yarn add react-native-flufflepnpm add react-native-fluffleFluffle works with both the React Native CLI and Expo CLI, and the installation steps are the same.
Fluffle is not a CSS layer on top of React Native. It is designed to enhance the existing styling system β not replace it β keeping performance, predictability, and native behavior intact.
Fluffle is actively evolving. Planned features include:
- π¨ Object-based shorthand syntax
padding: { block: "1rem", inline: "2rem" }
margin: { top: 10, bottom: 20 }
gap: { row: 8, column: 4 }- π§© Style mixins ($include)
- π¦ Improved composition patterns
- π§ Smarter style processing pipeline
These features are designed to enhance developer experience while staying fully compatible with React Native.
Full documentation is available at: π react-native-fluffle.github.io
Contributions, ideas, and feedback are welcome! Feel free to open issues or submit pull requests.