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
- 아이오닉 스크롤 이벤트
- 검색
- angular button
- flex-1
- prisma
- summary
- 스크롤 이벤트 감지
- 모달
- 셀렉트박스 커스텀
- formgroup
- scroll
- egov spring ajax 사용 예시
- Router
- angular animation
- ApexChart
- angular route
- modal
- mysql if
- Oracle LISTAGG 사용 예시
- 옵저버블
- angular modal
- 앵귤러 모달
- 스크롤 이벤트
- 앵귤러 애니메이션
- route
- Ionic modal
- TAILWIND
- 호버
- ajax 사용 예시
- Angular Router
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