Search results will appear here

Publish tools

Once you have defined your styles, you create a new instance of the Simple class and pass the styles array to the constructor. After that, you can either publish the styles to the browser using the publish() method, or retrieve the raw stylesheet using the stylesheet() method.

This method available only in browser's version

Example:

const styles = [ /* your styles here */ ];

const simple = new Simple(styles);

// Publish the styles to the browser:
simple.publish();

// Or retrieve the raw stylesheet:
const rawStyles = simple.stylesheet(spaces,n);

If spaces is undefined, you getting minified version. Otherwise it formated by spaces parameter wich is number of spaces. The n parameter is a line separator. By default it's \n.

© 2024 All Rights Reserved to Simple css
Privacy policy

Privacy Policy for Simple css

Effective Date: 10.08.2024
1. Introduction

Welcome to Simple css. This privacy policy is designed to inform you about how we collect, use, and protect your personal data.

2. Data We Collect

Currently, we collect anonymous visit statistics to better understand how users interact with our site.

3. LocalStorage

We use LocalStorage to store user preferences on our site. This data is stored only on your device and is not transmitted to us.

4. Links to Other Sites

Our site contains links to third-party websites. If you click on these links, we are not responsible for the privacy practices or content of these sites.

5. Protecting Your Data

We take reasonable measures to ensure the security of your data. However, no internet transmission can be guaranteed 100%, so we cannot ensure or guarantee the security of any information you transmit to us.

6. Changes to This Policy

We may update our privacy policy from time to time. Any changes will be posted on this page.

7. Contact Us

If you have questions regarding our privacy policy, please contact us at alexsorkin1980@gmail.com.