0.8.0 • Published 1 year ago

@codevachon/react-common v0.8.0

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

@codevachon/react-common

A Library of Common Read Components

Dependencies

Install

pnpm

pnpm add @codevachon/react-common @codevachon/classnames @codevachon/utilities @headlessui/react @heroicons/react

yarn

yarn add @codevachon/react-common @codevachon/classnames @codevachon/utilities @headlessui/react @heroicons/react

npm

npm install @codevachon/react-common @codevachon/classnames @codevachon/utilities @headlessui/react @heroicons/react

Usage

Pull in the Style Sheet and add the required values to the tailwind.config.js file.

// src/pages/_app.tsx
import "@codevachon/react-common/style.css"; // Import Preset Styling
import "./../styles/global.css";

export default function MyApp({ Component, pageProps }) {
    return <Component {...pageProps} />;
}

Use Tailwind Preset

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
    content: ["./src/**/*.{ts,js,tsx,jsx}"],
    preset: ["@codevachon/react-common/tailwind.preset"],
    theme: {},
    plugins: []
};

Manual Tailwind Configuration

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
    content: ["./src/**/*.{ts,js,tsx,jsx}"],
    theme: {
        extend: {
            colors: {
                primary: "rgb(var(--color-primary) / <alpha-value>)",
                secondary: "rgb(var(--color-secondary) / <alpha-value>)",
                tertiary: "rgb(var(--color-tertiary) / <alpha-value>)",
                danger: "rgb(var(--color-danger) / <alpha-value>)",
                success: "rgb(var(--color-success) / <alpha-value>)"
            }
        }
    },
    plugins: []
};
0.8.0

1 year ago

0.7.1

1 year ago

0.5.0

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago