Skip to content

Commit 8f52181

Browse files
authored
fix: remove tailwind hack to prevent purge (#139)
1 parent 79da8be commit 8f52181

File tree

2 files changed

+2
-56
lines changed

2 files changed

+2
-56
lines changed

packages/website/src/routes/docs/index.tsx

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,7 @@ import { component$ } from '@builder.io/qwik';
22
import type { DocumentHead } from '@builder.io/qwik-city';
33

44
export default component$(() => {
5-
return (
6-
<div>
7-
Root Documentation Page
8-
{/* hack to prevent tailwind purge */}
9-
<div
10-
style={{ display: 'none' }}
11-
class={`collapse border border-base-300 rounded-box collapse-arrow collapse-plus
12-
collapse-title text-xl font-medium collapse-content max-h-fit tabs tabs-boxed
13-
tab tab-active tab-bordered tab-lifted form-control abel cursor-pointer toggle label-text
14-
drawer
15-
drawer-toggle
16-
btn btn-primary drawer-button
17-
drawer-side
18-
drawer-overlay
19-
btn
20-
btn-primary
21-
btn-secondary
22-
btn-accent
23-
btn-info
24-
btn-success
25-
btn-warning
26-
btn-error
27-
btn-ghost
28-
btn-link
29-
btn-outline
30-
btn-active
31-
btn-disabled
32-
33-
glass
34-
loading
35-
no-animation
36-
37-
btn-xs
38-
btn-sm
39-
btn-md
40-
btn-lg
41-
btn-wide
42-
btn-block
43-
btn-circle
44-
btn-square
45-
46-
card
47-
card-title
48-
card-body
49-
card-actions
50-
51-
flex
52-
justify-start
53-
justify-center
54-
justify-between
55-
justify-end
56-
`}
57-
/>
58-
</div>
59-
);
5+
return <div>Root Documentation Page</div>;
606
});
617

628
export const head: DocumentHead = {

packages/website/tailwind.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
3+
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}', '../daisy/src/**/*.{js,ts,jsx,tsx,mdx}'],
44
theme: {
55
extend: {},
66
},

0 commit comments

Comments
 (0)