1.7.1 • Published 2 years ago

@thisisdeploy/scaffold-css v1.7.1

Weekly downloads
12
License
-
Repository
github
Last release
2 years ago

SCSS system

This is an scss starter for new project with most common components and classes with living documentation

Usage

To install the package, run npm install @thisisdeploy/scaffold-css. Handle it with the tool of your choice, like webpack, to compile it to .css, preferably minimizing it to drop the comments (for example with cssnano). You can also just download the files directly from GitHub and drop them into your project, modifying as needed.

Overriding variables in node-sass

To override the variables file imported through node-sass from webpack, you can extend your node-sass as follows:

importer(url, prev, done) {
  if (url === 'variables') {
	const scss = fs.readFileSync(path.join(__dirname, 'path/to/your/_variables.scss'), 'utf8')
	return { contents: scss }
  }
  return null
}

Documentation

The documentation for this CSS system can be viewed at https://css-system-deploy.netlify.com/

Contributing

Syntax

The .scss host their own documentation in comments. Comments are formatted as md files. To create a showcase in the style guide, build your comment like this:

/*
# Some title

Explanation for documentation

```example

<div>I'm an example html</div>
<script>
// it can also have inline js
alert('It\'s working!')
</script>

```
*/

Please, make sure that comments are in line with your changes. For images you can use <img src="/image.jpg">.

Updating the style guide

If you add changes, please update the package and the style guide. To do so:

  1. Go to netlify, find the css documentation project. In Settings > Build and Deploy you will find Build hooks with Update dependency hook. Copy that url.
  2. Add a new environmental variable in your system CSS_PUBLISH_URL="the url"
  3. Bump the version field in package.json
  4. Run npm publish
1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.10

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago