csnx icon indicating copy to clipboard operation
csnx copied to clipboard

Create `@guardian/source-development-kitchen`

Open sndrs opened this issue 9 months ago • 5 comments

What are you changing?

Creates @guardian/source-development-kitchen, in a correlate to #1435.

Why?

If foundations and react-components are becoming sections of @guardian/source, it makes sense to do the same for dev kitchen:

Before

import { palette } from '@guardian/source-foundations';
import { Button } from '@guardian/source-react-components';
import { StarRating } from '@guardian/source-react-components-development-kitchen';

After

import { palette } from '@guardian/source/foundations';
import { Button } from '@guardian/source/react-components';
import { StarRating } from '@guardian/source-development-kitchen/react-components';

This leaves us with two decoupled, consistent source packages:

  1. @guardian/source
  2. @guardian/source-development-kitchen

This means they are both then more extensible: they can stay as they are, or accommodate future developments, e.g.:

import { Button } from '@guardian/source/web-components';
import { psychadelicPalette } from '@guardian/source-development-kitchen/foundations';
import { StarRating } from '@guardian/source-development-kitchen/swift-components';

sndrs avatar May 16 '24 15:05 sndrs