0.1.11 • Published 1 year ago

@resetpower/rcs v0.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

RCS

NPM

ResetPower's Component Set

Quick Start

Requirements: React 18.2.0 & Tailwindcss 3

  • Install RCS by input npm install @resetpower/rcs
  • Add RCS to your tailwind config (usually tailwind.config.js):
const colors = require("@resetpower/rcs/colors");

module.exports = {
  mode: "jit",
  darkMode: "media",
  content: [
    "./index.html",
    "./src/**/*.tsx",
+   "./node_modules/@resetpower/rcs/**/*.js"
  ],
  theme: {
    extend: {
+     colors
    },
  },
  plugins: [],
};
  • Import RCS's CSS
  • Apply a theme in the entrance of your app:
import "@resetpower/rcs/styles";
import App from "./App";
import { ThemeManager, rcsLight } from "@resetpower/rcs";
import { render } from "react-dom";

const manager = new ThemeManager(false);
manager.apply(rcsLight);

render(<App />, document.getElementById("root"));
  • Enjoy!

Preview

  • Clone the repository by gh repo clone ResetPower/rcs

  • Start preview server by npm run dev

LICENSE

MIT LICENSE

0.1.11

1 year ago

0.1.10

1 year ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago