Fluent.css - An LLM first UI Library
A modern CSS framework that combines Fluent Design with Tailwind utility classes. Can be used independently or with Tailwind.
LLMs.txt Usage
For AI assistants and code generation tools, reference our LLMs.txt file for proper usage patterns and best practices.
Import
<link rel="stylesheet" href="https://esm.sh/gh/aipx-proto/fluent-css@main/build/fluent.css" />
With Tailwind:
<!-- 1. Tailwind first -->
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<!-- 2. Fluent.css MUST come after Tailwind -->
<link rel="stylesheet" href="https://esm.sh/gh/aipx-proto/fluent-css@main/build/fluent.css" />
Typography
Color
Text Heading: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Text Body: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Text Muted: Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Layout
2xs (0) Shadow
xs (2) Shadow
sm (4) Shadow
md (8) Shadow
lg (16) Shadow
xl (28) Shadow
2xl (64)
Control Group
Input
Input Group
Select
Textarea
Radio
Checkbox
Switch
Slider
Progress
Fieldset
Dialog
Popover
Popover Title
This is a Popover using the new popover API
Popover Position
Accordion
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque euismod, nisi eu consectetur cursus, nisl erat dictum enim, nec facilisis enim erat nec urna.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Pellentesque euismod nisi
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque euismod, nisi eu consectetur cursus, nisl erat dictum enim, nec facilisis enim erat nec urna.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Pellentesque euismod nisi
Accordion Item Open
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque euismod, nisi eu consectetur cursus, nisl erat dictum enim, nec facilisis enim erat nec urna.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Pellentesque euismod nisi
Accordion Marker End
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque euismod, nisi eu consectetur cursus, nisl erat dictum enim, nec facilisis enim erat nec urna.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Pellentesque euismod nisi
Tabs
First Tab Content
This is the content of the first tab.
Fourth Tab Nested
This is the content of the fourth tab.
Fifth Tab Nested
This is the content of the fifth tab.
Sixth Tab Nested
This is the content of the sixth tab.
Second Tab Content
This is the content of the second tab.
Seventh Tab Nested
This is the content of the seventh tab.
Eighth Tab Nested
This is the content of the eighth tab.
Third Tab Content
This is the content of the third tab.
Table
Header 1 | Header 2 | Header 3 |
---|---|---|
Row 1, Cell 1 | Row 1, Cell 2 | Row 1, Cell 3 |
Row 2, Cell 1 | Row 2, Cell 2 | Row 2, Cell 3 |
Row 3, Cell 1 | Row 3, Cell 2 | Row 3, Cell 3 |
HTML Elements
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
This is a paragraph with bold text and italic text. Here's some
highlighted text and deleted text.
Fluid flow is a fascinating phenomenon that occurs in nature and engineering. When fluids move, they can exhibit either laminar flow, where layers of fluid slide smoothly past one another, or turbulent flow, where chaotic eddies and vortices form. The transition between these states depends on factors like velocity, viscosity, and the geometry of the containing vessel.
The behavior of fluids is governed by fundamental principles like conservation of mass, momentum, and energy. As fluids encounter obstacles or changes in their path, they adapt by speeding up, slowing down, or changing direction. This dynamic nature of fluid flow enables everything from blood circulation in our bodies to the lift generated by airplane wings, making fluid mechanics one of the most important areas of physics and engineering.
This is a blockquote. It can contain multiple paragraphs and is typically used for longer quotations.
Here's some inline code
and a keyboard input example.
// This is a code block
function example() {
console.log("Hello, World!");
}
Here's a link and an WHO abbreviation.
Lists
- Item 1
- Item 2
- Item 3
- Item 4
- First item
- Second item
- Third item
- Fourth item
- HTML
- HyperText Markup Language
- CSS
- Cascading Style Sheets