Resources
react-native-kanso-ui
kanso-ui for React Native, with the same component names and props. It ships Kanso’s tokens as its base since 0.18.0.
Install
npm install --save-exact @kanso-labs/react-native-kanso-uiEach component keeps kanso-ui’s name and props, so a Kanso page names one component for both platforms. Phones take Kanso’s comfortable density: 48px controls and 60px rows.
Themes
Tokens reach components through ThemeScope, which takes kanso-ui-core’s maps of the base, its light and dark. A product brings its colour as the same theme the web takes, built once with defineProductTheme and handed to ThemeScope’s productTheme, since react-native-kanso-ui 0.20.0. There is no productThemeStyle on phones, which have no <html> to put it on.