slight.css is an incredibly simple CSS stylesheet that adds some slight enhancements on top of the default user agent stylesheet.
it aims to provide a more pleasant reading experience while relying mostly on native browser styles. things such as background and text colors are chosen by the browser.
this can be used as a good baseline for any web project, or as-is for a super barebones website.
the page that you are currently viewing is using slight.css as its stylesheet.
place this somewhere in your head:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@intergrav/slight.css@1">
place this somewhere in your stylesheet:
@import url(https://cdn.jsdelivr.net/npm/@intergrav/slight.css@1);
run this in your terminal, replacing with the proper command:
[npm/yarn/pnpm/bun] add @intergrav/slight.css
keep in mind that mostly relying on the user agent stylesheet means that things could possibly look different on other browsers. for certain projects, this may matter, and you might want to look into using a CSS reset/normalize stylesheet such as modern-normalize.
congue ex inceptos ut est gravida purus. convallis suspendisse mattis porta metus mus nisl ad ante eros inceptos. iaculis convallis gravida odio venenatis ut velit. fames non nunc sollicitudin dictumst litora natoque consectetur erat. fermentum mattis arcu quam sociosqu libero tincidunt pellentesque rutrum. pulvinar per habitasse fusce nec bibendum tempor natoque efficitur si.
| header 1 | header 2 | header 3 |
|---|---|---|
| row 1 | row 1 | row 1 |
| row 2 | row 2 | row 2 |
this is normal text, while this is inline code marked with
code tag.
this is a code block
this is a line of code, indented with tab
this is another line of code, indented with tab
beep boop
i maintain and use both, but this is a much more simple alternative to dev.css that mainly focuses on improving default user agent stylesheets rather than having a full custom set of styles. slight.css is more limited as it has less built-in element styles and doesn't have custom theme support (although you can apply your own stylesheets on top). it may also be less consistent across browsers.