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

dd360-ds

Package Overview
Dependencies
Maintainers
0
Versions
316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dd360-ds

DD360 Components is a tailwind based React component library

  • 6.28.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
decreased by-84.17%
Maintainers
0
Weekly downloads
Ā 
Created
Source
BUI logo

A React ecosystem library for building back-office platforms like DD360.
It's library created by developers for developers

Stable v6

license npm latest package npm downloads Average time to resolve an issue CII Best Practices Storybook

BUI components

Docs ā€¢ Website

šŸ“² Installation

npm install dd360-ds

or

yarn add dd360-ds

šŸ’… Customize theme

If you want to use a provider to configure the library's theme, you can do so using the ThemeProvider provided by dd360-ds. This will allow you to set your own settings for the theme.

To use the ThemeProvider, you must import it as follows:

import { createTheme, ThemeProvider } from "dd360-ds/theme";

You can then create your own theme configuration using the createTheme function, which accepts an object with different properties to customize the theme. For example, you can define the primary and secondary colors as shown below:

const theme = createTheme({
  palette: {
    primary: {
      main: "purple"
    },
    secondary: {
      main: "#FFC107"
    }
  }
});

After creating your theme configuration, you can use the ThemeProvider to wrap your React app. This can be done as follows:

ReactDOM.createRoot(document.getElementById("root")).render(
  <StrictMode>
    <ThemeProvider theme={theme}>
      <App />
    </ThemeProvider>
  </StrictMode>
);

Within the ThemeProvider, you can use the components provided by dd360-ds and the corresponding styles will be applied based on your theme settings.

Remember that to use the ThemeProvider, you must import both the createTheme component and the ThemeProvider component from dd360-ds/theme.

šŸ’” Usage

After Installation, you will have to make some extra configurations for everything to work normally.

Import stylesheets into the App.js or App.tsx

import 'dd360-ds/dd360.css'

āš ļø Warning: If you want to combine it with other styles, be sure to import our css as the last one.

How to import components?

import { Button } from 'dd360-ds'

šŸ”« Components

This is the most fun part. Below we will explain the use of the components we are currently developing.

You can checking and contribute to the docs website here

Keywords

FAQs

Package last updated on 31 Oct 2024

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