10.0.4 • Published 15 days ago

@traefiklabs/faency v10.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
15 days ago

Traefik Labs Faency

This is the React component library and design system for Traefik Labs.

Built with React, Typescript, Stitches and Radix UI Primitives.

Demo (Storybook)

You can find the Storybook with an example for every component in this library here.

Getting started

How to use Faency

npm install @traefiklabs/faency@next

# or

yarn add @traefiklabs/faency@next

Then you need to wire up the FaencyProvider which will hold the context with the Theme configuration and everything global that the components will need to work well.

The provider accepts one parameter besides the children, which is the primaryColor, that will be used to build the colors used on the Theme. This color can be one of the colors exported by the Stitches config, just by adding $ as a prefix, or can be any string that represents a CSS color.

import { FaencyProvider } from '@traefiklabs/faency';

const App = () => <FaencyProvider primaryColor="$blue8">{/* your app */}</FaencyProvider>;

Then you are ready to import components and use them on your project:

import { Flex, styled } from '@traefiklabs/faency';

const Container = styled(Flex, {
  padding: '$3',
  bg: '$black', // alias for backgroundColor
  mx: '$2', // alias for margin left and right
});

const MyComponent = () => <Container>{children}</Container>;

How to contribute

  • Make sure you have Node 12+, or if you prefer, you can work in a Docker container:
docker run -it -v $(pwd):/usr/local/src/ -w /usr/local/src/ -p 3000:3000 node:latest bash
  • Install the project dependencies
yarn install
  • Run the Storybook
yarn storybook

At this point, Storybook should automatically open up in your browser and you can start coding, it has hot reload so it will automatically re-render whenever a change is detected on the code.

Writing stories

We use Stories to demonstrate how components can behave and which variants they can take, so it's expected that every component has a Story. Check out how to create stories in the Storybook Docs.

Opening Pull requests

Pull requests are always welcome, but if you have a big change that you would like to work on, it's recommended to open an issue, so we can discuss it beforehand.

A good PR is small, focuses on a single feature or improvement, and clearly communicates the problem it solves.

Try not to include more than one issue in a single PR. It's much easier for us to review multiple small pull requests than one that is large and unwieldy.

Note we follow conventional commits.

Please follow the provided PR template.

Release process

We use semantic-release/semantic-release to automagically release any commit on the master branch.

Recommended conventional commit types:

["build", "chore", "ci", "docs", "feat", "fix", "revert", "test"]
  • build/chore: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (examples: CircleCi, SauceLabs)
  • docs: Documentation (comments) only changes
  • feat: A new feature
  • fix: A bug fix
  • revert: Reverts a previous commit
  • test: Adding missing tests or correcting existing tests

Breaking change syntax:

<type>!: <description>

Matching between commit type and release

[
  { breaking: true, release: 'major' },
  // types impacting release version
  { revert: true, release: 'patch' },
  { type: 'feat', release: 'minor' },
  { type: 'fix', release: 'patch' },
  { type: 'perf', release: 'patch' },
];

See semantic-release/commit-analyzer for more information.

@babel/core@babel/plugin-transform-react-pure-annotations@babel/preset-env@babel/preset-react@babel/preset-typescript@mdx-js/react@radix-ui/colors@radix-ui/react-accessible-icon@radix-ui/react-accordion@radix-ui/react-alert-dialog@radix-ui/react-aspect-ratio@radix-ui/react-avatar@radix-ui/react-checkbox@radix-ui/react-context-menu@radix-ui/react-dialog@radix-ui/react-dropdown-menu@radix-ui/react-icons@radix-ui/react-id@radix-ui/react-label@radix-ui/react-menu@radix-ui/react-popover@radix-ui/react-portal@radix-ui/react-progress@radix-ui/react-radio-group@radix-ui/react-separator@radix-ui/react-slider@radix-ui/react-slot@radix-ui/react-switch@radix-ui/react-tabs@radix-ui/react-toggle@radix-ui/react-toggle-group@radix-ui/react-tooltip@radix-ui/react-use-layout-effect@radix-ui/react-visually-hidden@rollup/plugin-babel@semantic-release/commit-analyzer@semantic-release/github@semantic-release/npm@semantic-release/release-notes-generator@stitches/react@storybook/addon-actions@storybook/addon-docs@storybook/addon-essentials@storybook/addon-links@storybook/builder-vite@storybook/client-api@storybook/mdx2-csf@storybook/react@storybook/react-vite@storybook/storybook-deployer@storybook/theming@types/jest@types/jest-axe@types/lodash.merge@types/node@types/react@types/tinycolor2babel-loaderconventional-changelog-conventionalcommitscross-envhuskylint-stagedlodash.mergenpprettierreactreact-domrolluprollup-plugin-typescript2semantic-releasestorybookstorybook-dark-modetinycolor2typescriptuse-debouncevite
10.0.4

15 days ago

10.0.2

3 months ago

10.0.0

3 months ago

10.0.1

3 months ago

9.7.0

4 months ago

9.6.2

5 months ago

9.6.1

6 months ago

9.6.0

6 months ago

9.5.2

8 months ago

9.5.1

10 months ago

9.5.0

10 months ago

9.4.0

11 months ago

9.3.0

1 year ago

9.2.0

1 year ago

9.1.3

1 year ago

9.1.2

1 year ago

9.1.1

1 year ago

9.1.0

1 year ago

8.0.0

1 year ago

9.0.0

1 year ago

7.2.0

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.0.1

2 years ago

5.0.0

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

2.3.0

2 years ago

2.5.0

2 years ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.3.4

2 years ago

2.6.0

2 years ago

2.5.1

2 years ago

2.3.3

2 years ago

7.0.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.2.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

1.0.0-7

2 years ago

1.0.0-6

2 years ago

1.0.0-9

2 years ago

1.0.0-8

2 years ago

1.0.0-10

2 years ago

1.0.0-11

2 years ago

1.0.0-12

2 years ago

1.0.0-5

2 years ago

1.0.0-4

2 years ago

1.0.0-3

2 years ago

1.0.0-2

2 years ago

1.0.0-1

3 years ago

1.0.0-0

3 years ago

0.9.1

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago