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