11 เฉดของสี neutral ใน Tailwind CSS ตั้งแต่ neutral-50 (อ่อนที่สุด) ถึง neutral-950 (เข้มที่สุด) คลิกค่าใดก็ได้เพื่อคัดลอก
HEX และ RGB จาก Tailwind v3 ส่วน OKLCH จาก Tailwind v4 คลิกค่าเพื่อคัดลอก
@theme {
--color-neutral-50: oklch(98.5% 0 none);
--color-neutral-100: oklch(97% 0 none);
--color-neutral-200: oklch(92.2% 0 none);
--color-neutral-300: oklch(87% 0 none);
--color-neutral-400: oklch(70.8% 0 none);
--color-neutral-500: oklch(55.6% 0 none);
--color-neutral-600: oklch(43.9% 0 none);
--color-neutral-700: oklch(37.1% 0 none);
--color-neutral-800: oklch(26.9% 0 none);
--color-neutral-900: oklch(20.5% 0 none);
--color-neutral-950: oklch(14.5% 0 none);
}module.exports = {
theme: {
extend: {
colors: {
neutral: {
50: '#fafafa',
100: '#f5f5f5',
200: '#e5e5e5',
300: '#d4d4d4',
400: '#a3a3a3',
500: '#737373',
600: '#525252',
700: '#404040',
800: '#262626',
900: '#171717',
950: '#0a0a0a'
}
}
}
}
}:root {
--neutral-50: #FAFAFA;
--neutral-100: #F5F5F5;
--neutral-200: #E5E5E5;
--neutral-300: #D4D4D4;
--neutral-400: #A3A3A3;
--neutral-500: #737373;
--neutral-600: #525252;
--neutral-700: #404040;
--neutral-800: #262626;
--neutral-900: #171717;
--neutral-950: #0A0A0A;
}ใน Tailwind v3 neutral-500 คือ #737373 หรือ rgb(115, 115, 115) ส่วนใน Tailwind v4 กำหนดเป็น oklch(55.6% 0 none)
ใช้คลาสอย่าง bg-neutral-500, text-neutral-700 หรือ border-neutral-200 ใน Tailwind v4 ยังใช้ตัวแปร CSS var(--color-neutral-500) ใน CSS ของคุณเองได้ด้วย
Tailwind CSS, Material Design และ Bootstrap เป็นเครื่องหมายการค้าของเจ้าของแต่ละราย ค่าสีมาจากเอกสารและแพ็กเกจสาธารณะของแต่ละเฟรมเวิร์ก: Tailwind CSS 4.3.3 / 3.4.19, material-colors, Material Web (tokens), Bootstrap 5.3.8 / 4.6.2
เราใช้คุกกี้ของ Google Analytics เพื่อให้รู้ว่าเว็บไซต์ถูกใช้งานอย่างไร คุณยินยอมไหม ข้อมูลเพิ่มเติม