> ## 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.

# Framework

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>;
};

## Frontend

* <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> ใช้ (1 ใน 2 นี้)
  * [NextJS](https://nextjs.org) version 14 หรือ มากกว่า
  * [ViteJS](https://vite.dev/) version 6 หรือ มากกว่า

## Backend

* <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> ใช้ (1 ใน 2 นี้)
  * [NestJS](https://nestjs.com/)
  * [dotnet](https://dotnet.microsoft.com/en-us/download) version 6 หรือ 8
