16.2.1 • Published 8 months ago

@logrock/pebbles v16.2.1

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

@LogRock/Pebbles

Coverage Status

Welcome to our Component Library! This is an implementation of our Asphalt Design System.

Here are some useful links:

Documentation/Storybook

NPMJS registry

About us: https://logrock.com

Using this library:

This library is meant to be used in React projects. To use it, you will have to setup your prefered React environment and add a few other dependencies first:

# styled components
yarn add styled-components
yarn add styled-breakpoints
yarn add react-select # if you intend on using the Select component
yarn add react-spring-bottom-sheet # if you intend on using the BottomSheet component
yarn add date-fns # if you intend on using the DateInput component

# fonts
yarn add @fontsource/archivo

# icons
yarn add react-icons

Make the Archivo font available in your project by importing it

import "@fontsource/archivo/400.css";
import "@fontsource/archivo/500.css";
import "@fontsource/archivo/600.css";
import "@fontsource/archivo/700.css";
import "@fontsource/archivo/800.css";

You can, alternatively, make it available as a Variable font if you want. The only requirement is having all weights from 400 to 800 available for the default theme to work best.

If you customize the theme by changing any of the fontFamily properties, make sure that the font you want to use is also made available, by exposing it in any ways you like (fontsource is the best!)

If you intend on using the Bottom sheet component, you will also need to import the styles for it:

import "react-spring-bottom-sheet/dist/style.css";

Install this lib:

yarn add @logrock/pebbles

Now, wrap your app (or whatever components you plan on using this library at) with a styled-components' ThemeProvider, passing along a theme.

Also, this is a google place for the global icon configuration, using react-select's IconContext.Provider you can specify the global settings for the icons. This is optional but recommended.

import { ThemeProvider } from "styled-components";
import { lightTheme } from "@logrock/pebbles";

const MyApp = () => {
  return (
    <ThemeProvider theme={lightTheme}>
      <IconContext.Provider
        value={{
          style: {
            fontSize: lightTheme.icons.size,
            color: lightTheme.icons.color,
          },
        }}
      >
        <MyAppContent />
      </IconContext.Provider>
    </ThemeProvider>
  );
};

For your convenience, we currently provide a light and a dark theme that you can use and override as you see fit. Check out all it's options at theme.ts

We also expose a Theme type if you use Typescript, autocomplete at will!

import { Theme } from "@logrock/pebbles";

And you are all set! From now on, just import and use any components you want. You can also access the theme variables using styled-components' own ThemeContext anywhere (and also as a theme prop in your custom styled components)

Contributing

Thank you for your interest, check out CONTRIBUTING.md for more info.

15.3.0

8 months ago

14.5.0

8 months ago

16.1.0

8 months ago

15.0.0

8 months ago

15.0.1

8 months ago

16.2.0

8 months ago

16.2.1

8 months ago

15.1.0

8 months ago

14.3.0

10 months ago

15.2.0

8 months ago

14.4.0

10 months ago

16.0.2

8 months ago

16.0.1

8 months ago

16.0.0

8 months ago

14.1.0

11 months ago

14.1.1

11 months ago

14.2.0

11 months ago

14.2.1

11 months ago

14.2.2

11 months ago

13.12.2

1 year ago

13.12.3

12 months ago

13.12.4

11 months ago

13.12.5

11 months ago

13.12.6

11 months ago

13.12.7

11 months ago

14.0.0

11 months ago

13.10.0

1 year ago

13.10.1

1 year ago

13.8.2

1 year ago

13.8.1

1 year ago

13.11.0

1 year ago

13.11.1

1 year ago

13.11.2

1 year ago

13.9.0

1 year ago

13.12.0

1 year ago

13.12.1

1 year ago

13.7.0

1 year ago

13.3.1

1 year ago

13.3.2

1 year ago

13.3.0

1 year ago

13.8.0

1 year ago

13.4.2

1 year ago

13.4.0

1 year ago

13.4.1

1 year ago

13.0.0

1 year ago

13.5.0

1 year ago

13.1.1

1 year ago

13.1.0

1 year ago

13.6.0

1 year ago

13.6.1

1 year ago

13.2.0

1 year ago

12.0.0

1 year ago

11.2.2

1 year ago

11.2.0

1 year ago

11.2.1

1 year ago

11.1.0

1 year ago

12.1.0

1 year ago

10.0.0

2 years ago

10.0.1

2 years ago

10.0.2

2 years ago

10.0.3

2 years ago

10.0.4

2 years ago

9.6.1

2 years ago

10.2.0

2 years ago

11.0.0

2 years ago

9.7.0

2 years ago

10.1.0

2 years ago

10.1.1

2 years ago

9.4.0

2 years ago

9.1.5

2 years ago

9.5.0

2 years ago

9.1.4

2 years ago

9.1.3

2 years ago

9.1.2

2 years ago

7.9.3

2 years ago

7.9.5

2 years ago

7.9.4

2 years ago

9.0.1

2 years ago

9.0.0

2 years ago

9.6.0

2 years ago

9.1.1

2 years ago

9.1.0

2 years ago

9.3.0

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

9.2.0

2 years ago

7.3.0

2 years ago

7.8.0

2 years ago

7.4.2

2 years ago

7.4.1

2 years ago

7.8.4

2 years ago

7.8.3

2 years ago

7.8.2

2 years ago

7.8.1

2 years ago

7.8.5

2 years ago

7.0.0

2 years ago

7.4.0

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

7.5.0

2 years ago

7.9.2

2 years ago

6.16.0

2 years ago

7.9.1

2 years ago

7.9.0

2 years ago

6.15.2

2 years ago

7.1.0

2 years ago

7.6.1

2 years ago

7.6.0

2 years ago

6.15.1

2 years ago

6.15.0

2 years ago

6.14.3

2 years ago

7.2.0

2 years ago

7.7.1

2 years ago

7.7.0

2 years ago

6.14.2

2 years ago

6.14.1

2 years ago

6.3.0

2 years ago

6.5.0

2 years ago

6.11.1

2 years ago

6.11.0

2 years ago

6.13.0

2 years ago

6.6.0

2 years ago

6.8.0

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.4.1

2 years ago

6.4.0

2 years ago

6.12.0

2 years ago

6.10.0

2 years ago

6.14.0

2 years ago

6.7.0

2 years ago

6.5.2

2 years ago

6.5.1

2 years ago

6.9.0

2 years ago

6.5.4

2 years ago

6.7.1

2 years ago

6.5.3

2 years ago

6.9.1

2 years ago

6.5.5

2 years ago

6.1.0

2 years ago

5.8.2

2 years ago

5.8.1

2 years ago

5.8.0

2 years ago

5.6.0

2 years ago

6.0.0

2 years ago

5.9.1

2 years ago

5.9.0

2 years ago

5.7.0

2 years ago

5.5.1

2 years ago

5.5.0

2 years ago

5.4.0

2 years ago

5.1.3

2 years ago

5.3.0

2 years ago

5.1.2

2 years ago

5.2.0

2 years ago

5.1.1

2 years ago

5.0.2

2 years ago

5.1.0

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

3.2.2

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

4.3.1

2 years ago

4.1.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

4.0.2

2 years ago

5.5.3

2 years ago

5.5.2

2 years ago

2.2.0

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago