Geist style is a modern Css library, you can fork it on GitHub.
Here is the new style version of Geist UI, we've removed a lot of sections that didn't perform well under plain style files. Of course if you are interested please see the following related projects:
npm i @geist-ui/style2. Import to project:
import '@geist-ui/style'
3. In a simpler way, you can also use link of CDN: jsdelivr cdn<html class="dark-theme">
...
</html>
H1 - H4 Headings, when we implement fonts and styles, we also optimize it in some detail.
<h1>The Evil Rabbit Jumped over the Fence</h1>
<h2>The Evil Rabbit Jumped over the Fence</h2>
<h3>The Evil Rabbit Jumped over the Fence</h3>
<h4>The Evil Rabbit Jumped over the Fence</h4>
Unordered List and ordered List
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
<ol>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ol>
<div class="zi-card">
<h4>An open-source design system for building modern websites and applications.</h4>
</div>
<div class="zi-card zi-dark">
<h4>An open-source design system for building modern websites and applications.</h4>
</div>
<div class="zi-card pin">
<h4>a dark card</h4>
</div>
Default
Regular
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.
Bold
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.span html code:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
<b>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</b>
Helpful
comment text
<p class="zi-comment">comment text</p>
Square avatars
Stacked Avatars
Text Avatars
<img class="zi-avatar small" src="...">
<img class="zi-avatar" src="...">
<img class="zi-avatar big" src="...">
<img class="zi-avatar huge" src="...">
<img class="zi-avatar square" src="...">
<img class="zi-avatar stacked" src="...">
<img class="zi-avatar stacked" src="...">
<!--include img element-->
<span class="zi-avatar"><img src="..."></span>
<!--include text-->
<span class="zi-avatar">
<span class="zi-avatar-string">USER</span>
</span>
<span class="zi-avatar single">
<span class="zi-avatar-string">L</span>
</span>
Basic badges
Default badges
550100
<span class="zi-badge">5</span>
Status
5505050
<span class="zi-badge">5</span>
<span class="zi-badge success">50</span>
<span class="zi-badge warning">50</span>
<span class="zi-badge error">50</span>
Basic button
Default
Primary
<button class="zi-btn">Default</button>
<button class="zi-btn primary">Primary</button>
Button Type
Default button
Big button
Small button
Mini button
<button class="zi-btn">ACTION</button>
<button class="zi-btn success">ACTION</button>
<button class="zi-btn warning">ACTION</button>
<button class="zi-btn danger">ACTION</button>
<button class="zi-btn big">ACTION</button>
<button class="zi-btn small">ACTION</button>
<button class="zi-btn mini">ACTION</button>
Status
Disabled button
Abort button
Shadown button
Loading button
<button class="zi-btn disabled">Disabled</button>
<button class="zi-btn abort">Abort</button>
<button class="zi-btn shadow">Shadow</button>
<button class="zi-btn success shadow">Shadow</button>
<button class="zi-btn success shadow small">Shadow</button>
<button class="zi-btn loading">
<span class="zi-loading-shim">
<i></i><i></i><i></i>
</span>
</button>
Auto width
<button class="zi-btn auto">auto width</button>
Inline code
TypeScript
Block code
const isNaN = val => Number.isNaN(val)
Bash code
npm i @geist-ui/style
Dark style
Output: 1, Status: ok
<code>TypeScript</code>
<pre>const isNaN = val => Number.isNaN(val)</pre>
<pre class="zi-bash">npm i @geist-ui/style</pre>
<pre class="zi-dark">Output: 1, Status: ok</pre>
Normal
<div class="zi-fieldset">
<div class="zi-fieldset-content">
<h1>The Evil Rabbit Jumped over the Fence</h1>
<h2>The Evil Rabbit Jumped over the Fence</h2>
</div>
<div class="zi-fieldset-footer">
<p>The Evil Rabbit Jumped over the Fence</p>
<button clsss="zi-btn mini auto primary">Action</button>
</div>
</div>
Basic inputs
Normal
Disabled
Error
Success
<input class="zi-input" placeholder="The Evil Rabbit">
<input class="zi-input disabled" disabled placeholder="The Evil Rabbit">
<input class="zi-input error" value="The Evil Rabbit">
<input class="zi-input success" value="The Evil Rabbit">
Size
<input class="zi-input mini" value="The Evil Rabbit">
<input class="zi-input small" value="The Evil Rabbit">
<input class="zi-input" value="The Evil Rabbit">
<input class="zi-input big" value="The Evil Rabbit">
Input Group
include text
<div class="zi-input-group prefix">
<span class="zi-label prefix">geist-ui/react</span>
<input class="zi-input" value="Geist">
</div>
Default note
Hint note
Alert note
Error note
Hidden label
<p class="zi-note"><span class="zi-note-type">NOTE:</span> This is a ...</p>
<p class="zi-note hint"><span class="zi-note-type">HINT:</span> This is a ...</p>
<p class="zi-note alert"><span class="zi-note-type">ALERT:</span> This is a ...</p>
<p class="zi-note error"><span class="zi-note-type">ERROR:</span> This is a ...</p>
<p class="zi-note">Just a quick note!</p>
NAME | USERNAME | |
---|---|---|
![]() | Evil Rabbit | evilrabbit |
![]() | Evil Rabbit | evilrabbit |
<table class="zi-table">
<thead>
<tr>
<th></th>
<th>NAME</th>
<th>USERNAME</th>
</tr>
</thead>
<tbody>
<tr>
<td><img class="zi-avatar" src="..."></td>
<td>Evil Rabbit</td>
<td>evilrabbit</td>
</tr>
<tr>
<td><img class="zi-avatar" src="..."></td>
<td>Evil Rabbit</td>
<td>evilrabbit</td>
</tr>
</tbody>
</table>
Basic
<div class="zi-tag">Status: Unstable</div>
<span class="zi-tag">Status: Unstable</span>
Status
<span class="zi-tag success">Status: Success</span>
<span class="zi-tag warning">Status: Warning</span>
<span class="zi-tag danger">Status: Danger</span>