All Projects → susam → Spcss

susam / Spcss

Licence: mit
A simple, minimal, classless CSS for simple HTML pages

Projects that are alternatives of or similar to Spcss

Vanilla Css
A minimal baseline stylesheet for any web project
Stars: ✭ 53 (-91.95%)
Mutual labels:  boilerplate, stylesheet
React Native Style Tachyons
Better styling for React Native
Stars: ✭ 640 (-2.74%)
Mutual labels:  stylesheet
Chrome Extension Typescript Starter
Chrome Extension TypeScript Starter
Stars: ✭ 601 (-8.66%)
Mutual labels:  boilerplate
Secure Electron Template
The best way to build Electron apps with security in mind.
Stars: ✭ 623 (-5.32%)
Mutual labels:  boilerplate
Pycopy
Pycopy - a minimalist and memory-efficient Python dialect. Good for desktop, cloud, constrained systems, microcontrollers, and just everything.
Stars: ✭ 613 (-6.84%)
Mutual labels:  minimalist
React Webpack Typescript Starter
Minimal starter with hot module replacement (HMR) for rapid development.
Stars: ✭ 632 (-3.95%)
Mutual labels:  boilerplate
Homebrewery
Create authentic looking D&D homebrews using only markdown
Stars: ✭ 598 (-9.12%)
Mutual labels:  stylesheet
Base
A starting point for Meteor apps.
Stars: ✭ 654 (-0.61%)
Mutual labels:  boilerplate
React Redux Universal Hot Example
A starter boilerplate for a universal webapp using react, redux, express and feathers
Stars: ✭ 639 (-2.89%)
Mutual labels:  boilerplate
Express Babel
Express starter kit with ES2017+ support, testing, linting, and code coverage
Stars: ✭ 621 (-5.62%)
Mutual labels:  boilerplate
Gatsby Universal
🔮 An opinionated Gatsby v2 starter for state-of-the-art marketing sites.
Stars: ✭ 617 (-6.23%)
Mutual labels:  boilerplate
Simplerentfox
🦊 A Userstyle theme for Firefox minimalist, transparent and Keyboard centered
Stars: ✭ 608 (-7.6%)
Mutual labels:  minimalist
Android Studio Mvp Template
Android MVP template for Android Studio
Stars: ✭ 636 (-3.34%)
Mutual labels:  boilerplate
Webpack React Redux
A boilerplate for playing around with react, redux and react-router with the help of webpack.
Stars: ✭ 612 (-6.99%)
Mutual labels:  boilerplate
Vortigern
A universal boilerplate for building web applications w/ TypeScript, React, Redux, Server Side Rendering and more.
Stars: ✭ 647 (-1.67%)
Mutual labels:  boilerplate
Awes Io
Awes.io // boilerplate based on Vue, Nuxt, TailwindCSS plus Laravel as a backend. 🤟
Stars: ✭ 599 (-8.97%)
Mutual labels:  boilerplate
React App
Create React App with server-side code support
Stars: ✭ 614 (-6.69%)
Mutual labels:  boilerplate
Vue Crud
Vue.js based REST-ful CRUD system
Stars: ✭ 629 (-4.41%)
Mutual labels:  boilerplate
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (-0.15%)
Mutual labels:  boilerplate
React Isomorphic Boilerplate
🌟 An universal React isomorphic boilerplate for building server-side render web app.
Stars: ✭ 653 (-0.76%)
Mutual labels:  boilerplate

SPCSS

SPCSS is a simple and plain stylesheet for simple text-based websites.

View Demo View CSS NPM Version MIT License Twitter

Contents

Demo

Check this demo page to see how SPCSS styles a simple HTML page.

SPCSS supports systems and web browsers with dark color theme too, so how the page looks depends on the color theme selected on your system or browser.

If you are unable to change your desktop or browser theme right now, here are some screenshots to see what the output looks like with both themes:

Demo of SPCSS light theme Demo of SPCSS dark theme

Use SPCSS

To use SPCSS, merely add this line of code to the <head> element of your HTML file:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]">

Alternatively, download the CSS file from here, edit and customize it as per your requirements, and use it in your project. You are also welcome to fork this repository and customize it to maintain your own copy of sp.css with styles you frequently need.

CDN URLs

Use the following URL in the <link> tag to load version 0.6.0 (the current version at this time) of SPCSS:

https://cdn.jsdelivr.net/npm/[email protected]

Use the following URL in the <link> tag to always load the latest version of SPCSS:

https://cdn.jsdelivr.net/npm/spcss

If you need something really easy to remember, use this URL to load the latest version of SPCSS:

https://unpkg.com/spcss

Why SPCSS?

I often develop primarily text-based websites and webpages. The default style chosen by the web browsers while decent leaves a bit to be desired, so I often add a minimal stylesheet to improve the apperance of the document, hyperlinks, code blocks, blockquotes, tables, etc. This project shares the minimal stylesheet that I often rely on for styling simple websites and webpages.

You are welcome to fork this repository and customize it to maintain your own copy of sp.css with styles that you frequently need.

Features

Here is a summary of the style changes provided by SPCSS:

  • Support for dark color theme (prefers-color-scheme: dark).
  • Maximum width for the <body> element to prevent the lines from being too long. Shorter lines make it easier for our eyes to gauge the beginning and end of the lines.
  • Dark gray (#333) text color instead of black (#000) in light mode.
  • Increased line-height to add more room around the lines.
  • More margin above headings to separate them more conspicuously from preceding content.
  • Less margin below headings as well as less line-height for margins to associate them more tightly with succeeding content.
  • Support for heading anchor links to facilitate sharing direct links to sections of a page.
  • Support for special styling of keyboard input (<kbd>) within code blocks (<pre>).
  • Ensure width of images do not exceed the maximum width for the <body> element.
  • Simple styling for <figure> and <figcaption> elements such as margins aligned with the margins of text paragraphs, centered captions, reduced font size for captions.
  • Light gray background for code blocks and blockquotes.
  • Prevent very long lines of code from overflowing outside the gray box for code blocks. Instead, make the code block scrollable when the code overflows the gray box.
  • Light borders for table cells.

See this example page for a quick demonstration of some of these features.

License

This is free and open source software. You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of it, under the terms of the MIT License. See LICENSE.md for details.

This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or implied. See LICENSE.md for details.

Support

To report bugs, suggest improvements, or ask questions, create issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].