flowbite-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +324 -0
  3. package/build/index.js +975 -0
  4. package/build/server-runner.js +228 -0
  5. package/data/components/accordion.md +860 -0
  6. package/data/components/alerts.md +739 -0
  7. package/data/components/avatar.md +178 -0
  8. package/data/components/badge.md +420 -0
  9. package/data/components/banner.md +145 -0
  10. package/data/components/bottom-navigation.md +513 -0
  11. package/data/components/breadcrumb.md +273 -0
  12. package/data/components/button-group.md +410 -0
  13. package/data/components/buttons.md +405 -0
  14. package/data/components/card.md +711 -0
  15. package/data/components/carousel.md +858 -0
  16. package/data/components/chat-bubble.md +1063 -0
  17. package/data/components/clipboard.md +1029 -0
  18. package/data/components/datepicker.md +673 -0
  19. package/data/components/device-mockups.md +152 -0
  20. package/data/components/drawer.md +1353 -0
  21. package/data/components/dropdowns.md +1925 -0
  22. package/data/components/footer.md +299 -0
  23. package/data/components/forms.md +371 -0
  24. package/data/components/gallery.md +322 -0
  25. package/data/components/indicators.md +262 -0
  26. package/data/components/jumbotron.md +213 -0
  27. package/data/components/kbd.md +217 -0
  28. package/data/components/list-group.md +365 -0
  29. package/data/components/mega-menu.md +558 -0
  30. package/data/components/modal.md +1309 -0
  31. package/data/components/navbar.md +1053 -0
  32. package/data/components/pagination.md +472 -0
  33. package/data/components/popover.md +826 -0
  34. package/data/components/progress.md +95 -0
  35. package/data/components/qr-code.md +280 -0
  36. package/data/components/rating.md +323 -0
  37. package/data/components/sidebar.md +1067 -0
  38. package/data/components/skeleton.md +221 -0
  39. package/data/components/speed-dial.md +1270 -0
  40. package/data/components/spinner.md +222 -0
  41. package/data/components/stepper.md +271 -0
  42. package/data/components/tables.md +3127 -0
  43. package/data/components/tabs.md +808 -0
  44. package/data/components/timeline.md +304 -0
  45. package/data/components/toast.md +341 -0
  46. package/data/components/tooltips.md +524 -0
  47. package/data/components/typography.md +269 -0
  48. package/data/components/video.md +95 -0
  49. package/data/forms/checkbox.md +375 -0
  50. package/data/forms/file-input.md +98 -0
  51. package/data/forms/floating-label.md +185 -0
  52. package/data/forms/input-field.md +222 -0
  53. package/data/forms/number-input.md +1099 -0
  54. package/data/forms/phone-input.md +577 -0
  55. package/data/forms/radio.md +315 -0
  56. package/data/forms/range.md +83 -0
  57. package/data/forms/search-input.md +280 -0
  58. package/data/forms/select.md +259 -0
  59. package/data/forms/textarea.md +155 -0
  60. package/data/forms/timepicker.md +732 -0
  61. package/data/forms/toggle.md +176 -0
  62. package/data/plugins/charts.md +2683 -0
  63. package/data/plugins/datatables.md +1922 -0
  64. package/data/plugins/datepicker.md +5 -0
  65. package/data/plugins/wysiwyg.md +2377 -0
  66. package/data/quickstart.md +169 -0
  67. package/data/theme.md +231 -0
  68. package/data/toc.md +79 -0
  69. package/data/typography/blockquote.md +182 -0
  70. package/data/typography/headings.md +174 -0
  71. package/data/typography/hr.md +74 -0
  72. package/data/typography/images.md +168 -0
  73. package/data/typography/links.md +118 -0
  74. package/data/typography/lists.md +387 -0
  75. package/data/typography/paragraphs.md +186 -0
  76. package/data/typography/text.md +249 -0
  77. package/package.json +71 -0
@@ -0,0 +1,269 @@
1
+ ---
2
+ layout: docs
3
+ title: Tailwind CSS Typography - Flowbite
4
+ description: Use the typography plugin from Flowbite to apply styles to all inline elements like headings, paragraphs, lists, and images using a single format class
5
+ group: components
6
+ toc: true
7
+
8
+ previous: Tooltips
9
+ previousLink: components/tooltips/
10
+ next: QR Code
11
+ nextLink: components/qr-code/
12
+ ---
13
+
14
+ Get started with the [Flowbite Typography](https://github.com/themesberg/flowbite-typography) plugin forked from the official [Tailwind CSS Typography](https://tailwindcss.com/docs/typography-plugin) plugin to set a custom `format` class to a wrapper element to apply styles to all inline child elements such as headings, paragraphs, images, lists, and more and apply font sizes, font weights, colors, and spacings.
15
+
16
+ You can check out this [live demo](https://flowbite.com/plugins/typography/) to see how content inside an article will render like.
17
+
18
+ ## Getting started
19
+
20
+ Make sure that you have both [Node.js](https://nodejs.org/) and [Tailwind CSS](https://tailwindcss.com/) already installed in your project.
21
+
22
+ 1. Install the Flowbite Typography plugin via NPM:
23
+
24
+ {{< code lang="bash" >}}
25
+ npm i -D flowbite-typography
26
+ {{< /code >}}
27
+
28
+ 2. Import the `flowbite-typography` plugin inside your main Tailwind CSS file:
29
+
30
+ {{< code lang="javascript" >}}
31
+ @plugin "flowbite-typography";
32
+ {{< /code >}}
33
+
34
+ Alternatively you can do the same but in your `tailwind.config.js` file:
35
+
36
+ {{< code lang="javascript" >}}
37
+ // import the tailwind.config.js file in your main CSS file if using Tailwind CSS v4
38
+ module.exports = {
39
+ theme: {
40
+ // ...
41
+ },
42
+ plugins: [
43
+ require('flowbite-typography'),
44
+ // ...
45
+ ],
46
+ }
47
+ {{< /code >}}
48
+
49
+ Now you can go ahead and use the new formatting classes from the Flowbite Typography plugin.
50
+
51
+ ## Basic usage
52
+
53
+ Once you have installed the plugin inside your project you can add the `format` class to a wrapper element and use any type of inline elements such as headings, paragraphs, images, lists, captions, links, and tables.
54
+
55
+ All of these elements will be automatically styled with proper spacing, font sizing, font weight, colors, and more based on recommended UI/UX readability and accessibility standards.
56
+
57
+ {{< code lang="html" >}}
58
+ <article class="format lg:format-lg">
59
+ <h1>Prototyping from A to Z: best practices for successful prototypes</h1>
60
+ <p class="lead">Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.</p>
61
+ <p>Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.</p>
62
+ <p>But then I found a <a href="#">component library based on Tailwind CSS called Flowbite</a>. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.</p>
63
+
64
+ ...
65
+
66
+ <h2>When does design come in handy?</h2>
67
+ <p>While it might seem like extra work at a first glance, here are some key moments in which prototyping will come in handy:</p>
68
+ <ol>
69
+ <li><strong>Usability testing</strong>. Does your user know how to exit out of screens? Can they follow your intended user journey and buy something from the site you’ve designed? By running a usability test, you’ll be able to see how users will interact with your design once it’s live;</li>
70
+ <li><strong>Involving stakeholders</strong>. Need to check if your GDPR consent boxes are displaying properly? Pass your prototype to your data protection team and they can test it for real;</li>
71
+ <li><strong>Impressing a client</strong>. Prototypes can help explain or even sell your idea by providing your client with a hands-on experience;</li>
72
+ <li><strong>Communicating your vision</strong>. By using an interactive medium to preview and test design elements, designers and developers can understand each other — and the project — better.</li>
73
+ </ol>
74
+ </article>
75
+ {{< /code >}}
76
+
77
+ You can also set the `lg:format-lg` class to set increase font sizes and spacings for larger viewport devices.
78
+
79
+ ## Link colors
80
+
81
+ You can update the default blue link color to anything you'd like by setting the `format-{color}` class:
82
+
83
+ {{< code lang="html" >}}
84
+ <article class="format lg:format-lg format-red">
85
+ <h1>Prototyping from A to Z: best practices for successful prototypes</h1>
86
+ <p class="lead">Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.</p>
87
+ <p>Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.</p>
88
+ <p>But then I found a <a href="#">component library based on Tailwind CSS called Flowbite</a>. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.</p>
89
+ </article>
90
+ {{< /code >}}
91
+ ## Dark mode
92
+
93
+ Enable dark mode for the typography by using the `dark:format-invert` class on the article wrapper element:
94
+
95
+ {{< code lang="html" >}}
96
+ <article class="format lg:format-lg dark:format-invert">
97
+ <h1>The content inside this article will invert when switching to dark mode</h1>
98
+ <p class="lead">Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.</p>
99
+ <p>Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.</p>
100
+ <p>But then I found a <a href="#">component library based on Tailwind CSS called Flowbite</a>. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.</p>
101
+
102
+ ...
103
+
104
+ <h2>When does design come in handy?</h2>
105
+ <p>While it might seem like extra work at a first glance, here are some key moments in which prototyping will come in handy:</p>
106
+ <ol>
107
+ <li><strong>Usability testing</strong>. Does your user know how to exit out of screens? Can they follow your intended user journey and buy something from the site you’ve designed? By running a usability test, you’ll be able to see how users will interact with your design once it’s live;</li>
108
+ <li><strong>Involving stakeholders</strong>. Need to check if your GDPR consent boxes are displaying properly? Pass your prototype to your data protection team and they can test it for real;</li>
109
+ <li><strong>Impressing a client</strong>. Prototypes can help explain or even sell your idea by providing your client with a hands-on experience;</li>
110
+ <li><strong>Communicating your vision</strong>. By using an interactive medium to preview and test design elements, designers and developers can understand each other — and the project — better.</li>
111
+ </ol>
112
+ </article>
113
+ {{< /code >}}
114
+
115
+ ## Max width
116
+
117
+ Override the default maximum width by setting a custom `max-w-{size}` class next to the `format` class:
118
+
119
+ {{< code lang="html" >}}
120
+ <article class="max-w-none format lg:format-lg format-red">
121
+ <h1>Prototyping from A to Z: best practices for successful prototypes</h1>
122
+ <p class="lead">Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.</p>
123
+ <p>Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.</p>
124
+ <p>But then I found a <a href="#">component library based on Tailwind CSS called Flowbite</a>. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.</p>
125
+ </article>
126
+ {{< /code >}}
127
+
128
+ ## Disable format
129
+
130
+ If you want to disable formatting inside the typography content you can use the `not-format` class:
131
+
132
+ {{< code lang="html" >}}
133
+ <article class="format lg:format-lg dark:format-invert">
134
+ <h1>The content inside this article will invert when switching to dark mode</h1>
135
+ <p class="lead">Flowbite is an open-source library of UI components built with the utility-first classes from Tailwind CSS. It also includes interactive elements such as dropdowns, modals, datepickers.</p>
136
+ <p>Before going digital, you might benefit from scribbling down some ideas in a sketchbook. This way, you can think things through before committing to an actual design project.</p>
137
+ <p>But then I found a <a href="#">component library based on Tailwind CSS called Flowbite</a>. It comes with the most commonly used UI components, such as buttons, navigation bars, cards, form elements, and more which are conveniently built with the utility classes from Tailwind CSS.</p>
138
+
139
+ ...
140
+
141
+ <!-- content that won't have styles applied -->
142
+ <div class="not-format">
143
+ <h2>When does design come in handy?</h2>
144
+ <p>While it might seem like extra work at a first glance, here are some key moments in which prototyping will come in handy:</p>
145
+ <ol>
146
+ <li><strong>Usability testing</strong>. Does your user know how to exit out of screens? Can they follow your intended user journey and buy something from the site you’ve designed? By running a usability test, you’ll be able to see how users will interact with your design once it’s live;</li>
147
+ <li><strong>Involving stakeholders</strong>. Need to check if your GDPR consent boxes are displaying properly? Pass your prototype to your data protection team and they can test it for real;</li>
148
+ <li><strong>Impressing a client</strong>. Prototypes can help explain or even sell your idea by providing your client with a hands-on experience;</li>
149
+ <li><strong>Communicating your vision</strong>. By using an interactive medium to preview and test design elements, designers and developers can understand each other — and the project — better.</li>
150
+ </ol>
151
+ </div>
152
+ </article>
153
+ {{< /code >}}
154
+
155
+ ## Options
156
+
157
+ Extend the plugin's options inside the Tailwind configuration file to set your own colors, class name, and more.
158
+
159
+ ### Custom colors
160
+
161
+ You can set your own colors by extending the typography plugin inside the `tailwind.config.js` file:
162
+
163
+ {{< code lang="javascript" >}}
164
+ module.exports = {
165
+ theme: {
166
+ extend: {
167
+ typography: ({ theme }) => ({
168
+ orange: {
169
+ css: {
170
+ '--tw-format-body': theme('colors.orange[500]'),
171
+ '--tw-format-headings': theme('colors.orange[900]'),
172
+ '--tw-format-lead': theme('colors.orange[500]'),
173
+ '--tw-format-links': theme('colors.orange[600]'),
174
+ '--tw-format-bold': theme('colors.orange[900]'),
175
+ '--tw-format-counters': theme('colors.orange[500]'),
176
+ '--tw-format-bullets': theme('colors.orange[500]'),
177
+ '--tw-format-hr': theme('colors.orange[200]'),
178
+ '--tw-format-quotes': theme('colors.orange[900]'),
179
+ '--tw-format-quote-borders': theme('colors.orange[300]'),
180
+ '--tw-format-captions': theme('colors.orange[700]'),
181
+ '--tw-format-code': theme('colors.orange[900]'),
182
+ '--tw-format-code-bg': theme('colors.orange[50]'),
183
+ '--tw-format-pre-code': theme('colors.orange[100]'),
184
+ '--tw-format-pre-bg': theme('colors.orange[900]'),
185
+ '--tw-format-th-borders': theme('colors.orange[300]'),
186
+ '--tw-format-td-borders': theme('colors.orange[200]'),
187
+ '--tw-format-th-bg': theme('colors.orange[50]'),
188
+ '--tw-format-invert-body': theme('colors.orange[200]'),
189
+ '--tw-format-invert-headings': theme('colors.white'),
190
+ '--tw-format-invert-lead': theme('colors.orange[300]'),
191
+ '--tw-format-invert-links': theme('colors.white'),
192
+ '--tw-format-invert-bold': theme('colors.white'),
193
+ '--tw-format-invert-counters': theme('colors.orange[400]'),
194
+ '--tw-format-invert-bullets': theme('colors.orange[600]'),
195
+ '--tw-format-invert-hr': theme('colors.orange[700]'),
196
+ '--tw-format-invert-quotes': theme('colors.pink[100]'),
197
+ '--tw-format-invert-quote-borders': theme('colors.orange[700]'),
198
+ '--tw-format-invert-captions': theme('colors.orange[400]'),
199
+ '--tw-format-invert-code': theme('colors.white'),
200
+ '--tw-format-invert-pre-code': theme('colors.orange[300]'),
201
+ '--tw-format-invert-pre-bg': 'rgb(0 0 0 / 50%)',
202
+ '--tw-format-invert-th-borders': theme('colors.orange[600]'),
203
+ '--tw-format-invert-td-borders': theme('colors.orange[700]'),
204
+ '--tw-format-invert-th-bg': theme('colors.orange[700]'),
205
+ },
206
+ },
207
+ }),
208
+ },
209
+ },
210
+ plugins: [
211
+ require('flowbite-typography'),
212
+ // ...
213
+ ],
214
+ }
215
+ {{< /code >}}
216
+
217
+ Now you can use the `format-red` class and apply these styles.
218
+
219
+ ### Wrapper class
220
+
221
+ Change the default `format` class to your own choosing by updating the `tailwind.config.js` file:
222
+
223
+ {{< code lang="javascript" >}}
224
+ module.exports = {
225
+ theme: {
226
+ // ...
227
+ },
228
+ plugins: [
229
+ require('flowbite-typography')({
230
+ className: 'custom-class',
231
+ }),
232
+ ]
233
+ ...
234
+ }
235
+ {{< /code >}}
236
+
237
+ ### Custom CSS
238
+
239
+ You can also customize the default CSS by extending the `css` key value pair from the Tailwind configuration file:
240
+
241
+ {{< code lang="javascript" >}}
242
+ module.exports = {
243
+ theme: {
244
+ extend: {
245
+ typography: {
246
+ DEFAULT: {
247
+ css: {
248
+ color: '#666',
249
+ a: {
250
+ color: '#3182ce',
251
+ '&:hover': {
252
+ color: '#2c5282',
253
+ },
254
+ },
255
+ },
256
+ },
257
+ },
258
+ },
259
+ },
260
+ plugins: [
261
+ require('flowbite-typography'),
262
+ // ...
263
+ ],
264
+ }
265
+ {{< /code >}}
266
+
267
+ ## Blog templates
268
+
269
+ You can check out the following [blog template](https://flowbite.com/blocks/publisher/blog-templates/) layouts from Flowbite Blocks that use the Typography plugin.
@@ -0,0 +1,95 @@
1
+ ---
2
+ layout: docs
3
+ title: Tailwind CSS Video - Flowbite
4
+ description: Use the video component to configure an embedded video player using native HTML 5 functionality based on the utility classes from Tailwind CSS
5
+ group: components
6
+ toc: true
7
+
8
+ previous: QR Code
9
+ previousLink: components/qr-code/
10
+ next: Input field
11
+ nextLink: forms/input-field/
12
+ ---
13
+
14
+ Get started with the video component to embed internal video source into a native HTML 5 video player and set custom options such as autoplay or muted to enhance the user experience.
15
+
16
+ ## Video player
17
+
18
+ Use this example to create a native browser video player and apply the `w-full` utility class from Tailwind CSS to span the full width of the parent container.
19
+
20
+ {{< example github="typography/video.md" show_dark=true >}}
21
+ <video class="w-full rounded-base" controls>
22
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
23
+ Your browser does not support the video tag.
24
+ </video>
25
+ {{< /example >}}
26
+
27
+ ## Autoplay
28
+
29
+ Use the `autoplay` attribute on the video component to automatically start the video when the page has been loaded.
30
+
31
+ {{< example github="typography/video.md" show_dark=true >}}
32
+ <video class="w-full rounded-base" controls>
33
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
34
+ Your browser does not support the video tag.
35
+ </video>
36
+ {{< /example >}}
37
+
38
+ ## Muted
39
+
40
+ Use the `muted` attribute together with the `autoplay` option to start the video while the sound is muted.
41
+
42
+ {{< example github="typography/video.md" show_dark=true >}}
43
+ <video class="w-full rounded-base" autoplay muted controls>
44
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
45
+ Your browser does not support the video tag.
46
+ </video>
47
+ {{< /example >}}
48
+
49
+ ## Sizes
50
+
51
+ Set the width and height of the video component using the `w-{size}` and `h-{size}` utility classes from Tailwind CSS.
52
+
53
+ ### Width
54
+
55
+ Use the `w-{size}` class to set the width of the video component.
56
+
57
+ {{< example github="typography/video.md" show_dark=true >}}
58
+ <video class="w-96 rounded-base" controls>
59
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
60
+ Your browser does not support the video tag.
61
+ </video>
62
+ {{< /example >}}
63
+
64
+ ### Height
65
+
66
+ Use the `h-{size}` class to set the height of the video player.
67
+
68
+ {{< example github="typography/video.md" show_dark=true >}}
69
+ <video class="h-80 rounded-base" controls>
70
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
71
+ Your browser does not support the video tag.
72
+ </video>
73
+ {{< /example >}}
74
+
75
+ ### Responsive
76
+
77
+ Use the following example to make the video responsive across all devices and viewports.
78
+
79
+ {{< example github="typography/video.md" show_dark=true >}}
80
+ <video class="w-full h-auto max-w-full rounded-base" controls>
81
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
82
+ Your browser does not support the video tag.
83
+ </video>
84
+ {{< /example >}}
85
+
86
+ ## Custom styles
87
+
88
+ Customize the video player appearance using the utility classes from Tailwind CSS such as `rounded-{size}` or `border` to set rounded-sm corners and border.
89
+
90
+ {{< example github="typography/video.md" show_dark=true >}}
91
+ <video class="w-full h-auto max-w-full border border-default rounded-base" controls>
92
+ <source src="/docs/videos/flowbite.mp4" type="video/mp4">
93
+ Your browser does not support the video tag.
94
+ </video>
95
+ {{< /example >}}