Skip to content
styles and components for ryan rampersad sites and apps
TypeScript JavaScript
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
docs
src
.babelrc
.editorconfig
.gitignore
LICENSE
README.md
package.json
rollup.config.js
tsconfig.json
yarn.lock

README.md

Ryan Components

This is a package that contains many common styles and components for sites and apps with Ryan Rampersad branding.

This package is primarily developed with Gatsby consumers in mind. Any environment suitable to host react components and styled components should also work.

npm (scoped) npm bundle size (scoped) GitHub code size in bytes GitHub


Tech

Installation

To use this package as a consumer:

yarn add @ryanrampersad/ryan-components

via npm

Example

To use this package as a consumer after installation, import components that you need:

import { FullHero, HeroBody, BrandTitle } from "@ryanrampersad/ryan-components";

export function Screen() {
  return <div>
    <FullHero>
      <HeroBody>
        <BrandTitle>Ryan</BrandTitle>
      </HeroBody>
    </FullHero>
  </div>
}

Development

For development purposes, this package uses yalc to mitigate issues with yarn link adding erroneous duplicated dependencies. For more information about this issue, refer to the styled components documentation about bundling and related topics, and consult this issue.

Please install yalc to contribute to this package.

To build this package:

yarn build

To watch for changes and automatically rebuild:

yarn watch

To watch for changes, automatically rebuild and automatically yalc push (update local consumers copy of the package):

yarn dev

This command can be used in conjunction, for example, with gatsby start to automatically rebuild the consumer when this package's changes are pushed.

Note: if yarn dev does not work initially, try yalc publish to add this package to the yalc store.

Font

This package may assume some specific fonts are available. These fonts must be provided by the consumers of this package.

See the fonts documentation for details.

Gatsby html.js

Please review how you might customize your html.js file when using this package.

See the Gatsby html.js documentation.

You can’t perform that action at this time.