Công cụ CSS

Tạo, xem trước và tối ưu hóa CSS với trình tạo trực quan, hỗ trợ gradient, đổ bóng, bo góc, bố cục Grid và hơn thế nữa. Nén CSS để tăng tốc độ tải.

Tất cả công cụ CSS

25 tools
CSS Minifier/Formatter
Minify and beautify CSS code with size comparison before and after optimization
📏
CSS Unit Converter
Convert between CSS units: px, rem, em, pt, vw, vh, cm, mm, in, %
🌈
Gradient Generator
Generate CSS linear gradients with color and direction control and real-time preview
Box Shadow Generator
Generate CSS box-shadow with live preview, multiple layers, and popular presets
Border Radius Generator
Create custom CSS border-radius with independent corner control and preset shapes
🏗️
CSS Grid Generator
Visual CSS Grid layout generator with drag-and-drop cell placement and responsive code output
Text Shadow Generator
Generate CSS text-shadow effects with live preview, multiple layers, and preset styles
🔤
Font Previewer
Preview and compare Google Fonts with customizable size, weight, and styling options
Color Picker
Professional color picker with real-time conversion between HEX, RGB, HSL, and HSV formats
🌓
Color Contrast Checker
Check contrast between foreground and background colors against WCAG AA and AAA standards
HTML Color Names
Browse all 148 named HTML colors with hex values, RGB, and color swatches
CSP Generator
Generate Content Security Policy headers with preset templates
🎯
CSS Specificity Calculator
Calculate CSS selector specificity and compare selectors
🎬
CSS Animation Builder
Build CSS animations visually with real-time preview and keyframe editing
🔤
CSS Font Pairing
Preview and select Google Font pairings for web design
💨
CSS to Tailwind Converter
Convert CSS properties to Tailwind CSS utility classes
🏗️
CSS Grid Template Builder
Build CSS Grid layouts visually with drag handles and responsive code output
🪄
Gradient CSS Extractor
Extract and preview CSS gradients from any CSS code
🌈
CSS Gradient Editor
Visual CSS gradient builder with multiple color stops, linear and radial support, and live preview
🌑
CSS Shadow Generator
Visual CSS box-shadow and text-shadow generator with multiple layers
CSS Variables Generator
Generate CSS custom properties with visual preview and export as CSS
📝
CSS Formatter
Beautify and format CSS code with customizable indentation
🗜️
SVG Optimizer
Optimize SVG code by removing unnecessary data for better performance
SVG to Data URI
Convert SVG to data URI for CSS backgrounds and img src
Trình mô phỏng mù màu
Mô phỏng hiệu ứng thị giác của các loại rối loạn sắc giác khác nhau

Câu hỏi thường gặp

ToolHub có những công cụ CSS nào?
ToolHub cung cấp công cụ nén/định dạng CSS, trình tạo gradient, trình tạo đổ bóng, trình tạo bo góc, trình tạo CSS Grid, trình tạo đổ bóng văn bản, trình xem trước phông chữ, bộ chọn màu, trình kiểm tra độ tương phản màu và tham khảo tên màu HTML.
Làm thế nào để tạo CSS gradient?
Sử dụng công cụ tạo gradient để chọn màu và hướng, xem trước hiệu ứng gradient theo thời gian thực và sao chép mã CSS đã tạo. Hỗ trợ gradient tuyến tính với nhiều điểm dừng màu.
Trình kiểm tra độ tương phản màu dùng để làm gì?
Trình kiểm tra độ tương phản màu giúp bạn xác minh màu văn bản và màu nền có đáp ứng tiêu chuẩn trợ năng WCAG hay không. Nó tính toán tỷ lệ tương phản và cho biết tổ hợp màu của bạn có đạt cấp độ tuân thủ AA và AAA hay không.
Làm thế nào để nén mã CSS?
Dán mã CSS vào công cụ nén CSS, nó sẽ loại bỏ khoảng trắng, chú thích và các ký tự không cần thiết để giảm kích thước tệp. Cũng hiển thị so sánh kích thước tệp trước và sau khi nén.