1.0.3 • Published 5 months ago
@revvity/styles v1.0.3
@revvity/styles
This package contains Revvity's styles library. it approximates the Revvity global design guidelines for React applications.
Installation
npm install @revvity/styles
or
yarn add @revvity/styles
Usage
You want to set these styles globally. For a React application, if you are using JSS, you can do the following:
import { createGloablStyles, Theme } from '@revvity/styles';
import react from 'react';
import { createUseStyles, useTheme } from 'react-jss';
export const App: React.FC = () => {
const theme = useTheme();
const classes = useStyles({ theme });
return (<div>Your code here...</div>);
};
const useStyles = createUseStyles((theme: Theme) => ({
...createGlobalStyles(theme),
// Your other styles here...
}));License
This project is licensed under the terms of the Revvity License.