Style Dictionary
style-dictionary
Style once, use everywhere. A build system for creating cross-platform styles.
React Native Libraries
style dictionary
style
dictionary
css
design
tokens
sass
scss
iOS
Android
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install style-dictionaryCode example
import { View, Text, StyleSheet } from "react-native";
import { StyleDictionary } from "style-dictionary";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Style Dictionary</Text>
<StyleDictionary />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Style Dictionary
- 0 weekly downloads. Battle tested
- Apache-2.0 licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 0 open issues on GitHub