Code Monkey home page Code Monkey logo

8.bit-css's Introduction

8.bit CSS

A minimal CSS framework that uses no classes to give pages a retro look.

How to use

In order to use 8.bit CSS, you should just import the CSS file into the page. File(s) are stored under public/css/.

These are the available themes:

Theme Filename
all public/css/8.bit.css
blue public/css/8.bit-blue.css
grayscale public/css/8.bit-grayscale.css
green public/css/8.bit-green.css
pink public/css/8.bit-pink.css
red public/css/8.bit-red.css
yellow public/css/8.bit-yellow.css
  1. Get the appropriate file, based on the theme you want to use

  2. Import the CSS in the page <head>:

    <link rel="stylesheet" href="css/8.bit-green.css">

Main File (all themes)

The file 8.bit.css can be used to switch theme without loadind different files. To do so, you should add a CSS class to the html tag: theme-8bit-[color].

Customization

8.bit CSS uses CSS variables, to make it easy to customize the theme. See the available CSS variables in the src/scss/_variables.scss.

To customize a variable, add a <style> tag to the page, after the import of the 8.bit CSS file. In the tag, change the variables as follow:

<style>
  :root {
    --font-family: 'Source Code Pro', monospace;
  }
</style>

If you change the font with a custom one, don't forget to import the font file as well!

Enjoy!

8.bit-css's People

Contributors

davidecassenti avatar

Stargazers

 avatar Bjørn Wikkeling avatar Natanael Maldonado avatar Roman avatar Mickey Rooney avatar Evan Sarmiento avatar DarkBuffalo avatar Marcus Almeida avatar  avatar Edoardo Bianchi avatar Marco Gallo avatar

Watchers

 avatar James Cloos avatar

Forkers

wet-bulb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.