
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@croquiscom/pastel-ui
Advanced tools
ํ์คํ  UI๋ ์นด์นด์ค์คํ์ผ ํํธ๋์ผํฐ ๋์์ธ ์์คํ ์ ์ํ ๋ฆฌ์กํธ ๊ธฐ๋ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค.
ํ๋ก์ ํธ์ @croquiscom/pastel-ui๊ณผ peer dependencies๋ฅผ ์ถ๊ฐํด์ค๋๋ค.
npm install --save @croquiscom/pastel-ui @emotion/react @emotion/styled react react-dom
import React from 'react'
import { value color, value text_styles, value HStack } from '@croquiscom/pastel-ui';
import styled from '@emotion/styled';
export default function Test() {
  return (
    <HStack spacing={10}>
      <BaseText variant='Heading_24_Bold' color={colors.gray900}>Hello</BaseText>
      <StyledText>Pastel UI</StyledText>
    </HStack>
  );
}
const StyledText = styled.p`
  ${text_styles.Body_14_SemiBold};
  color: ${colors.gray600};
`;
Node.js v14+, Yarn v1.22+
๋ก์ปฌ์ ํด๋ก ๋ ๋ ํฌ์งํ ๋ฆฌ๋ก ์ด๋ํ์ฌ, node_modules๋ฅผ ์ค์นํฉ๋๋ค.
yarn
์คํ ๋ฆฌ๋ถ์ ํตํด ํ์ธํ๊ธฐ ์ํด์ ๋ค์ ๋ช ๋ น์ด๋ฅผ ์คํํฉ๋๋ค. (๋ธ๋ผ์ฐ์ ์์ http://localhost:6006/ ๋ก ์ด๋ํ์ธ์.)
yarn storybook
โโโ assets
โ   โโโ icons
โโโ src
โ   โโโ [COMPONENT]
โ   โ   โโโ index.ts
โ   โ   โโโ [COMPONENT].tsx
โ   โ   โโโ [COMPONENT].stories.mdx
โ   โ   โโโ types.ts
โ   โ   โโโ styles.ts
โ   โโโ icons
โ   โ   โโโ generated
โ   โ   โโโ Icon.stories.tsx
โ   โ   โโโ Icon.stories.mdx
โ   โโโ global_styles
โ   โโโ themes
โ   โโโ styles
โ   โโโ hooks
โ   โโโ stories
โ   โโโ types
โ   โโโ index.ts
โโโ tools
    โโโ svgr-component-template.js
    โโโ svgr-index-template.js
*.stories.tsx) ํ์ผ์ ํฌํจํฉ๋๋ค.
styles.ts, types.ts๊ณผ ๊ฐ์ ํ์ผ์ ํฌํจํ  ์ ์์ต๋๋ค.index.ts๋ฅผ ํตํด export ํฉ๋๋ค.pastel-ui-๋ฅผ ๋ถ์ฌ์ค๋๋ค.โ ๏ธ SVGR์ ํตํด svgํ์ผ์ ๋ฆฌ์กํธ ์ปดํฌ๋ํธ๋ก ์ ๋ค๋ ์ดํธํฉ๋๋ค. src/icons/generated ํ์์์ ์ง์  ์์ ํ์ง ๋ง์์ฃผ์ธ์!
assets/icons์ svg๋ฅผ ์ถ๊ฐํฉ๋๋ค.yarn svgr์ ์คํํฉ๋๋ค.src/icons/generated ํ์์ ์ ๋ค๋ ์ดํธ๋ ์์ด์ฝ ๋ฆฌ์กํธ ์ปดํฌ๋ํธ์ src/icons/generated/index.ts์ ํด๋น ์ปดํฌ๋ํธ์ export๊ฐ ์ถ๊ฐ๋ ๊ฒ์ ํ์ธํฉ๋๋ค.yarn storybook์ ์คํํ์ฌ ์คํ ๋ฆฌ๋ถ ๋ด์์ Icon/Icons ๋ฉ๋ด๋ก ์ด๋ํ์ฌ ๋ชฉ๋ก์์ ํด๋น ์์ด์ฝ์ด ์ ์ถ๊ฐ๋์๋์ง ํ์
๋๋ค.Github Action์ ํตํด ์๋์ผ๋ก ๋ฐฐํฌํ๊ณ ์์ต๋๋ค.
changeset ํ์ผ์ ํฌํจํ PR์ด main์ ๋จธ์ง๋๋ฉด, Github Action ์ํฌํ๋ก์ฐ๊ฐ ๋์๋๋ฉฐ, ๋ฒ์  ๋ฐฐํฌ๋ฅผ ์ํ Version Packages PR์ด ์์ฑ๋ฉ๋๋ค. ํด๋น PR์ ๋จธ์งํ๊ฒ ๋๋ฉด Github Action์ ์ํฌํ๋ก์ฐ๊ฐ ๋์๋๋ฉฐ ํจํค์ง๊ฐ ๋ฐฐํฌ๋ฉ๋๋ค.
npm ๊ถํ์ด ํ์ํฉ๋๋ค. npm์ ๊ฐ์ ํ ๊ถํ์ ์์ฒญํด์ฃผ์ธ์.
yarn changeset version
git commit -m "chore: version bump"
yarn release
FAQs
Design system for Zigzag's Partner Center
We found that @croquiscom/pastel-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.ย It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.