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

react-theme-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-theme-components

react-theme-components

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

react-theme-components

GitHub version

How to install?

npm i react-theme-components

Basic use

import { Button } from 'react-theme-components'

...
render() {
  return (
    <Button>This is a button</Button>
  );
};

Inline style

import { Button } from 'react-theme-components'

...
render() {
  return (
    <Button
      style={{
        color: 'red'
      }}
      >This is a button</Button>
  );
};

Editable attributes inline style

Button
PropertyDefaultTypeValues
color#ffffffStringhex, rgb
fontSize16pxString, Numberfont-size values
backgroundColor#1890ffStringhex, rgb
borderColor#1890ffStringhex, rgb
InputText
PropertyDefaultTypeValues
height32pxString, Numberheight values
colorrgba(0,0,0,0.65)Stringhex, rgb
fontSize14pxString, Numberfont-size values
backgroundColor#ffffffStringhex, rgb
borderColor#d9d9d9Stringhex, rgb
Title
PropertyDefaultTypeValues
color#0d1a26Stringhex, rgb
fontSize30pxString, Numberfont-size values

You can create a theme

import { Button, Title, Provider } from 'react-theme-components'

...
render() {
  return (
    <Provider theme={{
      Button: {
        color: 'red'
      },
      Title: {
        color: 'red'
      }
    }}>
      <Button>This is a button</Button>
      <Title>This is a Title</Title>
    </Provider>
  );
};

Editable attributes through the theme

Button
PropertyDefaultTypeValues
color#ffffffStringhex, rgb
fontSize16pxStringfont-size values
backgroundColor#1890ffStringhex, rgb
borderColor#1890ffStringhex, rgb
hoverBackgroundColor#40a9ffStringhex, rgb
hoverBorderColor#40a9ffStringhex, rgb
hoverColor#ffffffStringhex, rgb
InputText
PropertyDefaultTypeValues
height32pxStringheight values
colorrgba(0,0,0,0.65)Stringhex, rgb
fontSize14pxStringfont-size values
backgroundColor#ffffffStringhex, rgb
borderColor#d9d9d9Stringhex, rgb
hoverBorderColor#40a9ffStringhex, rgb
Title
PropertyDefaultTypeValues
color#0d1a26Stringhex, rgb
fontSize30pxStringfont-size values

Keywords

FAQs

Package last updated on 16 May 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