Name: Bits
Owner: Raspberry Pi Foundation
Description: Our website front-end pattern library
Created: 2017-08-31 12:22:58.0
Updated: 2018-05-16 12:55:49.0
Pushed: 2018-05-16 12:56:12.0
Homepage: null
Size: 863
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Bits doesn't include the CSS for requiring fonts from the Google Fonts CDN.
In the interests of performance, it's best to include these in the HTML so we can prompt the browser to be smarter about connecting and downloading these assets. Use this HTML snippet for MAXIMUM PERFORMANCE:
k rel="preconnect stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:300,500,700|Space+Mono" media="all" type="text/css" crossorigin />
Includes a new Docker Compose based dev env.
Deploys to: https://static.raspberrypi.org/styles/Bits/
docker-compose run web ./deploy.sh
(where
eg: https://static.raspberrypi.org/styles/Bits/1.0.0/Bits.min.css
Storybook is set up on this app to allow interactive development. To use it, run:
run storybook
and visit http://localhost:9001
Taken from the README of https://github.com/transitive-bullshit/react-modern-library-boilerplate
In the root of this directory, run the following:
npm link # the link commands are important for local development
npm install # disregard any warnings about missing peer dependencies
npm start # runs rollup with watch flag
In the root of the slash-learning-ui repo, run the following
npm install
npm link raspberry-pi-bits
You're now ready to start the development server and use raspberry-pi-bits in your React components.
npm run dev # runs create-react-app hot-reload dev server
Now, anytime you make a change to your component in src/ or to the example application's example/src, create-react-app will live-reload your local dev server so you can iterate on your component in real-time.
Bits requires the following peer dependencies to be installed in the host application:
snames: ^2.2.5
-types: ^15.5.4