0.39.9 • Published 5 months ago

@gotamedia/fluffy v0.39.9

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Fluffy 🦄

It's so fluffy!

Fluffy is a opinionated but highly customizable UI library used by Gota Media AB.

DEMO

Install

npm i @gotamedia/fluffy

Peer dependencies

Fluffy requires that you install following depdencies in your own project

npm i react styled-components

Usage

import { Icon, Icons } from '@gotamedia/fluffy'

// OR use direct import if you care about your APP's bundle size 😉
// import Icon, { Icons } from '@gotamedia/fluffy/Icon'

const MyComponent = () => (
    <div>
        <Icon icon={Icons.RocketLaunch}/>
    </div>
)

Import Fluffy's Theme to enable style for all Fluffy components.

import { render } from 'react-dom'
import { ThemeProvider } from 'styled-components'
import { Paper, getTheme } from '@gotamedia/fluffy'

// OR use direct import if you care about your APP's bundle size 😉
// import Paper from '@gotamedia/fluffy/Paper'
// import { getTheme } from '@gotamedia/fluffy/theme'

const App = () => (
    <div>
        <Paper>
            {`It's so themeable! 👩‍🎤`}
        </Paper>
    </div>
)

render((
    <ThemeProvider theme={getTheme()}>
        <App />
    </ThemeProvider>
), document.getElementById('root'))

Develop in Fluffy

Fluffy uses Storybook to present it's components, each component should have a *.stories.tsx in it's root dir in order to show it in Storybook

import React from 'react'
import { Story, Meta } from '@storybook/react'

import MyComponent from './index'
import * as Types from './types'

export default {
    title: 'Components/MyComponent',
    component: MyComponent,
    argTypes: {
    },
} as Meta<typeof MyComponent>

const Template: Story<Types.MyComponentProps & {
    text: string
}> = (props) => {

    return (
        <MyComponent>
            {props.text}
        </MyComponent>
    )
}

export const Basic = Template.bind({})

Basic.args = {
    text: 'My fluffy component'
}

To see your component run:

npm run storybook

It will open a new tab in your browser with all the component stories on the left sidebar

Develop with Fluffy

In order to develop with Fluffy with your project locally, make sure to have yalc installed globally on your machine by running:

npm install -g yalc

Publish locally

To use Fluffy in your project locally make sure to build Fluffy by running:

npm run local

This will make sure to build and publish Fluffy into a local registery on your machine so you can install it as a package in your projects

Install locally

In your project run the following command:

yalc add @gotamedia/fluffy
npm install

After you are done with running Fluffy locally in your project, make sure to clean up and remove the link from your project's dependencies

yalc remove @gotamedia/fluffy

This will make sure to remove the link from your project's dependencies and revert to the old value if there was any

Read more about yalc

License

MIT

🦄 You have reached the end 🦄

Fluffy Development / contributing

So you want to get fluffy.

Trunk based development

This project uses a trunk based development workflow.

Conventional commits

This project works with conventional commits.

0.39.9

5 months ago

0.39.8

5 months ago

0.39.7

6 months ago

0.39.6

7 months ago

0.39.5

8 months ago

0.39.4

8 months ago

0.39.3

9 months ago

0.39.2

9 months ago

0.39.1

9 months ago

0.39.0

9 months ago

0.38.0

10 months ago

0.37.2

10 months ago

0.35.4

10 months ago

0.37.1

12 months ago

0.37.0

12 months ago

0.36.2

1 year ago

0.36.1

1 year ago

0.36.0

1 year ago

0.35.3

1 year ago

0.35.2

1 year ago

0.35.1

1 year ago

0.35.0

1 year ago

0.34.0

1 year ago

0.33.2

1 year ago

0.33.1

1 year ago

0.33.0

1 year ago

0.32.1

1 year ago

0.32.0

2 years ago

0.31.0

2 years ago

0.30.1

2 years ago

0.30.0

2 years ago

0.29.4

2 years ago

0.29.3

2 years ago

0.29.2

2 years ago

0.29.1

2 years ago

0.29.0

2 years ago

0.28.2

2 years ago

0.28.1

2 years ago

0.28.0

2 years ago

0.27.1

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.2

2 years ago

0.21.1

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.18.0

2 years ago

0.17.0

2 years ago

0.16.0

2 years ago

0.15.1

2 years ago

0.15.0

2 years ago

0.14.1

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.2

2 years ago

0.8.1

2 years ago

0.7.49

2 years ago

0.7.48

2 years ago

0.7.47

2 years ago

0.7.46

2 years ago

0.7.45

2 years ago

0.7.44

2 years ago

0.7.43

2 years ago

0.7.42

2 years ago

0.7.41

2 years ago

0.7.40

2 years ago

0.7.39

2 years ago

0.7.38

2 years ago

0.7.37

2 years ago

0.7.36

2 years ago

0.7.35

2 years ago

0.7.34

2 years ago

0.7.33

2 years ago

0.7.30

2 years ago

0.7.29

2 years ago

0.7.28

2 years ago

0.7.27

2 years ago

0.7.26

2 years ago

0.7.24

3 years ago

0.7.23

3 years ago

0.7.22

3 years ago

0.7.21

3 years ago

0.7.20

3 years ago

0.7.19

3 years ago

0.7.17

3 years ago

0.7.16

3 years ago

0.7.15

3 years ago

0.7.14

3 years ago

0.7.13

3 years ago

0.7.12

3 years ago

0.7.11

3 years ago

0.7.10

3 years ago

0.7.9

3 years ago

0.7.8

3 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago