npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2024 โ€“ย Pkg Stats / Ryan Hefner

ab-nextjs-theme

v0.1.5

Published

๐ŸŽจ A lightweight collection of client React components as theme abElements created by Abraham Ukachi, and optimized for Next.js applications ๐Ÿ˜Ž.

Downloads

1

Readme

ab-nextjs-theme

IMPORTANT: This is a work in progress and subject to major changes until version 1.0.

๐ŸŽจ This is a lightweight collection of client React components as theme abElements created by Abraham Ukachi, and optimized for Next.js applications ๐Ÿ˜Ž.

Getting Started

Installation

npm

npm i ab-nextjs-theme 

pnpm

pnpm install ab-nextjs-theme 

Tailwind

A list of all the supported tailwind theme and their current status:

| No. | Name | File | Status | |:----|:-----|:-----|:-------| | 1 | Colors | colors.ts | Done | | 2 | Typography | typography.ts | Pending | | 3 | Styles | styles.ts | Pending |

NOTE:


CSS

A list of all the supported css theme and their current status:

| No. | Name | File | Status | |:----|:-----|:-----|:-------| | 1 | Colors | css/colors.css | Done* | | 2 | Typography | css/typography.css | Pending | | 3 | Styles | css/styles.css | Pending |

NOTE:

Usage

Import the main styles.css (from root folder) in your globals.css

@import 'ab-nextjs-theme/styles.css';

NOTE:


Color scheme

Key colors

| Name | Color (HEX) | Codename | |:-------|:-------|:----------| | Primary Color | #A67C52 | Melanin | | Secondary Color | #FFD700 | Gold | | Tertiary Color | #21FFFF | Cyan | | Neutral Color | #211A16 | Mud |

NOTE: These key colors - also refered to as seeds - were used in the Material Theme Builder to generate AbTheme's M3 Baseline color scheme. However, the codenames are specific to this App :)

Accessibility colors

| Name | Color (HEX) | |:-------|:--------------| | P-Light | #D9AB7F | | P-Dark | #755028 | | S-Light | #FFFF52 | | S-Dark | #C7A600 | | Text On Primary | #2D1600 | | Text On Secondary | #000000 |

NOTE: These accessibility (a11y) colors were generated using Google's Color Tool with AbTheme's Primary & Secondary colors. P-Light and S-Light are short for Primary Light and Secondary Light color respectively.

Theme

The Ab Theme consists of three parts, namely Classic, Light and Dark Theme.

| Name | Classic โญ๏ธ | Light โ˜€๏ธ | Dark ๐ŸŒ‘ | Role | |:-----|:-----------|:---------|:---------|:------------| | primary | #FCFCFC | #8B5000 | #FFB86B | Primary | | surfaceTint | - | - | - | Surface Tint | | onPrimary | #201A17 | #FFFFFF | #4A2800 | On Primary | | primaryContainer | #FFDCBA | #FFDCBA | #6A3C00 | Primary Container | | onPrimaryContainer | #2D1600 | #2D1600 | #FFDCBA | On Primary Container | | secondary | #EAC400 | #715D00 | #EAC400 | Secondary | | onSecondary | #3A3000 | #FFFFFF | #3A3000 | On Secondary | | secondaryContainer | #FFE15E | #FFE15E | #554600 | Secondary Container | | onSecondaryContainer | #231B00 | #231B00 | #FFE15E | On Secondary Container | | tertiary | #006A6B | #006A6B | #02DCDC | Tertiary | | onTertiary | #FFFFFF | #FFFFFF | #003738 | On Tertiary | | tertiaryContainer | #004F50 | #14FBFB | #004F50 | Tertiary Container | | onTertiaryContainer | #14FBFB | #002020 | #14FBFB | On Tertiary Container | | error | #680003 | #BA1B1B | #FFB4A9 | Error | | onError | #FF897A | #FFFFFF | #680003 | On Error | | errorContainer | #BA1B1B | #FFDAD4 | #930006 | Error Container | | onErrorContainer | #FFDAD4 | #410001 | #FFDAD4 | On Error Container | | background | #A67C52 | #FCFCFC | #201A17 | Background | | onBackground | #2D1600 | #201A17 | #ECE0DB | On Background | | surface | #A67C52 | #FCFCFC | #201A17 | Surface | | onSurface | #2D1600 | #201A17 | #ECE0DB | On Surface | | surfaceVariant | #755028 | #F2DFD1 | #51453A | Surface Variant | | onSurfaceVariant | #D9AB7F | #51453A | #D4C3B5 | On Surface Variant | | outline | #392E24 | #837569 | #9E8E81 | Outline | | outlineVariant | - | - | - | Outline Variant | | shadow | - | - | - | Shadow | | scrim | - | - | - | Scrim | | inverseSurface | #A67C52 | #362F2B | #ECE0DB | Inverse Surface | | inverseOnSurface | #2D1600 | #FAEEE8 | #201A17 | Inverse On Surface | | inversePrimary | #A67C52 | #FFB86B | #8B5000 | Inverse Primary | | primaryFixed | - | - | - | Primary Fixed | | onPrimaryFixed | - | - | - | On Primary Fixed | | primaryFixedDim | - | - | - | Primary Fixed Dim | | onPrimaryFixedVariant | - | - | - | On Primary Fixed Variant | | secondaryFixed | - | - | - | Secondary Fixed | | onSecondaryFixed | - | - | - | On Secondary Fixed | | primaryFixedDim | - | - | - | Secondary Fixed Dim | | onSecondaryFixedVariant | - | - | - | On Secondary Fixed Variant | | tertiaryFixed | - | - | - | Tertiary Fixed | | onTertiaryFixed | - | - | - | On Tertiary Fixed | | primaryFixedDim | - | - | - | Tertiary Fixed Dim | | onTertiaryFixedVariant | - | - | - | On Tertiary Fixed Variant | | surfaceDim | - | - | - | Surface Dim | | surfaceBright | - | - | - | Surface Bright | | surfaceContainerLowest | - | - | - | Surface Container Lowest | | surfaceContainerLow | - | - | - | Surface Container Low | | surfaceContainer | - | - | - | Surface Container | | surfaceContainerHigh | - | - | - | Surface Container High | | surfaceContainerHighest | - | - | - | Surface Container Highest |

NOTE: The Classic Theme โญ๏ธ was manually created for the AbTheme, This is an addition to the dynamic color requirements from Material Design 3.

Medium Contast

| Name | Classic โญ๏ธ | Light โ˜€๏ธ | Dark ๐ŸŒ‘ | Role | |:-----|:-----------|:--------|:--------|:-----| | primary | - | - | - | Primary | | surfaceTint | - | - | - | Surface Tint | | onPrimary | - | - | - | On Primary | | primaryContainer | - | - | - | Primary Container | | onPrimaryContainer | - | - | - | On Primary Container | | secondary | - | - | - | Secondary | | onSecondary | - | - | - | On Secondary | | secondaryContainer | - | - | - | Secondary Container | | onSecondaryContainer | - | - | - | On Secondary Container | | tertiary | - | - | - | Tertiary | | onTertiary | - | - | - | On Tertiary | | tertiaryContainer | - | - | - | Tertiary Container | | onTertiaryContainer | - | - | - | On Tertiary Container | | error | - | - | - | Error | | onError | - | - | - | On Error | | errorContainer | - | - | - | Error Container | | onErrorContainer | - | - | - | On Error Container | | background | - | - | - | Background | | onBackground | - | - | - | On Background | | surface | - | - | - | Surface | | onSurface | - | - | - | On Surface | | surfaceVariant | - | - | - | Surface Variant | | onSurfaceVariant | - | - | - | On Surface Variant | | outline | - | - | - | Outline | | outlineVariant | - | - | - | Outline Variant | | shadow | - | - | - | Shadow | | scrim | - | - | - | Scrim | | inverseSurface | - | - | - | Inverse Surface | | inverseOnSurface | - | - | - | Inverse On Surface | | inversePrimary | - | - | - | Inverse Primary | | primaryFixed | - | - | - | Primary Fixed | | onPrimaryFixed | - | - | - | On Primary Fixed | | primaryFixedDim | - | - | - | Primary Fixed Dim | | onPrimaryFixedVariant | - | - | - | On Primary Fixed Variant | | secondaryFixed | - | - | - | Secondary Fixed | | onSecondaryFixed | - | - | - | On Secondary Fixed | | primaryFixedDim | - | - | - | Secondary Fixed Dim | | onSecondaryFixedVariant | - | - | - | On Secondary Fixed Variant | | tertiaryFixed | - | - | - | Tertiary Fixed | | onTertiaryFixed | - | - | - | On Tertiary Fixed | | primaryFixedDim | - | - | - | Tertiary Fixed Dim | | onTertiaryFixedVariant | - | - | - | On Tertiary Fixed Variant | | surfaceDim | - | - | - | Surface Dim | | surfaceBright | - | - | - | Surface Bright | | surfaceContainerLowest | - | - | - | Surface Container Lowest | | surfaceContainerLow | - | - | - | Surface Container Low | | surfaceContainer | - | - | - | Surface Container | | surfaceContainerHigh | - | - | - | Surface Container High | | surfaceContainerHighest | - | - | - | Surface Container Highest |

NOTE:

High Contrast

| Name | Classic โญ๏ธ | Light โ˜€๏ธ | Dark ๐ŸŒ‘ | Role | |:-----|:-----------|:--------|:--------|:-----| | primary | - | - | - | Primary | | surfaceTint | - | - | - | Surface Tint | | onPrimary | - | - | - | On Primary | | primaryContainer | - | - | - | Primary Container | | onPrimaryContainer | - | - | - | On Primary Container | | secondary | - | - | - | Secondary | | onSecondary | - | - | - | On Secondary | | secondaryContainer | - | - | - | Secondary Container | | onSecondaryContainer | - | - | - | On Secondary Container | | tertiary | - | - | - | Tertiary | | onTertiary | - | - | - | On Tertiary | | tertiaryContainer | - | - | - | Tertiary Container | | onTertiaryContainer | - | - | - | On Tertiary Container | | error | - | - | - | Error | | onError | - | - | - | On Error | | errorContainer | - | - | - | Error Container | | onErrorContainer | - | - | - | On Error Container | | background | - | - | - | Background | | onBackground | - | - | - | On Background | | surface | - | - | - | Surface | | onSurface | - | - | - | On Surface | | surfaceVariant | - | - | - | Surface Variant | | onSurfaceVariant | - | - | - | On Surface Variant | | outline | - | - | - | Outline | | outlineVariant | - | - | - | Outline Variant | | shadow | - | - | - | Shadow | | scrim | - | - | - | Scrim | | inverseSurface | - | - | - | Inverse Surface | | inverseOnSurface | - | - | - | Inverse On Surface | | inversePrimary | - | - | - | Inverse Primary | | primaryFixed | - | - | - | Primary Fixed | | onPrimaryFixed | - | - | - | On Primary Fixed | | primaryFixedDim | - | - | - | Primary Fixed Dim | | onPrimaryFixedVariant | - | - | - | On Primary Fixed Variant | | secondaryFixed | - | - | - | Secondary Fixed | | onSecondaryFixed | - | - | - | On Secondary Fixed | | primaryFixedDim | - | - | - | Secondary Fixed Dim | | onSecondaryFixedVariant | - | - | - | On Secondary Fixed Variant | | tertiaryFixed | - | - | - | Tertiary Fixed | | onTertiaryFixed | - | - | - | On Tertiary Fixed | | primaryFixedDim | - | - | - | Tertiary Fixed Dim | | onTertiaryFixedVariant | - | - | - | On Tertiary Fixed Variant | | surfaceDim | - | - | - | Surface Dim | | surfaceBright | - | - | - | Surface Bright | | surfaceContainerLowest | - | - | - | Surface Container Lowest | | surfaceContainerLow | - | - | - | Surface Container Low | | surfaceContainer | - | - | - | Surface Container | | surfaceContainerHigh | - | - | - | Surface Container High | | surfaceContainerHighest | - | - | - | Surface Container Highest |

NOTE:


Custom

NOTE: Custom theme colors for AbTheme will be displayed or added here.

Tonal palettes

A tonal palette consists of thirteen tones, including white and black. A tone value of 100 is equivalent to the idea of light at its maximum and results in white. Every tone value between 0 and 100 expresses the amount of light present in the color.

| Tone | Primary | Secondary | Tertiary | Error | Neutral | Neutral Variant | |:----|:-----|:------|:------|:-------|:--------|:--------| | 0 | #000000 | #000000 | #000000 | #000000 | #000000 | #000000 | | 5 | - | - | - | - | - | - | | 10 | #2d1600 | #231b00 | #002020 | #410001 | #201a17 | #231a11 | | 15 | - | - | - | - | - | - | | 20 | #4a2800 | #3a3000 | #003738 | #680003 | #362f2b | #392e24 | | 30 | #6a3c00 | #554600 | #004f50 | #930006 | #4d4541 | #51453a | | 40 | #8b5000 | #715d00 | #006a6b | #ba1b1b | #655d59 | #695c51 | | 50 | #ac6604 | #8d7500 | #008586 | #dd3730 | #7e7571 | #837569 | | 60 | #cb7f24 | #ab8e00 | #00a1a2 | #ff5449 | #998f8a | #9e8e81 | | 70 | #ea993d | #caa800 | #00bebe | #ff897a | #b4a9a4 | #b9a89b | | 80 | #ffb86b | #eac400 | #02dcdc | #ffb4a9 | #d0c4bf | #d4c3b5 | | 90 | #ffdcba | #ffe15e | #14fbfb | #ffdad4 | #ece0db | #f2dfd1 | | 95 | #ffeedf | #fff0bb | #a9ffff | #ffede9 | #faeee8 | #ffeddf | | 98 | - | - | - | - | - | - | | 99 | #fcfcfc | #fffbf7 | #efffff | #fcfcfc | #fcfcfc | #fcfcfc | | 100 | #ffffff | #ffffff | #ffffff | #ffffff | #ffffff | #ffffff |

NOTE: These tonal palettes were generated by Material Theme Builder.

Typography

Roboto

| Name | Type | Size | Character | Line | Paragraph | |:-----|:-----|:-----|:----------|:-----|:----------| | H1 | Light | 96 | -1.5 | 112 | 0 | | H2 | Light | 60 | -0.5 | 71 | 0 | | H3 | Regular | 48 | auto | 57 | 0 | | H4 | Regular | 34 | 0.25 | 40 | 0 | | H5 | Regular | 24 | auto | 28 | 0 | | H6 | Medium | 20 | 0.25 | 24 | 0 | | Body 1 | Regular | 16 | 0.5 | 28 | 0 | | Body 2 | Regular | 14 | 0.25 | 20 | 0 | | Subtitle 1 | Regular | 16 | 0.15 | 24 | 0 | | Subtitle 2 | Medium | 14 | 0.1 | 24 | 0 | | Button | Medium | 14 | 1.25 | 16 | 0 | | Caption | Regular | 12 | 0.4 | 16 | 0 | | Overline | Medium | 12 | 2 | 16 | 0 |

NOTE: Character = Letter Spacing & Line = Height

Shape

The supported shapes are Circle โšช๏ธ, Square โ—ป๏ธ and Squircle โบ .

Shadow

| Elevation | X | Y | Blur | Spread | |:----------|:--|:--|:-----|:-------| | 01dp-1 | 0 | 1 | 1 | 0 | | 01dp-2 | 0 | 2 | 1 | -1 | | 01dp-3 | 0 | 1 | 3 | 0 | | 02dp-1 | 0 | 2 | 2 | 0 | | 02dp-2 | 0 | 3 | 1 | -2 | | 02dp-3 | 0 | 1 | 5 | 0 | | 03dp-1 | 0 | 3 | 4 | 0 | | 03dp-2 | 0 | 3 | 3 | -2 | | 03dp-3 | 0 | 1 | 8 | 0 | | 04dp-1 | 0 | 4 | 5 | 0 | | 04dp-2 | 0 | 1 | 10 | 0 | | 04dp-3 | 0 | 2 | 4 | -1 | | 06dp-1 | 0 | 6 | 10 | 0 | | 06dp-2 | 0 | 1 | 18 | 0 | | 06dp-3 | 0 | 3 | 5 | -1 | | 08dp-1 | 0 | 8 | 10 | 1 | | 08dp-2 | 0 | 3 | 14 | 2 | | 08dp-3 | 0 | 5 | 5 | -3 | | 09dp-1 | 0 | 9 | 12 | 1 | | 09dp-2 | 0 | 3 | 16 | 2 | | 09dp-3 | 0 | 5 | 6 | -3 | | 12dp-1 | 0 | 12 | 17 | 2 | | 12dp-2 | 0 | 5 | 22 | 4 | | 12dp-3 | 0 | 7 | 8 | -4 | | 16dp-1 | 0 | 16 | 24 | 2 | | 16dp-2 | 0 | 6 | 30 | 5 | | 16dp-3 | 0 | 8 | 10 | -5 | | 24dp-1 | 0 | 24 | 38 | 3 | | 24dp-2 | 0 | 9 | 46 | 8 | | 24dp-3 | 0 | 11 | 15 | -7 |

NOTE:


Learn More abElements

To learn more about abElements, take a look at the following resources:

You can check out the abElements GitHub repository for more details.

TODOs

License

This ab-nextjs-theme project is MIT Licensed ;)