npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@builderhub/mui-theme

v1.2.5

Published

Builderhub Platform Material UI Theme

Downloads

340

Readme

@builderhub/mui-theme

Publish Package to npmjs npm npm License: MIT

Builderhub Platform Material UI Theme

  • Custom colors
  • Custom breakpoint
  • Custom typography
  • Custom MuiCssBaseline

React.js 혹은 Next.js 프로젝트에서 Builderhub UI/UX 팀에서 정의한 Color scheme과 breakpoint 등을 정의한 Material UI ThemeProvider를 사용합니다.

Peer Dependencies

  • react@^18
  • react-dom@^18
  • @mui/material^5

Installation

  • npm
npm i @builderhub/mui-theme
  • yarn
yarn add @builderhub/mui-theme
  • pnpm
pnpm add @builderhub/mui-theme

Usage

import React from "react";
import { BuilderhubThemeProvider } from "@builderhub/mui-theme";

export function Wrapped() {
  return (
    <BuilderhubThemeProvider>
      <App />
    </BuilderhubThemeProvider>
  );
}

기존 colors를 수정하는 방법

- import { colors } from "context";
+ import { useTheme } from "@mui/material";

// ...omitted
function Component() {
  const { palette } = useTheme();

  - const oldColor = colors.purple_10;
  + const newColor = palette.purple_10;
}

styled 에서 사용

import { styled, Button } from "@mui/material";

export const CustomButton = styled(Button)(({ theme }) => ({
  border: 0,
  background: theme.palette.purple_10,
  width: "5rem",
  height: "2rem",
  borderRadius: theme.shape.borderRadius,
}));