Heading h1
Heading h2
Heading h3
Heading h4
Heading h5
Heading h6
Regular text
stylent css provides minimal style configuration for a quick and clean starting point. It is specially designed for better performance and higher productivity with fewer properties to result in cleaner code. It is small, powerful, elegant, and fully configurable via CSS variables.
Including stylent css in your HTML will automatically give an elegant style to all elements. No need to learn complicated and confusing CSS classes. It is all simple and intuitive.
stylent css includes all the features you need, including grid, styles for all elements, utility class, dark mode support, keeping everything with a minimal footprint.
stylent css allows complete configuration and theming using CSS variables. The default style is beautiful, but you can quickly adapt it to your flavors and needs with our theme editor.
You simply add the main stylent css file in the header of your HTML project, that's all!
Also, you can install it locally with NPM:
npm i @graphery/stylent.css
stylent css is wholly prepared for work perfectly in desktop, tablet, or mobile environments. Each element adjusts its characteristics for the best style in every size. For example, when a screen width of less 768px, default font is reduced to 14px, and all headers are reduced in size.
stylent css works perfectly in all modern browsers, but does not work in older browsers that do not have support for CSS Variables. Check the CSS Variables support in caniuse.com.
The typography has font-size
defined in 16px and line-height
in 1.5em.
stylent css uses the font-family
by operative system:
-apple-system, BlinkMacSystemFont
'Segoe UI'
'Roboto'
'Helvetica Neue', Arial, sans-serif
h1
h2
h3
h4
h5
h6
Regular text
Heading h1
Heading h2
Heading h3
Heading h4
Heading h5
Heading h6
Regular Text
The Anchor element creates a hyperlink to web pages, files, email addresses, or locations in the same page.
The Blockquote represents a section that is quoted from another source.
stylent css is amazing.
stylent css is amazing.
The List is a very versatile and common way to display items.
stylent css has three types of
lists: The unordered list use ul
element will be marked with an outline circles, the ordered
list use
ol
element and your items will be marked with numbers, the description list use dl
element and your items will not be marking, only spacings.
Unordered list
- item 1
- item 2
Ordered list
- item 1
- item 2
Description list
- item 1
- item 1.1
The Images don't have special style, only we remove the border when is included into an
anchor, and the vertical-align
is defined as `bottom`.
This is an inline image
This is an inline image
The Code element represents a fragment of computer code. Just wrap anything in a code
and it
will appear like this. if you need a block, by default, enter the code
within the
pre
element.
.class {
color: #9b4dca;
}
<pre><code lang="css">.class {
color: #9b4dca;
}</code></pre>
You can define a box with the class .box
Message in a box
stylent css helps to define forms that work perfectly on desktop and mobile in an easy way and with a design focused on user experience.
Check how is displayed every form element with stylent css:
type | code | example |
---|---|---|
button | <input type="button"> | |
checkbox | <input type="checkbox"> | |
color | <input type="color"> | |
date | <input type="date"> | |
datetime | <input type="datetime-local"> | |
<input type="email"> | ||
file | <input type="file"> | |
hidden | <input type="hidden"> | |
image | <input type="image" src=""> | |
month | <input type="month"> | |
number | <input type="number"> | |
password | <input type="password"> | |
radio | <input type="radio"> | |
range | <input type="range"> | |
reset | <input type="reset"> | |
search | <input type="search"> | |
submit | <input type="submit"> | |
tel | <input type="tel"> | |
text | <input type="text"> | |
time | <input type="time"> | |
url | <input type="url"> | |
week | <input type="week"> | |
select | <select><option>one</option><option>two</option></select> | |
textarea | <textarea"></textarea"> |
You can combine forms element and grid for define multiple fields per row.
The Table element represents data in two dimensions. stylent css displays an elegant table
with thead
and tbody
estructure.
Fist name | Last name | Age | Location |
---|---|---|---|
Jane | Doe | 27 | Los Angeles, CA |
John | Thompson | 25 | Los Angeles, CA |
Fist name Last name Age Location
Jane Doe 27 Los Angeles, CA
John Thompson 25 Los Angeles, CA
The Block Semantic Tags allow you to structure HTML content in an orderly and well-defined manner.
stylent css defines styles for header
, main
, andfooter
with a maximum width of 960px, reducing their width when the screen is less than that value. Also, you can use the
section
orarticle
tags to define isolated parts of your HTML.
Main, section and other semantic tags
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas dictum felis ac
purus malesuada rutrum. Aliquam cursus eget nisl non finibus. Fusce accumsan metus
sit amet enim lobortis placerat. Sed volutpat diam eu bibendum euismod. Cras sit
amet tortor sed dolor euismod scelerisque.
As example, this document uses this kind of tag.
The Grid Layout is a two-dimensional grid-based layout system. With stylent css you only
must be include a .rom
and every .col
classes. Alternativatly you can use
.col-1
to .col-12
for defines the column relative size.
.col
.col
.col
.col
.col-2
.col-10
By default, the columns of the grid have no space between them, but you can use the .gutter
class
to add space between columns.
.col
.col
.col
.col
.col-2
.col-10
Dark mode has gone mainstream and Apple, Microsoft and Google have added dark mode to their operating systems. That's why stylent css includes an automatic dark mode style. You don't need to do anything.
If you want to set the dark mode on your page regardless of the operating system, you can use the
.dark
auxiliary style, usually in the <body> tag.
Conversely, if you want to set the light mode on your page regardless of the operating system, you can use the
.light
auxiliary style, usually in the <body> tag.
Class | Description |
---|---|
.dark | force the dark mode |
.light | force the light mode |
stylent css provides others useful basic classes to speed up development.
Class | Description |
---|---|
.hidden | hide the element |
hidden text
Class | Description |
---|---|
.text-left | left align text |
.text-center | center align text |
.text-right | right align text |
Left
Center
Right
Left
Center
Right
Class | Description |
---|---|
.justify-start | defines content to the left |
.justify-center | defines content to the center |
.justify-end | defines content to the right |
.justify-distributed | define content distributed |
.align-start | vertical align content to the top |
.align-center | vertical align content to the center |
.align-end | vertical align content to the bottom |
.direction-vertical | distribute content as the column |
.direction-horizontal | distribute content as the row |
.center | center the element |
justify-start
justify-center
justify-end
align-start
align-center
align-end
direction-horizontal
direction-horizontal
direction-vertical
direction-verticall
center
Class | Description |
---|---|
.size-full-height | defines element height as 100% |
.size-full-width | defines element width as 100% |
.size-full | defines element height and width as 100% |
Class | Description |
---|---|
.not-selectable | This text is not selectable by the user |
Class | Description |
---|---|
.no-wrap | Suppresses line breaks |
You can define our own style with a few of CSS custom variables. If you change the initial values, you can define a custom theme for stylent css. You can create your own style and see the result directly with our
Of course, if you prefer to work directly by code, this is the list of available CSS custom variables and its initial values:
Variable | Default value |
---|---|
--st-link-hover-style | underline solid var(--st-fore-color); |
--st-font-family | -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; |
--st-font-family-mono | "Consolas", "Monaco", "Menlo", monospace; |
--st-font-weight | 400; |
--st-font-bold-weight | 500; |
--st-font-size-xs | 0.8em; |
--st-font-size-s | 0.9em; |
--st-font-size | 15px; |
--st-font-size-l | 1.15em; |
--st-font-size-xl | 1.30em; |
--st-font-size-xxl | 1.60em; |
--st-font-size-xxxl | 2.00em; |
--st-font-size-xxxxl | 2.30em; |
--st-line-height | 1.6em; |
--st-line-height-l | 2em; |
--st-color-0 | #fafafa; |
--st-color-1 | #f5f5f5; |
--st-color-2 | #e5e5e5; |
--st-color-3 | #d4d4d4; |
--st-color-4 | #a3a3a3; |
--st-color-5 | #737373; |
--st-color-6 | #525252; |
--st-color-7 | #404040; |
--st-color-8 | #262626; |
--st-color-9 | #171717; |
--st-fore-color | var(--st-color-9); |
--st-bg-color | var(--st-color-0); |
--st-fore-color-alt | var(--st-color-3); |
--st-bg-color-alt | var(--st-color-9); |
--st-fore-color-code | var(--st-color-9); |
--st-bg-color-code | var(--st-color-2); |
--st-focus-border-color | var(--st-color-7); |
--st-border-color | var(--st-color-4); |
--st-fore-color-dark | var(--st-color-0); |
--st-bg-color-dark | var(--st-color-9); |
--st-fore-color-alt-dark | var(--st-color-9); |
--st-bg-color-alt-dark | var(--st-color-3); |
--st-border-width | 1px; |
--st-border-radius | 2px; |
--st-space | 0.5em; |
--st-space-after | var(--st-space); |
--st-space-before | calc(var(--st-space) * 2); |
--st-gutter | calc(var(--st-space) * 3)"; |
--st-link-style | underline dotted var(--st-color-4); |
--st-link-hover-style | underline solid var(--st-fore-color); |