Code Monkey home page Code Monkey logo

react-boilerplate's Introduction

REACT : starter kit

Checkout the preact version of this kit (1/3 the size)

Light Theme

screenshot_light

Dark Theme

screenshot_dark

Med Theme

screenshot_med

Designed specifically to acheive perfect lighthouse scores. Adheres to all Accessibility standards (aria, tabbing, contrast, etc.) and is a perfect starting point in terms of SEO (no plugins). Comes with several custom components, a few custom hooks, several utility functions, over 100 useful CSS classes, typed props, and responsive design. Written to be as lightweight as possible without sacrificing utility.

Clone

git clone
cd react-boilerplate
npm install
npm run dev

Lighthouse

  • adheres to aria guidelines
    • logical tab order (all interactive elements are focusable)
    • offscreen component content will not appear to aria
    • proper roles/labels/attributes
    • accessible names
  • adheres to all trust & safety best practices
    • zero plugins
  • lighthouse (100 100 100 100)
  • Custom Components :

Styling

  • vanilla css
  • three themes
    • each theme features 26 carefully chosen colors
    • Each theme passes AAA WCAG Contrast Minimums
    • all components have both dark/primary variations for each theme
  • Built with mobile first in mind - responsive for any orientation
  • proper balance of REM units for easy queries
  • over 100 reusable CSS classes for core elements like buttons/input
  • extensive, carefully crafted CSS reset to handle modern browsers
  • four locally downloaded & pre-configured fonts to choose from (!use only 2)

Custom Components

  • All components configured with prop-types and attributes to handle aria.
  • Tooltip Component
    • close on click outside
    • 4 base configurations (left/right/bottom/top)
    • dynamic positioning (left & right bounds)
    • easy configuration (wrap element & provide title)
  • Toast Component (popups/alerts)
    • close on click outside
    • pass callback
    • timeout
    • tiny - less than 800 bytes gzipped
  • Select Component (custom)
    • close on click outside
    • dynamic positioning (opens on top or bottom depending on space)
  • Tag Component
  • Checkbox Component

Other Components

  • Sidebar
  • Header
  • Link
  • Button
    • Four variations
  • Input
    • Four variations

Utility Functions

  • 9 date/time methods
  • copy to clipboard method
  • form validation
  • generate uuid
  • handle user preferences (light/dark mode) / locale
  • handle popup bounds (adjust popup location based on window)
  • enable location

Custom Hooks

  • useDebounce
  • useIsFirstRender
  • useLocal
  • useClickOutside

react-boilerplate's People

Contributors

chaseottofy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.