This project was created with Instructure UI. Instructure UI has a number of beautiful and accessible React components with baked-in styles and theming and helpful utility functions.
For easy setup, we've included all of our build presets. This includes configurations for webpack, babel, eslint, etc, and allows you to start developing immediately.
To get started, you can import and compose existing components from our library. We've included a few commonly used ones already to render the landing page.
In the project directory, you can run:
Runs the app in the development mode. Open http://0.0.0.0:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Builds the app for production and outputs it to the __build__
directory.
Lints the app for eslint errors.
Fixes linting errors that can be automatically corrected.
Clean by removing any build or cache related files and directories.
If your project is hosted in a public GitHub repository, you can open it with codesandbox. To try it out:
- Push your latest changes to a GitHub repo
- Run
yarn open:sandbox
in the terminal
A chrome window should open up codesandbox with your project source.
See emotion for a more comprehensive theming guide.
All components in our library are themeable, which allows you to create a custom look and feel for your application. This app is pre-configured with our canvas theme which is also the default for our documentation.
NOTE: You should have a theme imported if you are using Instructure UI components. You can replace this import with a different theme, but deleting it entirely may cause some components to have errors and possibly not render.
Alternatively, if you want to continue using the canvas
theme as your default
with some overrides instead of creating an entirely new one, you can use the
EmotionThemeProvider component.
You can also make your custom built components in this app themeable. The Banner
component located in the source directory, for example, is already using
emotion for styling.