Convert px to vw/vh. Viewport units. For responsive design. Assumes 1920x1080.
Convert px to vw/vh. Viewport units. For responsive design. Assumes 1920x1080.
Category: เครื่องมือออกแบบ • Free online tool • No signup required
เครื่องมือที่คุณอาจต้องการ
Convert pixels to rem. Custom base font size. For responsive typography.
เครื่องมือออกแบบConvert em to pixels. Custom base. For typography and layout.
เครื่องมือออกแบบConvert between px, pt, em, rem, %, vw. All font size units. For typography.
เครื่องมือออกแบบCalculate line-height from font size and multiplier. For typography and readability.
เครื่องมือออกแบบCalculate letter-spacing in em from px. For typography and design.
เครื่องมือออกแบบVisual aspect ratio calculator with width/height inputs, common presets (16:9, 4:3, 1:1), device presets (iPhone, MacBook, 4K), and CSS aspect-ratio output.
เครื่องมือออกแบบ@media (min-width: 640px) {
/* sm */
}
@media (min-width: 768px) {
/* md */
}
@media (min-width: 1024px) {
/* lg */
}
@media (min-width: 1280px) {
/* xl */
}
@media (min-width: 1536px) {
/* 2xl */
}@include breakpoint(sm) {
/* your styles */
}
@include breakpoint(md) {
/* your styles */
}
@include breakpoint(lg) {
/* your styles */
}
@include breakpoint(xl) {
/* your styles */
}
@include breakpoint(2xl) {
/* your styles */
}// tailwind.config.js
module.exports = {
theme: {
extend: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
2xl: '1536px'
}
}
}
}