Design System for Ohio State's Office of Research.
This branch contains the work in progress for UI 5 and is not production ready.
For Office of Research applications on UI 4, visit the 4.x maintenance branch.
Version | Supported |
---|---|
5.0.0 | |
4.8.x | ✅ |
< 4.8.0 | ❌ |
If you are writing components in Storybook that depend on RUI, you should wrap your stories with our provider to access theme tokens, portals, and other necessary utilities.
RUI integrates with Storybook's dark mode plugin to help you test components across multiple themes.
In your Storybook preview.js
import the distribution CSS and add a decorator that wraps your stories with RUIProvider
:
import { RUIProvider } from '@osuresearch/ui';
import '@osuresearch/ui/dist/index.css';
...
export const decorators = [
(Story) => (
<RUIProvider theme={useDarkMode() ? 'dark' : 'light'}>
<Story />
</RUIProvider>
),
];
RUI's theme will update whenever you toggle dark mode in Storybook.
The changelog can be found on the Releases page.
Chase McManning and contributors.
MIT License, see the included LICENSE file.