Skip to content

Commit 8f50cc1

Browse files
committed
wip
1 parent cac03b2 commit 8f50cc1

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/pages/docs/v4-beta.mdx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ Thanks to the new CSS [`color-mix(…)` function](https://developer.mozilla.org/
652652

653653
Now when you go to use a utility like `bg-primary/50`, it just works — no cryptic workarounds necessary:
654654

655-
```html {{ filename: 'HTML', style: 'framed', color: 'fuchsia' }}
655+
```html {{ filename: 'HTML' }}
656656
<div class="bg-primary/50">
657657
<!-- ... -->
658658
</div>
@@ -672,7 +672,7 @@ We've brought container query support into core for v4.0, so you don't need the
672672

673673
We've also added support for max-width container queries using the new `@max-*` variant:
674674

675-
```html {{ filename: 'HTML', style: 'framed', color: 'sky' }}
675+
```html {{ filename: 'HTML' }}
676676
<div class="@container">
677677
<div class="grid grid-cols-3 @max-md:grid-cols-1">
678678
<!-- ... -->
@@ -682,7 +682,7 @@ We've also added support for max-width container queries using the new `@max-*`
682682

683683
Like our regular breakpoint variants, you can also stack `@min-*` and `@max-*` variants to define container query ranges:
684684

685-
```html {{ filename: 'HTML', style: 'framed', color: 'indigo' }}
685+
```html {{ filename: 'HTML' }}
686686
<div class="@container">
687687
<div class="flex @min-md:@max-xl:hidden">
688688
<!-- ... -->
@@ -847,7 +847,7 @@ Use utilities like `perspective-near`, `perspective-normal`, and `perspective-di
847847
Then use the `backface-visible` and `backface-hidden` utilities to control an element's backface visibility:
848848

849849
```html
850-
<div class="transform-3d rotate-x-45 rotate-y-90 backface-visible">
850+
<div class="transform-3d rotate-x-45 rotate-y-90 **backface-visible**">
851851
<!-- ... -->
852852
</div>
853853
```
@@ -909,11 +909,26 @@ These new utilities work alongside the existing `from-*`, `via-*`, and `to-*` ut
909909

910910
We've added dedicated `inset-shadow-*` and `inset-ring-*` utilities in v4.0 that can be composed with the existing `shadow-*` and `ring-*` utilities, giving you four layers of shadows you can stack to create the effects you need for your projects.
911911

912+
```html {{example: true}}
913+
<div class="relative flex justify-around p-12">
914+
<div class="inset-shadow-lg grid h-16 w-40 grid-flow-col grid-cols-[auto_auto] items-center justify-center gap-2 rounded-xl bg-blue-600 to-10% text-2xl text-blue-50 ring shadow-md ring-black/10 [box-shadow:oklch(1_5.96046e-8_none_/_0.2)_0px_2px_4px_0px_inset,_oklch(1_5.96046e-8_none_/_0.2)_0px_0px_0px_1px_inset,_rgba(0,_0,_0,_0)_0px_0px_0px_0px,_oklch(0_0_none_/_0.1)_0px_0px_0px_1px,_oklch(0_0_none_/_0.2)_0px_10px_15px_-3px,_oklch(0_0_none_/_0.2)_0px_4px_6px_-4px]">
915+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" /></svg>
916+
<p>Send</p>
917+
</div>
918+
<div class="absolute bottom-[50%] translate-y-[70%] left-1/2 size-40 translate-x-[30%] overflow-hidden rounded-full border-2 shadow-lg border-black/20">
919+
<div class="inset-shadow-lg inset-shadow-white/10 absolute right-[190%] bottom-[80%] grid h-16 w-40 scale-[400%] grid-flow-col grid-cols-[auto_auto] items-center justify-center gap-2 rounded-2xl bg-blue-600 text-2xl text-blue-100 ring shadow-md ring-black/10 [box-shadow:oklch(1_5.96046e-8_none_/_0.4)_0px_2px_4px_0px_inset,_oklch(1_5.96046e-8_none_/_0.2)_0px_0px_0px_1px_inset,_rgba(0,_0,_0,_0)_0px_0px_0px_0px,_oklch(0_0_none_/_0.1)_0px_0px_0px_1px,_oklch(0_0_none_/_0.2)_0px_10px_15px_-3px,_oklch(0_0_none_/_0.2)_0px_4px_6px_-4px]
920+
]">
921+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" /></svg>
922+
<p>Send</p>
923+
</div>
924+
</div>
925+
</div>
926+
```
912927

913928
{/* https://x.com/adamwathan/status/1760787811605549159/photo/1 */}
914929

915930
```html
916-
<div class="shadow-md ring inset-shadow-xs inset-ring">
931+
<div class="... **inset-shadow-sm inset-shadow-white/20 inset-ring ring shadow-md ring-black/10 inset-ring-white/20**">
917932
<!-- ... -->
918933
</div>
919934
```

0 commit comments

Comments
 (0)