Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/theme

Package Overview
Dependencies
Maintainers
3
Versions
655
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/theme

The default theme for chakra components

  • 0.0.0-dev-20230327175739
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
533K
decreased by-18.17%
Maintainers
3
Weekly downloads
 
Created

What is @chakra-ui/theme?

@chakra-ui/theme is a package that provides a set of design tokens and theming capabilities for Chakra UI, a popular React component library. It allows developers to customize the appearance of their applications by defining colors, typography, spacing, and other design aspects in a consistent and reusable manner.

What are @chakra-ui/theme's main functionalities?

Custom Theme Creation

This feature allows you to create a custom theme by extending the default Chakra UI theme. You can define your own color palette, typography, and other design tokens.

const customTheme = extendTheme({
  colors: {
    brand: {
      100: '#f7fafc',
      900: '#1a202c',
    },
  },
});

export default customTheme;

Responsive Design Tokens

This feature allows you to define responsive design tokens such as breakpoints, ensuring your application looks good on different screen sizes.

const customTheme = extendTheme({
  breakpoints: {
    sm: '30em',
    md: '48em',
    lg: '62em',
    xl: '80em',
  },
});

export default customTheme;

Component Style Overrides

This feature allows you to override the default styles of Chakra UI components. You can customize the base styles, sizes, and variants of components to fit your design requirements.

const customTheme = extendTheme({
  components: {
    Button: {
      baseStyle: {
        fontWeight: 'bold',
      },
      sizes: {
        xl: {
          h: '56px',
          fontSize: 'lg',
        },
      },
      variants: {
        solid: {
          bg: 'brand.500',
          color: 'white',
        },
      },
    },
  },
});

export default customTheme;

Other packages similar to @chakra-ui/theme

Keywords

FAQs

Package last updated on 27 Mar 2023

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