Socket
Socket
Sign inDemoInstall

@material-ui/system

Package Overview
Dependencies
15
Maintainers
8
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @material-ui/system

Material-UI System - Design system for Material-UI.


Version published
Weekly downloads
1.3M
increased by5.36%
Maintainers
8
Install size
3.46 MB
Created
Weekly downloads
 

Package description

What is @material-ui/system?

The @material-ui/system package provides a set of utility functions for styling components in a consistent and theme-based manner. It allows developers to apply styles directly to components using a set of predefined style functions and props. This package is part of the Material-UI library, which is a popular React component library for implementing Google's Material Design.

What are @material-ui/system's main functionalities?

Spacing

This feature allows you to apply margin and padding around your components using a consistent theme-based spacing scale. The 'mb' prop sets the bottom margin, and the 'p' prop sets the padding around the component.

{"<Box mb={2} p={3}>Your content here</Box>"}

Color

Enables you to apply color and background color based on the theme's color palette. 'color' sets the text color, while 'bgcolor' sets the background color of the component.

{"<Box color="primary.main" bgcolor="background.paper">Your content here</Box>"}

Typography

Allows you to control typography styles such as font size, font family, and font weight, using the theme's typography scale.

{"<Box fontSize="h6.fontSize" fontFamily="fontFamily" fontWeight="fontWeightLight">Your text here</Box>"}

Layout

Provides a set of props to control layout aspects like display, flex direction, alignment, and distribution of space among items in a container.

{"<Box display="flex" flexDirection="column" alignItems="center" justifyContent="center">Your content here</Box>"}

Other packages similar to @material-ui/system

Readme

Source

@material-ui/system

Style props functions for building powerful design systems.

Installation

Install the package in your project directory with:

// with npm
npm install @material-ui/system

// with yarn
yarn add @material-ui/system

Documentation

The documentation

Keywords

FAQs

Last updated on 03 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc