Skip to content

Commit eaef8eb

Browse files
committed
fix: tailwind
1 parent 9624a0c commit eaef8eb

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

packages/lexical/src/examples/AppNbformat.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,7 @@ export function AppNbformat() {
126126
</LexicalProvider>
127127
</Jupyter>
128128
<div className="other App">
129-
<br/>
130-
<a href="https://datalayer.io" target="_blank">
131-
<ThreeBarsIcon/>
132-
</a>
133-
<h2>
134-
copyright © <a href="https://datalayer.io" target="_blank">2022-2024 Datalayer, Inc.</a>
135-
</h2>
136-
<ul>
137-
<li>
138-
<a href="https://github.com/datalayer/jupyter-ui" target="_blank">Jupyter UI open-source repository</a>
139-
</li>
140-
</ul>
141-
</div>
142-
{/* Tailwind v4 Button - Pure Utility Classes */}
129+
{/* Tailwind v4 Button - Using Tailwind Utility Classes */}
143130
<div className="flex flex-col items-center gap-4 my-8">
144131
<button
145132
className="bg-blue-600 hover:bg-blue-800 text-white font-bold py-3 px-8 rounded-lg shadow-lg hover:shadow-xl transform hover:scale-105 transition duration-300 ease-in-out"
@@ -154,6 +141,19 @@ export function AppNbformat() {
154141
</span>
155142
</div>
156143
</div>
144+
<br/>
145+
<a href="https://datalayer.io" target="_blank">
146+
<ThreeBarsIcon/>
147+
</a>
148+
<h2>
149+
copyright © <a href="https://datalayer.io" target="_blank">2022-2024 Datalayer, Inc.</a>
150+
</h2>
151+
<ul>
152+
<li>
153+
<a href="https://github.com/datalayer/jupyter-ui" target="_blank">Jupyter UI open-source repository</a>
154+
</li>
155+
</ul>
156+
</div>
157157
</>
158158
)
159159
}

packages/lexical/style/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
@import "tailwindcss";
88

9-
/* Import base styles */
9+
/* Import base styles */
1010
@import url("base.css");
1111

12-
/* Import tailwind.css which now contains all the Tailwind v4 compatible styles */
12+
/* Import tailwind.css which contains custom components */
1313
@import url('tailwind.css');
1414

1515
/* Custom base styles */

packages/lexical/style/tailwind.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* MIT License
55
*/
66

7+
@tailwind base;
8+
@tailwind components;
9+
@tailwind utilities;
710

811
@import url('./lexical/index.css');
912

0 commit comments

Comments
 (0)