File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ export default {
208208 [ "transform-origin" , "/docs/transform-origin" ] ,
209209 [ "transform-style" , "/docs/transform-style" ] ,
210210 [ "translate" , "/docs/translate" ] ,
211+ [ "zoom" , "/docs/zoom" ] ,
211212 ] as const ,
212213 Interactivity : [
213214 [ "accent-color" , "/docs/accent-color" ] ,
Original file line number Diff line number Diff line change @@ -262,6 +262,14 @@ Defining new theme variables in these namespaces will make new corresponding uti
262262 Perspective utilities like <code>perspective-near</code>
263263 </td>
264264 </tr>
265+ <tr>
266+ <td className=" whitespace-nowrap" >
267+ <code>--zoom-*</code>
268+ </td>
269+ <td>
270+ Zoom utilities like <code>zoom-compact</code>
271+ </td>
272+ </tr>
265273 <tr>
266274 <td className=" whitespace-nowrap" >
267275 <code>--aspect-*</code>
Original file line number Diff line number Diff line change 1+ import { ApiTable } from " @/components/api-table.tsx" ;
2+ import {
3+ ResponsiveDesign ,
4+ TargetingSpecificStates ,
5+ UsingACustomValue ,
6+ } from " @/components/content.tsx" ;
7+
8+ export const title = " zoom" ;
9+ export const description = " Utilities for scaling elements using zoom." ;
10+
11+ <ApiTable
12+ rows = { [
13+ [" zoom-<number>" , " zoom: <number>%;" ],
14+ [" zoom-(<custom-property>)" , " zoom: var(<custom-property>);" ],
15+ [" zoom-[<value>]" , " zoom: <value>;" ],
16+ ]}
17+ />
18+
19+ ## Examples
20+
21+ ### Basic example
22+
23+ Use ` zoom-<number> ` utilities like ` zoom-75 ` and ` zoom-125 ` to scale an element using the CSS ` zoom ` property:
24+
25+ ``` html
26+ <!-- [!code classes:zoom-75,zoom-100,zoom-125] -->
27+ <div class =" zoom-75 ..." >
28+ <!-- ... -->
29+ </div >
30+ <div class =" zoom-100 ..." >
31+ <!-- ... -->
32+ </div >
33+ <div class =" zoom-125 ..." >
34+ <!-- ... -->
35+ </div >
36+ ```
37+
38+ ### Using a custom value
39+
40+ <UsingACustomValue utility = " zoom" value = " 1.1" />
41+
42+ ### Applying on hover
43+
44+ <TargetingSpecificStates property = " zoom" defaultClass = " zoom-100" featuredClass = " zoom-125" />
45+
46+ ### Responsive design
47+
48+ <ResponsiveDesign property = " zoom" defaultClass = " zoom-100" featuredClass = " zoom-125" />
You can’t perform that action at this time.
0 commit comments