kindyle v1.0.2
kindyle

🍊Features
- 9 interactive Kindle components
- Light / Dark theme switch
- Native kindle OS font (Optional)
- Browser
- Still developing...
npm i kindyleApp
An app is a highly-integrated app in kindle, in most case you cannot edit it. If you use them in your project, you may need to also add a router yourself.
Browser
Reader
Componenets
Navbar
Navbar is an integrated kindle native component. All icons are un-editable, but you can still change some status and callback functions such as battery, device name and so on.
Container
If you want to use AmazonEmber font(around 106kb) and dark mode to get a more kindle-ish ui, you can wrap your app with Container componenet, which adds a global font-family.
import { Container } from "kindyle";
function App() {
return (
<Container>
{/* ... */}
</Container>
);
}
export default App;Typography
Use Typography to present an article or other rich-text content.
| name | optional | default | description |
|---|---|---|---|
| greyImage | false | true | make image grey |
Button
| name | optional | default | description |
|---|---|---|---|
| href | true | -- | make it a link |
Contribution
git clone https://github.com/rivertwilight/kindyle.git
npm run i-all
npm run devif it throws an error like Can't resolve 'kindle'..., Try three solustions:
Check whether the
distfolder is empty, if so, runnpm run buildto build a production bundle then runnpm run dev.Check whether the
playground/node_modules/kindyleexsit and linked to root directory. if not, you may need to runnpm i ../ -savemannually inplaygrpundfolder.If both 1 and 2 doesn't work, open two terminals, run
npm run build-watchin first erminal and runnpm run start-playgroundin another one.
License
MIT
inspired by this blog