New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zendeskgarden/react-theming

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/react-theming

Theming utilities and components within the Garden Design System

  • 8.29.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-45.2%
Maintainers
1
Weekly downloads
 
Created

What is @zendeskgarden/react-theming?

@zendeskgarden/react-theming is a package that provides theming capabilities for React applications. It allows developers to define and apply consistent design themes across their applications, ensuring a cohesive look and feel. The package is part of the Zendesk Garden design system, which offers a collection of React components and utilities for building user interfaces.

What are @zendeskgarden/react-theming's main functionalities?

ThemeProvider

The ThemeProvider component is used to apply a theme to a React application. It wraps the application or specific components, providing them with access to the theme properties defined in the theme object.

import { ThemeProvider } from '@zendeskgarden/react-theming';

const App = () => (
  <ThemeProvider theme={{ colors: { primaryHue: 'blue' } }}>
    <YourComponent />
  </ThemeProvider>
);

Theming with Styled Components

This feature demonstrates how to use styled-components with @zendeskgarden/react-theming. By using styled-components, you can create styled React components that automatically receive theme properties, allowing for dynamic styling based on the theme.

import styled from 'styled-components';
import { ThemeProvider } from '@zendeskgarden/react-theming';

const StyledButton = styled.button`
  background-color: ${props => props.theme.colors.primaryHue};
`;

const App = () => (
  <ThemeProvider theme={{ colors: { primaryHue: 'blue' } }}>
    <StyledButton>Click me</StyledButton>
  </ThemeProvider>
);

Other packages similar to @zendeskgarden/react-theming

Keywords

FAQs

Package last updated on 31 Dec 2020

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