CSS Background Pattern Generator
Choose a pattern, colours, size, line width and angle, preview it live and copy lightweight CSS, or download it as SVG or PNG.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Choose a pattern
Seven styles.
- 2Pick colours
Lines and background.
- 3Adjust size and lines
And stripe angle.
- 4Preview
Live update.
- 5Copy or download
CSS, SVG or PNG.
Tentang alat ini
Background patterns add texture to a page, a slide or a card without loading image files. Modern CSS can draw grids, stripes, dots and checks entirely with gradients, which keeps pages fast and patterns crisp on any screen. This generator builds seven popular patterns: a simple grid, a blueprint grid with major and minor lines, polka dots, angled stripes, a checkerboard, gingham and an isometric grid for technical drawings. Adjust colours, size, line width and stripe angle, then copy the CSS or download a matching SVG or PNG.
Who this is for
Web designers and developers, presentation and document designers, teachers making worksheets, and anyone who needs graph paper, blueprint backgrounds or isometric grids.
The patterns
- **Grid:** thin horizontal and vertical lines, like graph paper. - **Blueprint:** fine minor lines with stronger major lines every five squares, on a deep blue by default. - **Polka dots:** evenly spaced circles from a radial gradient. - **Stripes:** a repeating linear gradient at any angle, from horizontal to diagonal. - **Checkerboard:** alternating squares from a conic gradient. - **Gingham:** overlapping translucent bands, like picnic cloth. - **Isometric grid:** lines at 30 degrees used for isometric sketches and game maps, drawn with a small inline SVG.
How CSS gradient patterns work
A gradient can switch abruptly from one colour to transparent, drawing a hard line. Setting `background-size` repeats that small tile across the element. Layering two gradients, one horizontal and one vertical, produces a grid; a `radial-gradient` makes a dot; a `conic-gradient` with four quarters makes checks.
Exporting
- **Copy CSS:** paste into any rule; the pattern scales with the element and needs no image. - **SVG:** a 1200 × 800 SVG using a repeating pattern, ideal for print, slides and design tools. - **PNG:** a 1200 × 800 image for documents and apps that do not support SVG.
Design tips
- Keep contrast low between the line and background colours so text above stays readable. - Put text on a solid panel over busy patterns. - Match the grid size to your layout spacing, for example 8 or 24 pixels. - Use the blueprint style for technical or engineering themes and gingham for friendly, casual designs.
Printing graph paper
Choose the grid, set the size and download the SVG; at 96 pixels per inch, a 38-pixel grid prints at roughly one centimetre. Check your printer's scale setting.
## Combining patterns Patterns can be layered: CSS accepts several background images separated by commas, so a dot pattern can sit on top of a grid, or stripes over a gradient. Put the topmost layer first. Use transparent or semi-transparent colours so the lower layers show through.
Theming
Swap the line and background colours with one click to create a dark version, or use CSS custom properties for the colours so a single change updates every pattern on a site. Patterns also look good at very low contrast as a subtle page texture behind cards.
Limits
Very small patterns with thin lines can shimmer on some screens. This is a design tool, not professional print advice.
Contoh berselesaian
A 24-pixel blueprint grid uses major lines every 120 pixels.
Ringkasnya
- Kategori: Pembangun & data
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: CSS Images Module Level 3 and 4 (linear, radial, repeating and conic gradients) and SVG patterns (W3C)
Soalan lazim
Do CSS patterns need images?
No, they are drawn with gradients.
How do I change the size?
Use the size slider; it sets background-size.
Can I export the pattern?
Yes, as SVG or PNG.
How is the isometric grid drawn?
With a small inline SVG tile.
Do patterns work in all browsers?
Yes, in all current major browsers.
Is anything uploaded?
No. Everything runs in your browser.
