Catalog npm
PACKAGE EXPLORERView in registry

5c-named-test

npm

**NOTE: DO NOT MAKE USE OF THE NAME FIELD FROM CONTENTFUL. INSTEAD CREATE REDUNDANT FIELD TITLE. THIS IS DUE TO NAME FIELD CONTAINING EXTRA DATA (SITE NAME)**

Versions collected18
Direct dependencies56From release 0.3.5
Last observed20 Oct, 20:31 UTC

README

Current package documentation

5c-2023 (Crescendo Collective Contentful Common Components 2023)

NOTE: DO NOT MAKE USE OF THE NAME FIELD FROM CONTENTFUL. INSTEAD CREATE REDUNDANT FIELD TITLE. THIS IS DUE TO NAME FIELD CONTAINING EXTRA DATA (SITE NAME)

Available Scripts

In the project directory, you can run:

npm run storybook

Opens Storybook mode.
Open http://localhost:6006 to view it in the browser.

The page will reload if you make edits.\

npm run build

Builds the project

To install as NPM package

Install npm i 5c-2023

Your tailwind.config.js will look like this

/** @type {import('tailwindcss').Config} */
module.exports = {
    content: [
        "./public/index.html",
        "./src/**/*.{js,jsx,ts,tsx}",
        "./node_modules/tw-elements/dist/js/**/*.js",
    ],
    theme: {
        extend: {
            colors: {
                poolBlue: {
                    50: "#81BEFC",
                    100: "#609BDC",
                    200: "#82AFDE",
                    300: "#184E96",
                    500: "#143B62",
                },
                poolGray: {
                    50: "#00000029",
                    100: "#00000040",
                    500: "#707071",
                },
            },
            fontFamily: {
                "montserrat-100": ["Montserrat-100"],
                "montserrat-200": ["Montserrat-200"],
                "montserrat-300": ["Montserrat-300"],
                "montserrat-400": ["Montserrat-400"],
                "montserrat-500": ["Montserrat-500"],
                "montserrat-600": ["Montserrat-600"],
                "montserrat-700": ["Montserrat-700"],
                "montserrat-800": ["Montserrat-800"],
                "montserrat-900": ["Montserrat-900"],
            },
        },
    },
    plugins: [
        require("tailwindcss-radix")(),
        require("tw-elements/dist/plugin"),
    ],
    safelist: [
        {
            pattern: /(H|flex|space-*|bg|h-|w-|p|p*-|m|mt-*|text|border|)/,
        },
    ],
};

In your _app.tsx, include the following to make use of Tailwind Elements:


    useEffect(() => {
        const use = async () => {
            (await import("tw-elements")).default;
        };
        use();
    }, []);

In your styles/globals.css add @import "5c-2023/dist/cjs/styles/index.css";

We're using tailwind extending on this. To use the above color/font properties correctly, refer to this documentation (https://tailwindcss.com/docs/customizing-colors) & (https://tailwindcss.com/docs/font-family#using-custom-values)

This repo makes use of TailwindCss, TailwindElements, Radix UI components and Radix Tailwind Plugin.

Stylesheets

The repo has two stylesheets index.css and stories.css. The former will be exported as part of the NPM package, the latter will just be used for styling components in storybook view. Additional styling can be handled at the global App level (ex: styles/globals.css in the SCPEuro application). Use the classnames defined in the repo to target specific components and style.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 18

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.5Registry latest18 Jan 202356
0.3.418 Jan 202356
0.3.318 Jan 202356
0.3.218 Jan 202356
0.3.118 Jan 202356
0.3.018 Jan 202357
0.2.1117 Jan 202356
0.2.1017 Jan 202356
0.2.917 Jan 202356
0.2.817 Jan 202356
0.2.717 Jan 202357
0.2.616 Jan 202358
0.2.516 Jan 202358
0.2.416 Jan 202358
0.2.316 Jan 202356
0.2.216 Jan 202356
0.2.116 Jan 202356
0.2.016 Jan 202356

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2144c5d92a0e2ce1b74df0c001dcd83c4f004f6ad9d7dd0f5a69a46f6aab6a52