Socket
Socket
Sign inDemoInstall

@alvincrespo/mui-dark-elevation

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alvincrespo/mui-dark-elevation

MaterialUI dark theme elevation calculation.


Version published
Maintainers
1
Created
Source

MaterialUI's Dark Elevation Calculation

This package helps you calculate proper elevation within your dark theme.

Usage

// 1. Define your theme
import { generate } from "@alvincrespo/mui-dark-elevation";

const colors = generate();

const theme = {
  dark: {
    background: {
      colors: {
        ...colors
      }
    }
  }
};

// 2. Create the styles for your component
export const Styles = {
  Container: styled.div`
    background: ${props => props.theme.background.colors.dp_01};
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  `
}

// 3. Implement styled component
import React from 'react';

export const Login = () => (
  <Styles.Container>
    {/* do stuff here */}
  </Styles.Container>
);

Resources

Material Design - Dark Theme

FAQs

Package last updated on 15 Aug 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc