1.0.3 • Published 5 months ago

@revvity/styles v1.0.3

Weekly downloads
-
License
see LICENSE
Repository
github
Last release
5 months ago

@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.

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

9 months ago

0.0.3

9 months ago

1.0.3

5 months ago

0.0.2

1 year ago

0.0.1

2 years ago