Giter Club home page Giter Club logo

jcss's Introduction

jCSS

CSS Mainipulation library for client-side JavaScript

Using jCSS you can manipulate the style on your website easily from your JavaScript code. jCSS also comes with some custom themes to quickly give your frontend a nice look.

jCSS is licensed under LGPL 2.1.

Contents

How can I use jCSS

You need to copy the code from the jcss.js file to your code.

When you're done with that step, you can uses the features of jCSS.

Here is a table of all functions and the usescases:

Function Usecase
jcss_background Edit the background color an object
jcss_color Edit the font color an object
jcss_font Edit the font size, font family, font weight and font style
jcss_size Edit the height and width of an object
jcss_position Edit the css position value of an object
jcss_border Edit the border color, border style, border width and border radius of an object
jcss_boxshadow Edit the box shadow of an object
jcss_read Read a css value of an object

How can I use a theme

To apply one of the themes from jCSS to your website, you need to copy the file to your code folder.

Now you can need to link to it using the <link rel=stylesheet href=...>-tag.

Here are the themes you can use:

Name Description File Name
Clean A very basic sans-serif black-and-white theme with rounded buttons and inputs clean.css
Sharp A sans-serif black-and-white theme with sharp buttons and inputs sharp.css
Thin A sans-serif theme with sharp buttons & inputs and thin black lines thin.css
Night Blue A dark sans-serif blue sharp theme nightblue.css

In case you want to use the theme_switching function to, so you can change the theme from your JavaScript code, you need to add id=css-theme to your link tag.

And these are the functions for theme switching Now you can use the functions

jcss_set_theme_to_x(x)

To open another style sheet and

jcss_set_theme_to_normal()

to return to the previous theme

jcss's People

Contributors

wervice avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.