> ## Documentation Index
> Fetch the complete documentation index at: https://styleguide-nextjs.2smooth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# devDependencies

export const CLASSIFICATION_TERMS = {
  positive: {
    must: '+MUST',
    should: '+SHOULD',
    optional: '+OPTIONAL'
  },
  negative: {
    must: '-MUST',
    should: '-SHOULD',
    optional: '-OPTIONAL'
  }
};

export const TextHighlight = ({text = '', positive = false, negative = false}) => {
  let textColor = undefined;
  let bgColor = undefined;
  if (positive) {
    textColor = 'black';
    bgColor = 'oklch(72.77% 0.1798 128.27)';
  }
  if (negative) {
    textColor = 'black';
    bgColor = 'oklch(51.73% 0.2119 28.74)';
  }
  return <div style={{
    display: 'inline-block',
    fontWeight: 'bold',
    paddingLeft: '4px',
    paddingRight: '4px',
    border: '1px solid',
    borderRadius: '8px',
    color: textColor,
    backgroundColor: bgColor
  }}>
      {text}
    </div>;
};

* การเลือก package
  * <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> จะต้อง stable (ล่าสุดอาจยังไม่ stable กรุณาทำการอ่าน documentation ทุกครั้งก่อนเลือก version)
  * <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.should } /> น่าเชื่อถือ
  * <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.should } /> ยังไม่ deprecated

* <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> packages ที่ใช้ จะต้องใช้ version ตามที่ระบุเท่านั้น
  * [Storybook](https://storybook.js.org/docs)
  * [ESLint](https://eslint.org/docs/latest/use/getting-started)
  * [TailwindCSS](https://tailwindcss.com/docs/installation)
  * Barrelsby
  ```console theme={null}
  pnpm add -D -E barrelsby@2.8.1
  ```
  * PlopJS
  ```console theme={null}
  pnpm add -D -E plopjs@1.0.2
  ```
  * ShellJS
  ```console theme={null}
  pnpm add -D -E shelljs@0.8.5
  ```
  * shx
  ```console theme={null}
  pnpm add -D -E shx@0.3.4
  ```
