Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 아이오닉 스크롤 이벤트
- 앵귤러 모달
- 검색
- Oracle LISTAGG 사용 예시
- 옵저버블
- prisma
- 모달
- angular button
- 스크롤 이벤트 감지
- Router
- mysql if
- 앵귤러 애니메이션
- formgroup
- route
- Angular Router
- angular modal
- 호버
- flex-1
- TAILWIND
- summary
- 셀렉트박스 커스텀
- modal
- egov spring ajax 사용 예시
- ajax 사용 예시
- 스크롤 이벤트
- angular route
- angular animation
- scroll
- ApexChart
- Ionic modal
Archives
- Today
- Total
깜놀하는 해므찌로
tailwind 컬러 등록 자동화 예시 / generateColor 본문
반응형
SMALL
npm install --force @nextcss/color-tools
1. 설치
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,ts}"],
theme: {
extend: {
colors: {
primary: generateColors("#001650"),
},
},
},
plugins: [],
};
function generateColors(color) {
const { toneMap } = require("@nextcss/color-tools");
return {
DEFAULT: color,
...toneMap(color),
};
}
2. tailwind.config.js 내부에 컬러 생성 메소드 선언 및 호출
반응형
LIST