Skip to content

Commit 0e02a89

Browse files
committed
Bring most of Tailwind's preflight.css back
1 parent 41f25f0 commit 0e02a89

File tree

2 files changed

+397
-3
lines changed

2 files changed

+397
-3
lines changed

webview-ui/src/index.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
/* @import "tailwindcss"; */
1+
/**
2+
* Normally we'd import tailwind with the following:
3+
*
4+
* @import "tailwindcss";
5+
*
6+
* However, we need to customize the preflight styles since the extension's
7+
* current UI assumes there's no CSS resetting or normalization.
8+
*
9+
* We're excluding tailwind's default preflight and importing our own, which
10+
* are based on the original (https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/preflight.css).
11+
*
12+
* Reference: https://tailwindcss.com/docs/preflight
13+
*/
214

315
@layer theme, base, components, utilities;
416

517
@import "tailwindcss/theme.css" layer(theme);
6-
/* https://tailwindcss.com/docs/preflight */
7-
/* @import "tailwindcss/preflight.css" layer(base); */
18+
@import "./preflight.css" layer(base);
819
@import "tailwindcss/utilities.css" layer(utilities);
920

1021
@plugin "tailwindcss-animate";

0 commit comments

Comments
 (0)